Hi,

On Mon, Jul 6, 2009 at 1:55 PM, Admin
TrouveTonGull.info<cont...@trouvetongull.info> wrote:
> Andreas Hocevar a écrit :
>> You need to configure the DragFeature control with the layer that
>> contains the features you want to drag.
>>
>
> 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.

Regards,
Andreas.

>
>
> thanks,
> Fred
> _______________________________________________
> 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

Reply via email to