Packagecom.esri.aws.awx.map.layers
Classpublic class OverlayLayer
InheritanceOverlayLayer Inheritance com.esri.aws.awx.map.layers.BaseLayer
SubclassesMarkerLayer, PolygonLayer, PolylineLayer

A layer to hold overlay objects.



Public Properties
 PropertyDefined by
  bringToTopOnMouseOver : Boolean = true
If true, on mouse over of an overlay object, the overlay display index is adjusted so that it displays on the top of the stack.
OverlayLayer
  extent : Extent
[read-only] The bounding box (maxX, maxY, minX, minY) of all the contained overlay objects.
OverlayLayer
  numOverlays : int
[read-only] The number of overlays currently in this layer.
OverlayLayer
  style : IStyle
The style is used by any overlays which inherit their style from its parent.
OverlayLayer
Public Methods
 MethodDefined by
  
OverlayLayer(style:IStyle = null)
Creates a new OverlayLayer.
OverlayLayer
  
addOverlay(overlayObject:OverlayObject):void
Adds an overlay object to the layer.
OverlayLayer
  
Gets all the overlay objects in the layer.
OverlayLayer
  
getOverlay(overlayName:String):OverlayObject
Gets an overlay object based on the overlay identifier.
OverlayLayer
  
Removes all the overlay objects in the layer.
OverlayLayer
  
removeOverlay(overlayObject:OverlayObject):void
Removes an overlay object from the layer.
OverlayLayer
Events
 EventSummaryDefined by
   Dispatched after a child has been added to a container.OverlayLayer
   Dispatched before a child of a container is removed.OverlayLayer
Property detail
bringToTopOnMouseOverproperty
public var bringToTopOnMouseOver:Boolean = true

If true, on mouse over of an overlay object, the overlay display index is adjusted so that it displays on the top of the stack.

extentproperty 
extent:Extent  [read-only]

The bounding box (maxX, maxY, minX, minY) of all the contained overlay objects. Returns an empty extent if there are no overlay objects in this layer.

Implementation
    public function get extent():Extent

See also

numOverlaysproperty 
numOverlays:int  [read-only]

The number of overlays currently in this layer.

Implementation
    public function get numOverlays():int
styleproperty 
style:IStyle  [read-write]

The style is used by any overlays which inherit their style from its parent.

Implementation
    public function get style():IStyle
    public function set style(value:IStyle):void
Constructor detail
OverlayLayer()constructor
public function OverlayLayer(style:IStyle = null)

Creates a new OverlayLayer.

Parameters
style:IStyle (default = null) — The default style of the layer (optional).
Method detail
addOverlay()method
public function addOverlay(overlayObject:OverlayObject):void

Adds an overlay object to the layer.

Parameters
overlayObject:OverlayObject — the overlay object to add to the layer.
getAllOverlays()method 
public function getAllOverlays():Array

Gets all the overlay objects in the layer.

Returns
Array — Array of OverlayObjects.
getOverlay()method 
public function getOverlay(overlayName:String):OverlayObject

Gets an overlay object based on the overlay identifier. Usually, this is the "name" property of the overlay object.

Parameters
overlayName:String — the overlay identifier.

Returns
OverlayObject — The overlay object or null if not found.
removeAllOverlays()method 
public function removeAllOverlays():void

Removes all the overlay objects in the layer.

removeOverlay()method 
public function removeOverlay(overlayObject:OverlayObject):void

Removes an overlay object from the layer.

Parameters
overlayObject:OverlayObject — the overlay object to remove.
Event detail
childAddevent 
Event object type: mx.events.ChildExistenceChangedEvent

Dispatched after a child has been added to a container.

The childAdd event is dispatched when the addChild() or addChildAt() method is called. When a container is first created, the addChild() method is automatically called for each child component declared in the MXML file. The addChildAt() method is automatically called whenever a Repeater object adds or removes child objects. The application developer may also manually call these methods to add new children.

At the time when this event is sent, the child object has been initialized, but its width and height have not yet been calculated, and the child has not been drawn on the screen. If you want to be notified when the child has been fully initialized and rendered, then register as a listener for the child's creationComplete event.

childRemoveevent  
Event object type: mx.events.ChildExistenceChangedEvent

Dispatched before a child of a container is removed.

This event is delivered when any of the following methods are called: removeChild(), removeChildAt(), or removeAllChildren().