I found finally a solution. I don't know why it's working but it's working so :)
selectControl = new OpenLayers.Control.SelectFeature(dragableLayers); map.addControl(selectControl); selectControl.activate(); for (i=0; i<dragableLayers.length; i++) { drag = new OpenLayers.Control.DragFeature(dragableLayers[i]); map.addControl(drag); drag.activate(); } Like this all my dragable layers have drag ability. The select ability is no more available Thomas 2010/8/18 Thomas PAPIN <thomas.pa...@gmail.com> > Hello, > > I would like to be able to drag features of two vector layers in the same > time, is it possible ? > Currently when I add a DragFeature on a layer this will remove the > dragfeature on another layer > > :-( > > Thomas >
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users