Skip to content

Instantly share code, notes, and snippets.

@anneallen
Created January 25, 2015 05:15
Show Gist options
  • Save anneallen/d1b6767cf8876644ba29 to your computer and use it in GitHub Desktop.
Save anneallen/d1b6767cf8876644ba29 to your computer and use it in GitHub Desktop.
Simple Script for Google Map
<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