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?
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.
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.
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.
A service for obtaining the highest zoom level at which satellite imagery is available for a given location.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With