Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 georeferenced hundreds of hand drawn maps. These are all viewable at very high zoom levels, which translates in Google Maps to zoom levels 22, 23 and 24.

However, by default, the google-maps Type Map goes only up to zoom level 21.

I have tried several methods to force the max zoom level to go up to 24, but several methods suggested here have proven to be clunky and inconsistent (for example, forcing the user to switch to satellite and then back to Maps to get it to work).

Does anybody know how to enforce a maxZoom of 24 efficiently?

like image 936
user2297129 Avatar asked May 17 '13 16:05

user2297129


People also ask

How do I set Google Maps to max zoom?

Setting up the minimum or maximum Zoom value for Google Maps can be done by adding the shortcode attribute with Store Locator Shortcode. Furthermore, the maximum value of Google Maps Zoom level is 22. Therefore, the defined maximum value must be below or equal to 22, which is the default.

How many zoom levels does Google Maps have?

Zoom levels are between 0 (the entire world can be seen on one map) and 21+. You can also set the minimum and maximum values for the zoom parameter.

How do you change the zoom level on Google Earth?

You can change the zoom level of the map using simple steps. Step 1 Go to Add or Edit Map page . Step 2 Select 'Default zoom level' in the 'Map Information section'. Step 3 click save map and see the changes.

What is Max zoom?

A service for obtaining the highest zoom level at which satellite imagery is available for a given location.


1 Answers

Google Maps API has a property called numZoomLevels.

You need to configure your Google layer with an appropriate numZoomLevels value, and also override the internal default for the maximum zoom level with MAX_ZOOM_LEVEL. The latter will cause 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 take a look into Geographic Information Systems Stack Exchange.

like image 166
mate64 Avatar answered Oct 13 '22 01:10

mate64