Is there a way to make one vector layer (or a certain kind of feature draggable), while the other types of feature or layer is not?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
You mean like this example? http://openlayers.org/dev/examples/drag-feature.html See the DragFeature control for details. If you do not want to drag all features in a layer then set the geometryTypes property, or add your own custom logic to the onStart event to stop a feature being dragged if itdoes not meet your criteria. |
|||
|
|
|
I would comment on @geographika's answer but I don't have any reputation. In case you need finer control over exactly which feature can be dragged, actually it can't be done from
|
|||
|
|