OpenLayers JavaScript Mapping Library |
OpenLayers. Control. DragFeatureMove a feature with a drag. Create a new control with the OpenLayers.Control.DragFeature constructor. Inherits FromSummary
onStart{Function} Define this function if you want to know when a drag starts. The function should expect to receive two arguments: the feature that is about to be dragged and the pixel location of the mouse. Parameters
onDrag{Function} Define this function if you want to know about each move of a feature. The function should expect to receive two arguments: the feature that is being dragged and the pixel location of the mouse. Parameters
onComplete{Function} Define this function if you want to know when a feature is done dragging. The function should expect to receive two arguments: the feature that is being dragged and the pixel location of the mouse. Parameters
OpenLayers. Control. DragFeatureCreate a new control to drag features. Parameters
|
Take care of things that are not handled in superclass
destroy: function()
Activate the control and the feature handler.
activate: function()
Deactivate the control and all handlers.
deactivate: function()