Created
May 18, 2018 18:16
-
-
Save masumskaib396/3dd28e0340ba8fb537458a47e7f62c4e to your computer and use it in GitHub Desktop.
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
var myCenter = new google.maps.LatLng(40.782865,-73.965355); | |
function initialize() { | |
var mapProp = { | |
center: myCenter, | |
scrollwheel: false, | |
zoom: 11, | |
zoomControl: false, | |
mapTypeControl: true, | |
streetViewControl: true, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
//google-map-style | |
styles: [{ | |
"featureType": "landscape", | |
"stylers": [{ | |
"saturation": -100 | |
}, { | |
"lightness": 65 | |
}, { | |
"visibility": "on" | |
}] | |
}, { | |
"featureType": "poi", | |
"stylers": [{ | |
"saturation": -100 | |
}, { | |
"lightness": 40 | |
}, { | |
"visibility": "simplified" | |
},{ | |
"color": "#FFDA9F" | |
}] | |
}, { | |
"featureType": "road.highway", | |
"stylers": [{ | |
"saturation": -100 | |
}, { | |
"visibility": "simplified" | |
}, | |
{ | |
"color": "#ddd" | |
}] | |
}, { | |
"featureType": "road.arterial", | |
"stylers": [{ | |
"saturation": -100 | |
}, { | |
"lightness": 30 | |
}, { | |
"visibility": "on" | |
}] | |
}, { | |
"featureType": "road.local", | |
"stylers": [{ | |
"color": "#f4f4f4" | |
}, { | |
"visibility": "on" | |
}] | |
}, { | |
"featureType": "transit", | |
"stylers": [{ | |
"saturation": -100 | |
}, { | |
"visibility": "simplified" | |
}] | |
}, { | |
"featureType": "administrative.province", | |
"stylers": [{ | |
"visibility": "on" | |
}] | |
}, { | |
"featureType": "water", | |
"elementType": "labels", | |
"stylers": [{ | |
"visibility": "on" | |
}, | |
{ | |
"color": "#29ABE2" | |
}] | |
}, { | |
"featureType": "water", | |
"elementType": "geometry", | |
"stylers": [{ | |
"color": "#A3CDFF" | |
}, { | |
"visibility": "on" | |
}] | |
}] | |
}; | |
//google-map-style-end | |
var map = new google.maps.Map(document.getElementById("googleMap-2"), mapProp); | |
var marker = new google.maps.Marker({ | |
position: myCenter, | |
icon: 'assets/img/maf-icon.png',//goole-map-icon | |
animation: google.maps.Animation.BOUNCE, | |
}); | |
marker.setMap(map); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment