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
overFeature
Called when the feature handler detects a mouse-over on a feature. This activates the drag handler. Parameters
downFeature
Called when the drag handler detects a mouse-down. Parameters
moveFeature
Called when the drag handler detects a mouse-move. Also calls the optional onDrag method. Parameters
upFeature
Called when the drag handler detects a mouse-up. Also calls the optional onComplete method. Parameters
doneDragging
Called when the drag handler is done dragging. Parameters
outFeature
Called when the feature handler detects a mouse-out on a feature. Parameters
setMap
Set the map property for the control and all handlers. 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()
Called when the feature handler detects a mouse-over on a feature.
overFeature: function( feature )
Called when the drag handler detects a mouse-down.
downFeature: function( pixel )
Called when the drag handler detects a mouse-move.
moveFeature: function( pixel )
Called when the drag handler detects a mouse-up.
upFeature: function( pixel )
Called when the drag handler is done dragging.
doneDragging: function( pixel )
Called when the feature handler detects a mouse-out on a feature.
outFeature: function( feature )
Called when the drag handler detects a mouse-out (from the map viewport).
cancel: function()
Set the map property for the control and all handlers.
setMap: function( map )