Skip to content

Latest commit

 

History

History
31 lines (31 loc) · 951 Bytes

map.md

File metadata and controls

31 lines (31 loc) · 951 Bytes
<style> /* Set the size of the div element that contains the map */ #map { height: 400px; /* The height is 400 pixels */ width: 100%; /* The width is the width of the web page */ } </style>

My Google Maps Demo

<script> // Initialize and add the map function initMap() { // The location of Starkville var starkville = {lat: 33.451, lng: -88.834}; // The map, centered at Starkville var map = new google.maps.Map( document.getElementById('map'), {zoom: 8, center: starkville}); // The marker, positioned at Starkville var marker = new google.maps.Marker({position: starkville, map: map}); } </script> <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBo06wLVaJdmOdXeeS_MoAYn3-GiqusDhM&callback=initMap"> </script>