[OpenLayers-Users] My map will not zoom in past 1: 1066
Arnd Wippermann
arnd.wippermann at web.de
Sat May 23 11:59:06 EDT 2009
Hi,
in OL is MAX_ZOOM_LEVEL=19 the default for Google Layers. You can change
this
like OpenLayers.Layer.Google.prototype.MAX_ZOOM_LEVEL = 21;
or in the options for the Google layer
MAX_ZOOM_LEVEL:21
i'm not sure, if this solves your problem.
Arnd
_____
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Robert Hicks
Gesendet: Freitag, 22. Mai 2009 18:18
An: users at openlayers.org; dev at openlayers.org
Betreff: [OpenLayers-Users] My map will not zoom in past 1: 1066
No matter what I change in my options which are passed into the map
constructor I cannot zoom in on my map past a scale of 1:1066.
Here are my options:
var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
numZoomLevels: 27,
maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
20037508, 20037508.34)
};
My base map:
var google = new OpenLayers.Layer.Google( "Google Maps",
{
'sphericalMercator': true
}
);
I have tried increasing numZoomLevels and adding minScale, minResolution. No
effect so I have taken them out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090523/e04a580a/attachment.html
More information about the Users
mailing list