Skip to content

Instantly share code, notes, and snippets.

@geog4046instructor
Last active April 17, 2017 02:51
Show Gist options
  • Save geog4046instructor/5e29efdbb501863168e1 to your computer and use it in GitHub Desktop.
Save geog4046instructor/5e29efdbb501863168e1 to your computer and use it in GitHub Desktop.
Google Maps API - Simple map
/* 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