[OpenLayers-Trac] Re: [OpenLayers] #3138: Restricted extends don't
work anymore
OpenLayers
trac-20090302 at openlayers.org
Tue Mar 1 10:23:04 EST 2011
#3138: Restricted extends don't work anymore
----------------------+-----------------------------------------------------
Reporter: sbrunner | Owner: ahocevar
Type: bug | Status: assigned
Priority: critical | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State: Review
----------------------+-----------------------------------------------------
Changes (by ahocevar):
* state: => Review
Comment:
There were actually two issues:
* Now that we use restrictedExtent for Map.minPx and Map.maxPx
calculation, we also need the restrictedExtent in
Layer.getLonLatFromViewPortPx.
* The valid extent check in Map::moveByPx only worked when
baseLayer.wrapDateLine was false. I rewrote this check a bit to make it
simpler, and added proper wrapDateLine handling.
Tests still pass, and examples work as expected. Thanks for any review.
--
Ticket URL: <http://trac.openlayers.org/ticket/3138#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list