[OpenLayers-Users] Re: pan map while dragging feature?
aeskreis at gmail.com
Thu Feb 9 13:52:37 EST 2012
I have no idea if this is built into openlayers, but this seems like
mouse move event to the document, and a boolean variable in the global
scope which tells you whether an item is currently being dragged (this can
be set up in an event handler for the vector feature). Then in the move
event, if there is an item being dragged, grab the mouse position, and if
you are nearing the edge of the screen, have openlayers move the map.
On Thu, Feb 9, 2012 at 11:19 AM, j5c077 <jeremyswilson at att.net> wrote:
> i've tried setting the documentdrag to true however when dragging the
> it still stops once i reach the edge of the viewport
> View this message in context:
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> Users mailing list
> Users at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users