[OpenLayers-Dev] My map will not zoom in past 1: 1066

Robert Hicks robhyx at gmail.com
Fri May 22 12:55:24 EDT 2009


Thanks Chris, I actually did try that and I get the same result.

On Fri, May 22, 2009 at 12:51 PM, Chris Claydon
<chris.claydon at autodesk.com>wrote:

>  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.
>



-- 
myspace http://www.myspace.com/diemtvdie
aim hyx1138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20090522/1e94ee40/attachment.html


More information about the Dev mailing list