[OpenLayers-Users] Easy solution for combining SelectFeature and
DragFeature on multiple layers
Mehmet Sirin
m.sirin07 at googlemail.com
Mon Dec 21 08:15:28 EST 2009
Hi,
i don't know if this solution was already known, but i found nothing related
on the internet.
you want to use both the SelectFeature Control and the DragFeature Control
on multiple layers on one map ?
then always just add the DragFeature-Layer to the selectfeature controller:
selectControl = new
OpenLayers.Control.SelectFeature([dragLayer,selectLayer]);
Now there should be no problem using combined select and drag.
Example:
http://igf-project.igf.uos.de/~bhempen/select-feature-multilayer.html
But I don't know why it works this way :D
Anybody can explain?
regards
mehmet sirin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091221/8e0e7311/attachment.html
More information about the Users
mailing list