Last active
April 17, 2017 02:51
-
-
Save geog4046instructor/5e29efdbb501863168e1 to your computer and use it in GitHub Desktop.
Google Maps API - Simple map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Create a basic map with the Google Maps JavaScript API. | |
* documentation: https://developers.google.com/maps/documentation/javascript/examples/map-simple | |
*/ | |
var map; | |
function initMap() { | |
map = new google.maps.Map( document.getElementById( 'map' ), { | |
center: { lat: 30, lng: -90 }, | |
zoom: 4 | |
}); | |
// code to add layers goes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment