Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Styling/ Theming Google Maps using API V3
  2. var mapDiv = document.getElementById('mappy');
  3.  
  4. var mapOptions = {
  5. zoom: 12, //select the zoom that you want
  6. draggable: false, //this will lock the draggable option
  7. center: new google.maps.LatLng(-23.563594, -46.654239), //change here the latitude and longitude
  8. mapTypeId : google.maps.MapTypeId.ROADMAP
  9. }
  10. pode ser ROADMAP, SATELLITE, HYBRID, TERRAIN
  11. map = new google.maps.Map( mapDiv, mapOptions ); //this will include the variables in one to create the map with the options