Skip to content

Instantly share code, notes, and snippets.

@alimoshen
Created January 31, 2018 15:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Google Map API
function initMap() {
// Styles a map in night mode.
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 40.674, lng: -73.945},
zoom: 12,
styles:
[{
"elementType": "geometry",
"stylers": [
{
"color": "#ebe3cd"
}
]
}]
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment