Search code examples
openlayers

Is it possible to drag an OpenLayers.Layer.Image individually


I've a map with a few layers from the class OpenLayers.Layer.Image. I was wondering if it is possible to enable dragging on each of this images/layers individually. Like the dragFeature, where you can drag each feature individually.

Thanks!


Solution

  • I think it's the wrong approach to accomplish this with an image layer. The layers are supposed NOT to be moved with respect to the other images/layers. I would suggest you draw the movable images as features instead. A feature is designed to be able to be dragged.

    What kind of images is it, and why do you want to drag them?