Packagecom.yahoo.maps.api.widgets
Classpublic class Widget
InheritanceWidget Inheritance flash.display.Sprite
ImplementsIWidget
SubclassesCopyrightWidget, CrosshairWidget, MapTypeWidget, ScaleBarWidget, ZoomWidget

The core widget class that contains a set of methods that help to create a widget.

A widget usually displays information or allows users to interact with the map.

You should extend this object to create your own widget over the map.



Public Properties
 PropertyDefined by
  align : String
Widget
  map : IYahooMap
[read-only]
Widget
Public Methods
 MethodDefined by
  
Widget
  
destroy():void
Prepares this object for garbage-collection.
Widget
  
Widget
  
Widget
  
Widget
  
Widget
Protected Methods
 MethodDefined by
  
alignWidget():void
Widget
Property detail
alignproperty
align:String  [read-write]Implementation
    public function get align():String
    public function set align(value:String):void
mapproperty 
map:IYahooMap  [read-only]Implementation
    public function get map():IYahooMap
Constructor detail
Widget()constructor
public function Widget(map:IYahooMap)Parameters
map:IYahooMap
Method detail
alignWidget()method
protected function alignWidget():void
destroy()method 
public function destroy():void

Prepares this object for garbage-collection.

onMapMove()method 
public function onMapMove(event:YahooMapEvent):voidParameters
event:YahooMapEvent
onMapResize()method 
public function onMapResize(event:YahooMapEvent):voidParameters
event:YahooMapEvent
onMapTypeChanged()method 
public function onMapTypeChanged(event:YahooMapEvent):voidParameters
event:YahooMapEvent
onMapZoom()method 
public function onMapZoom(event:YahooMapEvent):voidParameters
event:YahooMapEvent