[OpenLayers-Trac] [OpenLayers] #487: wrap the dateline
OpenLayers
trac at openlayers.org
Thu Jun 7 06:58:12 EDT 2007
#487: wrap the dateline
----------------------+-----------------------------------------------------
Reporter: jrf | Owner: metacarta
Type: feature | Status: new
Priority: major | Milestone: 2.5 Release
Component: general | Version:
Resolution: | Keywords: review
----------------------+-----------------------------------------------------
Changes (by crschmidt):
* keywords: => review
Comment:
What it does:
* New option 'wrapDateLine' on the base layer
* Wraps zoomToExtent
* Wraps getLonLatFromPixel
* Function 'adjustBounds' on layer does wrapping
* Moved adjustBoundsForGutter inside adjustBounds
* added calls to adjustBounds in all the getURL functions which can
support it. (Grid layers, mostly.)
Limitations/expectations of this patch:
* It is expected behavior that the layer's getPixelFromLonLat will not
wrap. This means that if you are looking at Australia and Hawai'i, and you
place a marker at 175, it will end up visible or not visible depending on
which side of the date line you're on.
* Vector drawing across the date line is not supported. (Your mouse will
'snap' to the other part of the world.)
* Requests which cross the date line are *not* wrapped, so they will
request content outside the world if it does not divide evenly.
--
Ticket URL: <http://trac.openlayers.org/ticket/487#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list