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

Package | org.openscales.core.control
Class | public class MousePosition
Inheritance | MousePosition Control flash.display.Sprite

Control displaying the coordinates (Lon, Lat) of the current mouse position. Don't forget to initialize the position of the control, and the width

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean | Control
|  | displayProjection : ProjProjection | MousePosition
|  | granularity : int | MousePosition
|  | label : TextField | MousePosition
|  | lastXy : Pixel | MousePosition
|  | map : Map [write-only] | MousePosition
|  | numdigits : Number | MousePosition
|  | position : Pixel | Control
|  | prefix : String Getters & setters | MousePosition
|  | separator : String | MousePosition
|  | suffix : String | MousePosition

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _active : Boolean = false | Control
|  | _map : Map = null | Control

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | MousePosition(position:Pixel = null) MousePosition Constructor | MousePosition
|  | destroy():void | Control
|  | draw():void | MousePosition
|  | redraw(evt:MouseEvent = null):void Display the coordinate where is the mouse | MousePosition
|  | resize(event:MapEvent):void | Control

Property detail

displayProjection | property

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

granularity | property |

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

label | property |

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

lastXy | property |

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

map | property |

`map:Map` [write-only]Implementation
`public function set map(value:Map):void`

numdigits | property |

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

prefix | property |

`prefix:String` [read-write]

Getters & setters

Implementation
`public function get prefix():String`
`public function set prefix(value:String):void`

separator | property |

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

suffix | property |

`suffix:String` [read-write]Implementation
`public function get suffix():String`
`public function set suffix(value:String):void`
Constructor detail

MousePosition | () | constructor

`public function MousePosition(position:Pixel = null)`

MousePosition Constructor

Parameters

| `position:Pixel` (default = `null`)``

Method detail

draw | () | method

`public override function draw():void`

redraw | () | method |

`public function redraw(evt:MouseEvent = null):void`

Display the coordinate where is the mouse

Parameters

| `evt:MouseEvent` (default = `null`)``