The scaleLine
Calcul and display an approximate scale of the current baselayer.
bottomInUnits:String [read-write]Implementation
public function get bottomInUnits():String
public function set bottomInUnits(value:String):void
bottomOutUnits:String [read-write]Implementation
public function get bottomOutUnits():String
public function set bottomOutUnits(value:String):void
color:int [read-write]Implementation
public function get color():int
public function set color(value:int):void
labelKm:TextField [read-write]Implementation
public function get labelKm():TextField
public function set labelKm(value:TextField):void
labelMiles:TextField [read-write]Implementation
public function get labelMiles():TextField
public function set labelMiles(value:TextField):void
map:Map [write-only]
Get the existing map and add event listener on event Zoom end and baseLayer change.
Implementation
public function set map(value:Map):void
scaleMaxWidth:Number [read-write]Implementation
public function get scaleMaxWidth():Number
public function set scaleMaxWidth(value:Number):void
topInUnits:String [read-write]Implementation
public function get topInUnits():String
public function set topInUnits(value:String):void
topOutUnits:String [read-write]Implementation
public function get topOutUnits():String
public function set topOutUnits(value:String):void
topPx:Number [read-write]Implementation
public function get topPx():Number
public function set topPx(value:Number):void
public function ScaleLine(position:Pixel = null)
Constructor
Parameters
| position:Pixel (default = null) |
public override function draw():void
public function updateScaleLine(event:Event):void
Redraw the scaleline with new parameters.
Parameters
| event:Event — the event can be a MapEvent.ZOOM_END or LayerEvent.BASE_LAYER_CHANGED.
|