Skip to content

Instantly share code, notes, and snippets.

@tkompare
Created June 6, 2013 19:48
Show Gist options
  • Save tkompare/5724371 to your computer and use it in GitHub Desktop.
Save tkompare/5724371 to your computer and use it in GitHub Desktop.
// See https://developers.google.com/maps/documentation/javascript/reference#MapOptions
var MapOptions = {
center : new google.maps.LatLng(41.85,-87.675), // Center of the map, in decimal degrees.
draggable : true, // Can the user drag the map?
mapTypeControl : false, // Can the user change the map from road map to satellite imagery, etc?
mapTypeId : google.maps.MapTypeId.ROADMAP, // Default map type
panControl : false, // Will there be a pan controller on the map?
streetViewControl : false, // Street view controller on the map?
styles : [], // Any special styles?
zoom: 16, // Set the zoom level [0-20]. 20 being zoomed in tight.
zoomControl : true // Zoom control on the map?
}
// Put the map in the DOM, with the map options defined above
// See: https://developers.google.com/maps/documentation/javascript/reference#Map
var TheMap = new google.maps.Map(document.getElementById('map'),MapOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment