Packageorg.openscales.core.handler.feature
Classpublic class DragFeatureHandler
InheritanceDragFeatureHandler Inheritance DragHandler Inheritance Handler

DragFeature is use to drag a feature To use this handler, it's necessary to add it to the map It dispatch FeatureEvent.FEATURE_DRAG_START and FeatureEvent.FEATURE_DRAG_STOP events



Public Properties
 PropertyDefined by
 Inheritedactive : Boolean
Getter and setter of the boolean defining the activity of the handler
Handler
 Inheriteddragging : Boolean
To know if the map is dragging
DragHandler
 Inheritedmap : Map
Getter and setter of the map associated to the handler
Handler
 Inheritedoncomplete : Function
DragHandler
 Inheritedonstart : Function
DragHandler
 InheritedtoggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's activity changes
Handler
Public Methods
 MethodDefined by
  
DragFeatureHandler(map:Map = null, active:Boolean = false)
Constructor class
DragFeatureHandler
  
This function add a layers as draggabble layer
DragFeatureHandler
  
addDraggableLayers(layers:Array):void
This function add an array of layers as draggabble layer
DragFeatureHandler
  
This function is used to add an undraggable feature which belong to a draggable layer
DragFeatureHandler
  
addUndraggableFeatures(features:Array):void
This function is used to add an array of undraggable feature which belong to a draggable layer
DragFeatureHandler
Protected Methods
 MethodDefined by
  
onMouseDown(event:Event):void
This function is launched when the Mouse is down
DragFeatureHandler
  
onMouseUp(event:Event):void
This function is launched when the Mouse is up
DragFeatureHandler
 Inherited
DragHandler
 Inherited
DragHandler
Constructor detail
DragFeatureHandler()constructor
public function DragFeatureHandler(map:Map = null, active:Boolean = false)

Constructor class

Parameters
map:Map (default = null) — Object
 
active:Boolean (default = false) — to active or deactivate the handler
Method detail
addDraggableLayer()method
public function addDraggableLayer(layer:FeatureLayer):void

This function add a layers as draggabble layer

Parameters
layer:FeatureLayer — the layer to add
addDraggableLayers()method 
public function addDraggableLayers(layers:Array):void

This function add an array of layers as draggabble layer

Parameters
layers:Array — Array of layer to add
addUndraggableFeature()method 
public function addUndraggableFeature(feature:Feature):void

This function is used to add an undraggable feature which belong to a draggable layer

Parameters
feature:Feature — The feature to add
addUndraggableFeatures()method 
public function addUndraggableFeatures(features:Array):void

This function is used to add an array of undraggable feature which belong to a draggable layer

Parameters
features:Array — Array of feature to make undraggable
onMouseDown()method 
protected override function onMouseDown(event:Event):void

This function is launched when the Mouse is down

Parameters
event:Event
onMouseUp()method 
protected override function onMouseUp(event:Event):void

This function is launched when the Mouse is up

Parameters
event:Event