Hi All,
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.
...
<div id="showmap"></div>
...
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDLG3iKzJXUHW-KY4M7WELt7t0ckex-VDs">
</script>
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: { lat: -34.397, lng: 150.644},
zoom: 8
};
var map = new google.maps.Map(document.getElementById('showmap'),
mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
Thanks for the assistance!