| Package | com.yahoo.maps.api.widgets |
| Class | public class ScaleBarWidget |
| Inheritance | ScaleBarWidget Widget flash.display.Sprite |
See also
| Property | Defined by | ||
|---|---|---|---|
| align : String [write-only]
| ScaleBarWidget | ||
![]() | map : IYahooMap | Widget | |
| Method | Defined by | ||
|---|---|---|---|
|
ScaleBarWidget(map:IYahooMap, lengthScale:int = 4)
Creates a new ScaleBarWidget object.
| ScaleBarWidget | ||
|
destroy():void
Prepares this object for garbage-collection.
| ScaleBarWidget | ||
|
onMapMove(event:YahooMapEvent):void
Map move event handler.
| ScaleBarWidget | ||
|
onMapResize(event:YahooMapEvent):void
Map resize event handler.
| ScaleBarWidget | ||
|
onMapTypeChanged(event:YahooMapEvent):void
Map type change event handler.
| ScaleBarWidget | ||
|
onMapZoom(event:YahooMapEvent):void
Map zoom event handler.
| ScaleBarWidget | ||
|
updateScale():void
Updates the width and values of the scale bars.
| ScaleBarWidget | ||
| align | property |
align:String [write-only]Implementation
public function set align(value:String):void
| ScaleBarWidget | () | constructor |
public function ScaleBarWidget(map:IYahooMap, lengthScale:int = 4)Creates a new ScaleBarWidget object.
Parametersmap:IYahooMap |
|
lengthScale:int (default = 4) |
| destroy | () | method |
public override function destroy():voidPrepares this object for garbage-collection.
| onMapMove | () | method |
public override function onMapMove(event:YahooMapEvent):voidMap move event handler.
Parametersevent:YahooMapEvent |
| onMapResize | () | method |
public override function onMapResize(event:YahooMapEvent):voidMap resize event handler.
Parametersevent:YahooMapEvent |
| onMapTypeChanged | () | method |
public override function onMapTypeChanged(event:YahooMapEvent):voidMap type change event handler.
Parametersevent:YahooMapEvent |
| onMapZoom | () | method |
public override function onMapZoom(event:YahooMapEvent):voidMap zoom event handler.
Parametersevent:YahooMapEvent |
| updateScale | () | method |
public function updateScale():voidUpdates the width and values of the scale bars.