Note that there are some explanatory texts on larger screens.

plurals
  1. POmaxZoom in Google Maps 3
    primarykey
    data
    text
    <p>Is there a way to change the maxZoom of a map to level 24? I will be adding an overlay of highly-detailed imagery and would like to provide the user with the ability to zoom in more.</p> <p>I have found some code (<a href="https://stackoverflow.com/questions/10517848/modify-the-max-zoom-level-of-a-google-map-type/10519085#10519085">Modify the max zoom level of a Google Map Type</a>) that is getting me closer, but no cigar just yet! See <a href="http://jsfiddle.net/vankerck/3qAkB/17/" rel="nofollow noreferrer">http://jsfiddle.net/vankerck/3qAkB/17/</a> for a more complete sample. Note that if you toggle between satellite and roads a couple of times, you will eventually be able to zoom down to level 24 when looking at roads.</p> <pre><code>function initialize() { var maxZoom = 24; var mapCenter = new google.maps.LatLng(26.966, -80.612); var mapOptions = { center: mapCenter, zoom: maxZoom, streetViewControl: false, mapTypeId: google.maps.MapTypeId.SATELLITE, maxZoom: maxZoom }; var map = new google.maps.Map($("#map_canvas")[0], mapOptions); google.maps.event.addListener(map, 'tilesloaded', function (event) { $('#level').html('Level: ' + map.getZoom()); var mapTypeRegistry = map.mapTypes; var currentMapTypeId = map.getMapTypeId(); var mapType = mapTypeRegistry.get(currentMapTypeId); mapType.maxZoom = maxZoom; }); google.maps.event.addListener(map, 'maptypeid_changed', function (event) { map.setOptions({ maxZoom: maxZoom }); }); } </code></pre> <p>Thank you,</p> <p>Marianne</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload