Google Maps v3: any way to force a high maximum zoom level (maxZoom 24)?

We are working on an archaeological mapping project where we have linked hundreds of hand-drawn maps. All of them are available for viewing with a very high zoom level, which leads to changes in Google Maps to increase levels 22, 23 and 24.

However by default Map type goes only to zoom level.

I tried several methods to increase the maximum zoom level to 24, but several of the methods proposed here turned out to be awkward and inconsistent (for example, forcing the user to switch to satellite and then back to Maps to get it to work).

Does anyone know how to use maxZoom out of 24 effectively?

+6
source share
1 answer

The Google Maps API has the numZoomLevels property.

You need to adjust your Google level with the appropriate numZoomLevels value, and also override the internal default value for the maximum zoom level with MAX_ZOOM_LEVEL . The latter will lead to unexpected behavior if the Google layer does not support all zoom levels.

 new OpenLayers.Layer.Google('Satellite', { type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 23, MAX_ZOOM_LEVEL: 22 }); 

Also check out File sharing on geographic information systems .

+3
source

Source: https://habr.com/ru/post/945281/


All Articles