[OpenLayers-Dev] Updating vector layers while dragging

Phil Gyford gyford at gmail.com
Thu Nov 19 06:32:37 EST 2009


Hi,

I recently built a site that uses OpenLayers
(http://www.e4.com/misfits/ - click the 'Play' button). At the moment
the vector layers only update after the user has finished dragging or
panning the "map" which, I realise from the FAQ, is by design.

Even so, I'd like to experiment with having the layers redraw while
the map is being moved, to avoid the clickable images being
"invisible" until the move has completed. The images (the objects in
the draggable photo with red marks around them) are Vector Points with
externalGraphics applied in a StyleMap.

I've spent some time trying to work out how to try this but I'm
stumped. Can anyone give me a pointer? Maybe I need to add something
to the move() function of OpenLayers.Handler.Drag? Or is it somewhere
else? And, once I've found the correct event, how do I make the images
re-draw?

Many thanks,
Phil

-- 
http://www.gyford.com/



More information about the Dev mailing list