API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class PanZoom

Package | org.openscales.core.control
Class | public class PanZoom
Inheritance | PanZoom Control flash.display.Sprite
Subclasses | PanZoomBar

Control showing some arrows to be able to pan the map and zoom in/out.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean | Control
|  | buttons : Array | PanZoom
|  | map : Map | Control
|  | position : Pixel | Control
|  | slideFactor : int | PanZoom
|  | X : int = 4 [static] | PanZoom
|  | Y : int = 4 [static] | PanZoom

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _active : Boolean = false | Control
|  | eastMiniImg : Class | PanZoom
|  | _map : Map = null | Control
|  | northMiniImg : Class | PanZoom
|  | sliderImg : Class | PanZoom
|  | southMiniImg : Class | PanZoom
|  | westMiniImg : Class | PanZoom
|  | zoombarImg : Class | PanZoom
|  | zoomMinusMiniImg : Class | PanZoom
|  | zoomPlusMiniImg : Class | PanZoom
|  | zoomWorldMiniImg : Class | PanZoom

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | PanZoom(position:Pixel = null, tween:Boolean = true) | PanZoom
|  | _addButton(name:String, image:Bitmap, xy:Pixel, sz:Size, alt:String = null):void Add button | PanZoom
|  | click(evt:Event):void | PanZoom
|  | destroy():void | PanZoom
|  | doubleClick(evt:Event):Boolean | PanZoom
|  | draw():void | PanZoom
|  | resize(event:MapEvent):void | Control

Property detail

buttons | property

`buttons:Array` [read-write]Implementation
`public function get buttons():Array`
`public function set buttons(value:Array):void`

eastMiniImg | property |

`protected var eastMiniImg:Class`

northMiniImg | property |

`protected var northMiniImg:Class`

slideFactor | property |

`slideFactor:int` [read-write]Implementation
`public function get slideFactor():int`
`public function set slideFactor(value:int):void`

sliderImg | property |

`protected var sliderImg:Class`

southMiniImg | property |

`protected var southMiniImg:Class`

westMiniImg | property |

`protected var westMiniImg:Class`

X | property |

`public static var X:int = 4`

Y | property |

`public static var Y:int = 4`

zoombarImg | property |

`protected var zoombarImg:Class`

zoomMinusMiniImg | property |

`protected var zoomMinusMiniImg:Class`

zoomPlusMiniImg | property |

`protected var zoomPlusMiniImg:Class`

zoomWorldMiniImg | property |

`protected var zoomWorldMiniImg:Class`
Constructor detail

PanZoom | () | constructor

`public function PanZoom(position:Pixel = null, tween:Boolean = true)`Parameters

| `position:Pixel` (default = `null`)``
| `tween:Boolean` (default = `true`)``

Method detail

_addButton | () | method

`public function _addButton(name:String, image:Bitmap, xy:Pixel, sz:Size, alt:String = null):void`

Add button

Parameters

| `name:String`
| `image:Bitmap`
| `xy:Pixel`
| `sz:Size`
| `alt:String` (default = `null`)``

click | () | method |

`public function click(evt:Event):void` Parameters

| `evt:Event`

destroy | () | method |

`public override function destroy():void`

doubleClick | () | method |

`public function doubleClick(evt:Event):Boolean` Parameters

| `evt:Event`

Returns

| `Boolean`

draw | () | method |

`public override function draw():void`