[OpenLayers-Trac] [OpenLayers] #3095: Create a Layer::moveByPx
method
OpenLayers
trac-20090302 at openlayers.org
Thu Feb 24 03:45:12 EST 2011
#3095: Create a Layer::moveByPx method
----------------------+-----------------------------------------------------
Reporter: ahocevar | Owner: euzuro
Type: task | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Layer | Version: 2.10
Keywords: mobile | State:
----------------------+-----------------------------------------------------
After #3062, there are two ways to move to a new position: either by using
Map::moveTo (which calls Layer::moveTo on every layer), or by using
Map::moveByPx, which only fires the "move" event on all layers.
I'd suggest we create a Layer::moveByPx method, so layers can take the
appropriate actions. This method could be called by Map::moveByPx while
looping through the layers to trigger the "move" event on them.
Later, we can consider a more event based approach (e.g. layers listening
to the map's "move" event), in case we decide that doing so does not have
a performance impact.
--
Ticket URL: <http://trac.openlayers.org/ticket/3095>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list