The PanControl class handles mouse events to move the map when the mouse is dragged and double clicked.
public var isDraggable:Boolean
Returns true if the pan control is enabled and the map can be dragged.
panEnabled:Boolean [read-write]
Enabled state of the pan control.
Implementation
public function get panEnabled():Boolean
public function set panEnabled(value:Boolean):void
public function PanControl(map:IYahooMap)
Creates a new PanControl object
Parameters
protected function handleMouseLeave(event:Event):voidParameters
Event object type: YahooMapEvent
Dispatched when the map is clicked on. Requires that the pan control is enabled.
Event object type: YahooMapEvent
Dispatched when the map is double-clicked on. Requires that the pan control is enabled.
Event object type: YahooMapEvent
Dispatched when the map is being dragged. Requires that the pan control is enabled.
Event object type: YahooMapEvent
Dispatched when the map starts dragging. Requires that the pan control is enabled.
Event object type: YahooMapEvent
Dispatched when the map stops dragging. Requires that the pan control is enabled.