Line 25: | Line 25: | ||
<h3>My Google Maps Demo</h3> | <h3>My Google Maps Demo</h3> | ||
− | + | <div id="map"></div> | |
− | + | <script> | |
+ | function initMap() { | ||
+ | var uluru = {lat: -25.363, lng: 131.044}; | ||
+ | var map = new google.maps.Map(document.getElementById('map'), { | ||
+ | zoom: 4, | ||
+ | center: uluru | ||
+ | }); | ||
+ | var marker = new google.maps.Marker({ | ||
+ | position: uluru, | ||
+ | map: map | ||
+ | }); | ||
+ | } | ||
+ | </script> | ||
+ | <script async defer | ||
+ | src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDjAo_F3TW332gqW2CBn4eiKBaXikdiPSA&callback=initMap"> | ||
+ | </script> | ||
</div> | </div> | ||
</div> | </div> |
Revision as of 17:12, 29 October 2017
My Google Maps Demo