[OpenLayers-Users] Fw: basic zoom control question.

Andreas Hocevar ahocevar at opengeo.org
Wed Aug 15 23:26:49 PDT 2012


This was fixed in OpenLayers 2.12. So you may consider upgrading.

Andreas.

On Wed, Aug 15, 2012 at 7:17 PM, Doug Kunzman <dkunzman at usgs.gov> wrote:

> Hi -
>
> I have a question about maxExtent and zoom levels.  I've searched the
> internet and I have a simple question based upon an example.
>
> I've modified the layers in our program setting the wrapDataLine to true
> and this has the desired effect.  But using the navigator control and the
> user is able to zoom out so that the earth raps about five times around our
> div element.  It looks exactly like the example in
> http://openstreetmap.na1400.info/basic-zoom.html when first loaded.  Is
> there anyway to prevent this?  I've modified maxResolution but it doesn't
> appear to have the desired effect.
>
> We are setting maxExtent as follows: maxExtent : *new*OpenLayers.Bounds(-20037508.34, -20037508.34,
>                                                 20037508.34, 20037508.34)using a Spherical Mercator projection.
> thanks,
>
>
> D Kunzman
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120816/c3bf200a/attachment.html>


More information about the Users mailing list