Skip to content

Instantly share code, notes, and snippets.

@alimoshen
Created Jan 31, 2018
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