[OpenLayers-Users] Dragable markers

Admin TrouveTonGull.info contact at trouvetongull.info
Mon Jul 6 13:25:02 EDT 2009


>> I try to make
>>
>> new OpenLayers.Control.DragFeature(name_layer1, name_layer2),
>>
>> with my layers but no change :( It's a bad syntax?
>>     
>
> 1) Control.DragFeature only supports one layer
> 2) You have to pass the layer object, not the layer name. This
> requires of course that your layer is created before you create the
> control.
>   

I have many layers so, i put the principal? new 
OpenLayers.Control.DragFeature(OpenLayers.Layer.OSM.Mapnik),  not work 
:( what is the layer object?

bye,
Fred




More information about the Users mailing list