Packagecom.yahoo.maps.api.managers
Classpublic class OverlayManager

This class manages the overlays which have been added to the map.



Public Properties
 PropertyDefined by
  overlayContainer : Sprite
[read-only] Returns the container in which overlays are shown on.
OverlayManager
  overlays : Array
[read-only] An Array of the overlays currently active on the map.
OverlayManager
Public Methods
 MethodDefined by
  
OverlayManager(container:Sprite, map:IYahooMap)
Creates a new OverlayManager object.
OverlayManager
  
addOverlay(overlay:Overlay):void
Adds an overlay onto the overlayContainer.
OverlayManager
  
destroy():void
Prepares this object for garbage-collection.
OverlayManager
  
Returns an array of overlays currently added to the stage.
OverlayManager
  
Returns an array of overlays that are visible on the stage.
OverlayManager
  
Removes all overlays from the overlayContainer.
OverlayManager
  
removeOverlay(overlay:Overlay):void
Removes an overlay from the overlayContainer.
OverlayManager
Property detail
overlayContainerproperty
overlayContainer:Sprite  [read-only]

Returns the container in which overlays are shown on.

Implementation
    public function get overlayContainer():Sprite
overlaysproperty 
overlays:Array  [read-only]

An Array of the overlays currently active on the map.

Implementation
    public function get overlays():Array
Constructor detail
OverlayManager()constructor
public function OverlayManager(container:Sprite, map:IYahooMap)

Creates a new OverlayManager object.

Parameters
container:Sprite
 
map:IYahooMap
Method detail
addOverlay()method
public function addOverlay(overlay:Overlay):void

Adds an overlay onto the overlayContainer.

Parameters
overlay:Overlay
destroy()method 
public function destroy():void

Prepares this object for garbage-collection.

getOverlaysOnStage()method 
public function getOverlaysOnStage():Array

Returns an array of overlays currently added to the stage.

Returns
Array
getVisibleOverlays()method 
public function getVisibleOverlays():Array

Returns an array of overlays that are visible on the stage.

Returns
Array
removeAllOverlays()method 
public function removeAllOverlays():void

Removes all overlays from the overlayContainer.

removeOverlay()method 
public function removeOverlay(overlay:Overlay):void

Removes an overlay from the overlayContainer.

Parameters
overlay:Overlay