[OpenLayers-Dev] My map will not zoom in past 1: 1066
Chris Claydon
chris.claydon at autodesk.com
Fri May 22 12:51:34 EDT 2009
Are you setting the number of zoom levels on the map or on the google layer? In a recent discussion I was led to believe that OL will pick up settings from the base layer rather than the map...
This may be a red herring, but it's something to try.
Chris.
From: dev-bounces at openlayers.org [mailto:dev-bounces at openlayers.org] On Behalf Of Robert Hicks
Sent: Friday, May 22, 2009 10:18 AM
To: users at openlayers.org; dev at openlayers.org
Subject: [OpenLayers-Dev] 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-dev/attachments/20090522/e6b8518b/attachment.html
More information about the Dev
mailing list