Hi, See http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Control/DragFeature-js.html#OpenLayers.Control.DragFeature.OpenLayers.Control.DragFeature
You need to configure the DragFeature control with the layer that contains the features you want to drag. Regards, Andreas. On Mon, Jul 6, 2009 at 12:15 PM, Admin TrouveTonGull.info<cont...@trouvetongull.info> wrote: > Andreas Hocevar a écrit : >> >> Hard to tell without seeing your code. > oups sorry, my map: http://www.trouvetongull.info/carte/ > >> But I would gess you are using >> an OpenLayers.Layer.Markers or OpenLayers.Layer.GeoRSS. The >> DragFeature control only works with vector layers (Layer.Vector, >> Layer.GML, Layer.WFS). To see how to set this up, have a look at the >> http://www.openlayers.org/dev/examples/behavior-fixed-http-gml.html >> example. If you use GeoRSS and not GML, you will want to replace the >> format (new OpenLayers.Format.GML()) with a GeoRSS format (new >> OpenLayers.Format.GeoRSS). >> > > I use Georss markers on GML layers. > >> Regards, >> Andreas. >> >> >> > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users