Skip to content

Instantly share code, notes, and snippets.

@kyleturman
Created June 5, 2012 15:34
Show Gist options
  • Save kyleturman/2875714 to your computer and use it in GitHub Desktop.
Save kyleturman/2875714 to your computer and use it in GitHub Desktop.
Google Maps
var point = new google.maps.LatLng(39.7260208, -105.0001613);
var myOptions = {
zoom: 15,
center: point,
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false,
mapTypeControl: false
}
var style = [
{
stylers: [
{ hue: "#00A7CE", gamma: 0.77 }
]
}
];
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
// Set map to blue color hue.
var mapType = new google.maps.StyledMapType(style, { name:"Blue" });
map.mapTypes.set('blue', mapType);
map.setMapTypeId('blue');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment