OpenSpace.Control.DragMarkers

This class enables dragging of markers on a markers layer

Summary
OpenSpace.Control.DragMarkersThis class enables dragging of markers on a markers layer
Constructor
OpenSpace.Control.DragMarkersConstructor a new OpenSpace.Control.DragMarkers object

Constructor

OpenSpace.Control.DragMarkers

Constructor a new OpenSpace.Control.DragMarkers object

Parameters

OpenLayers.Layer.Markers

Example

markersLayer = osMap.getMarkerLayer();
var dragControl = new OpenSpace.Control.DragMarkers(markersLayer);
osMap.addControl(dragControl);
dragControl.activate
//then to drag markers and disable any info windows*:
markersLayer.setDragMode(true);

*use 'false' to reverse
Close