Created
January 25, 2015 05:15
-
-
Save anneallen/d1b6767cf8876644ba29 to your computer and use it in GitHub Desktop.
Simple Script for Google Map
This file contains hidden or 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
<script type="text/javascript" > | |
jQuery(function( $ ){ | |
function initialize() { | |
var myLatlng = new google.maps.LatLng(10.354859, -85.853784); | |
var stylez = [ | |
{ | |
featureType: "all", | |
elementType: "all", | |
stylers: [ | |
{ saturation: -100 } // <-- THIS | |
] | |
} | |
]; | |
var mapOptions = { | |
zoom: 15, | |
center: myLatlng, | |
} | |
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); | |
var marker = new google.maps.Marker({ | |
position: myLatlng, | |
map: map, | |
}); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment