[OpenLayers-Trac] Re: [OpenLayers] #3521: Dateline handling
improvements for grid layers
OpenLayers
trac-20090302 at openlayers.org
Tue Sep 27 09:44:36 EDT 2011
#3521: Dateline handling improvements for grid layers
------------------------+---------------------------------------------------
Reporter: ahocevar | Owner: elemoine
Type: feature | Status: new
Priority: minor | Milestone: 2.12 Release
Component: Layer.Grid | Version: 2.11
Keywords: | State: Review
------------------------+---------------------------------------------------
Changes (by ahocevar):
* state: => Review
* version: 2.11 RC3 => 2.11
Comment:
This patch does 4 things:
* Make clear in the APIdocs that the wrapDateLine option makes sense on
the base layer only, and only when the base layer's extent is the world
extent.
* When calculating the grid layout, shift the left bound to the right
until it is within the world extent,
* When setting the bounds of a tile, wrap them around the dateline to
avoid tile bounds that exceed the world bounds
* The Tile's shouldDraw method checks now against up to 3 different
extents, depending on if or how the extent crosses the dateline.
This means that layers that cross the dateline can no be used, and the
according tiles will always be displayed when they are inside the
viewport.
--
Ticket URL: <http://trac.openlayers.org/ticket/3521#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list