XModPro

Trouble Embedding Google Maps

BBrown BBrown asked Mar 11, 2015
Active Mar 11 · Viewed 2183 times
<p>Hi All,</p><p style="margin-left: 20px;">I'm trying to add a Google maps instance to my form, which i will eventually use tokens to get longitude and latitude. I can not get the map to show up. I have gotten the API key from Google and it works outside of the XMOD environment. Any help would be appreciated.</p><p style="margin-left: 20px;">...</p><p style="margin-left: 20px;">&lt;div id="showmap"&gt;&lt;/div&gt;</p><p style="margin-left: 20px;">...</p><p style="margin-left: 20px;"> <p>&lt;script type="text/javascript"</p><p> src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDLG3iKzJXUHW-KY4M7WELt7t0ckex-VDs"&gt;</p><p> &lt;/script&gt;</p><p> &lt;script type="text/javascript"&gt;</p><p> function initialize() {</p><p> var mapOptions = {</p><p> center: { lat: -34.397, lng: 150.644},</p><p> zoom: 8</p><p> };</p><p> var map = new google.maps.Map(document.getElementById('showmap'),</p><p> mapOptions);</p><p> }</p><p> google.maps.event.addDomListener(window, 'load', initialize);</p><p> &lt;/script&gt;</p><p>Thanks for the assistance!&nbsp;</p></p>

1 Answer

Loading answers...