[OpenLayers-Users] Disable zoom limitations without disabling wrapDateLine
Robbie MacKay
robbie at ushahidi.com
Tue Dec 11 12:09:40 PST 2012
Hi All,
I'm trying to figure out if there is a way to disable the zoom limitations
- i.e. allow zooming out to more that one world visible - without disabling
wrapDateLine?
This used to be the behaviour before OL 2.12 - but this changed in 2.12
"OpenLayers won't zoom out to resolutions where more than one world is
visible any more. For maps that have base layers with wrapDateLine set to
false, no zoom restrictions apply."
https://github.com/openlayers/openlayers/blob/master/notes/2.12.md#changes-when-base-layer-configured-with-wrapdateline-true
The reason I want to do this is a have a few maps where dimensions are such
that to zoom out enough to show the full world they end up overlapping the
date line slightly. However after upgrading to 2.12 I can no longer zoom
out fully.
--
Robbie Mackay
Software Developer, External Projects
Ushahidi Inc
e: robbie at ushahidi.com
skype: robbie.mackay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121212/d1d17064/attachment.html>
More information about the Users
mailing list