Packagecom.afcomponents.umap.overlays
Classpublic class Overlay
InheritanceOverlay Inheritance MapObject Inheritance flash.display.Sprite
ImplementsIMapObject, IOverlay
SubclassesInfoWindow, Marker, Polygon, Polyline

Overlay is a base class for all UMap graphical overlays. It provides implemetation of all methods described in IOverlay interface. If you want to create a custom overlay it would be best to extend this class.


Example
Here is how you can create a simple overlay subclass.
 package
 {
  import com.afcomponents.umap.overlays.Overlay;
   
  public class MyOverlay extends Overlay
  {
   public function MyOverlay(param:Object = null, style:Object = null)
   {
    super(param, style);
     
    // draw square
    with (this.graphics)
    {
     beginFill(0xFFCC00, 0.5);
     lineStyle(2, 0x0);
     drawRect(-10, -10, 20, 20);    
     endFill();
     moveTo(-10, -10);
     lineTo(10, 10);
     moveTo(-10, 10);
     lineTo(10, -10);
    }
   }
  }
 }

To add this overlay to the map, use this code:
 import com.afcomponents.umap.core.UMap;
  
 var map:UMap = new UMap();
 this.addChild(map);
 map.setSize(stage.stageWidth, stage.stageHeight);
 var overlay = map.addOverlay(new MyOverlay());
 trace(overlay.position);



Public Properties
 PropertyDefined by
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
MapObject
  autoCloseInfo : Boolean
Gets or sets the autCloseInfo flag, which indicates whether to close info window automatically when user clicks somewhere on the map.
Overlay
  autoInfo : Boolean
Gets or sets the autInfo flag, which indicates whether to open info window automatically upon mouse click.
Overlay
 Inheritedcore : UMap
Returns reference to the core UMap object.
MapObject
  data : *
Gets or sets the data parameter of the Overlay.
Overlay
  description : String
Gets or sets the description text of the Overlay.
Overlay
  draggable : Boolean
Gets or sets Overlay's draggable property.
Overlay
  dragging : Boolean
[read-only] Indicates whether Overlay is being dragged at the moment.
Overlay
 Inheritedid : uint
Gets or sets the ID of the object.
MapObject
  info : IInfoWindow
[read-only] Return referens to opened InfoWindow
Overlay
  infoParam : Object
Gets or sets the info window param object.
Overlay
  infoStyle : Object
Gets or sets the info window style object associated with the Overlay.
Overlay
  name : String
Gets or sets the name of the object.
Overlay
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
MapObject
  point : Point
[read-only] Returns the position of the Overlay in bitmap coordinates.
Overlay
  position : LatLng
Gets or set the geographical position of the Overlay.
Overlay
  smartPosition : Boolean
Gets or sets the smartPosition flag, which indicates whether to use smart positioning with the Overlay.
Overlay
  smartPositionOffset : Number
[read-only]
Overlay
  visible : Boolean
Gets or sets the Overlay's visibility.
Overlay
  zIndexAuto : Boolean
Gets or sets zIndexAuto property which indicates wheter Overlay should be brought to front on mouse over event.
Overlay
Public Methods
 MethodDefined by
  
Overlay(param:Object = null, style:Object = null)
Overlay constructor.
Overlay
  
addEventListeners(target:InteractiveObject = null):void
Adds a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
Overlay
  
bringToFront():void
Brings target Overlay to the top of the parent's display list.
Overlay
  
Creates an exact copy of this Overlay and returns it to the user.
Overlay
  
Closes info window that is currently opened.
Overlay
  
dispose():void
Releases all the resources accuired by the object.
Overlay
  
dragStart():void
Starts Overlay dragging.
Overlay
  
dragStop():void
Stops Overlay dragging.
Overlay
  
fromXML(overlay:IOverlay, xml:XML):void
[static] Fetches Overlay's common properties from XML object in KML 2.1 format.
Overlay
  
Retruns Overlay bounds in geographical coordinates.
Overlay
  
getBoundsXY(zoom:Number = 0):Bounds
Retruns Overlay bounds in bitmap coordinates.
Overlay
  
getStyle():Object
Returns a copy of the style object.
Overlay
  
hide():void
Hides overlay.
Overlay
  
invalidate():void
Schedules the Overlay for invalidation in 1 frame after this call.
Overlay
  
openInfoWindow(param:Object = null, style:Object = null):IInfoWindow
Opens new info window with the specified parameters & style.
Overlay
  
redraw():void
Redraws the overlay.
Overlay
  
refresh(full:Boolean = false):void
Refreshes overlay position on the map.
Overlay
 Inherited
remove():void
Removes the object from the owner container object.
MapObject
  
removeEventListeners(target:InteractiveObject = null):void
Removes a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
Overlay
 Inherited
Adds the object to the specified IMapObjectContainer.
MapObject
  
setStyle(style:Object):void
Sets the style for this Overlay from an Object or another Style.
Overlay
  
show():void
Shows overlay.
Overlay
 Inherited
toString():String
Returns a textual representation of the object.
MapObject
  
toXML(full:Boolean = true, afcTags:Boolean = false):XML
Builds an XML object in KML 2.1 format that describes the Overlay & it's style.
Overlay
  
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
Overlay
  
updateZoom(zoom:Number):void
Invoked when map zoom has been updated.
Overlay
Events
 EventSummaryDefined by
   Dispatched when the InfoWindow has been closed with the Overlay Overlay
   Dispatched when the InfoWindow has been opened with the Overlay Overlay
   Dispatched when an Overlay position is about to be refreshed.Overlay
   Dispatched when overlay has been added to a MapObjectContainer, e.g.Overlay
   Dispatched when an Overlay is about to be invalidated.Overlay
   Dispatched when an Overlay has been changed.Overlay
   Dispatched when user drags an Overlay.Overlay
   Dispatched when user starts dragging an Overlay.Overlay
   Dispatched when user stops dragging an Overlay.Overlay
   Dispatched when an Overlay has become invisible.Overlay
   Dispatched when user presses a mouse button over an Overlay.Overlay
   Dispatched when user moves the mouse over an Overlay.Overlay
   Dispatched when user releases a mouse button over an Overlay.Overlay
   Dispatched when an Overlay enters ready state.Overlay
   Dispatched when an Overlay has been invalidated.Overlay
   Dispatched when an Overlay position has been refreshed.Overlay
   Dispatched when user rolls out an Overlay.Overlay
   Dispatched when user rolls over an Overlay.Overlay
   Dispatched when an Overlay has become visible.Overlay
Property detail
autoCloseInfoproperty
autoCloseInfo:Boolean  [read-write]

Gets or sets the autCloseInfo flag, which indicates whether to close info window automatically when user clicks somewhere on the map.

Implementation
    public function get autoCloseInfo():Boolean
    public function set autoCloseInfo(value:Boolean):void
autoInfoproperty 
autoInfo:Boolean  [read-write]

Gets or sets the autInfo flag, which indicates whether to open info window automatically upon mouse click.

Implementation
    public function get autoInfo():Boolean
    public function set autoInfo(value:Boolean):void
dataproperty 
data:*  [read-write]

Gets or sets the data parameter of the Overlay.

Implementation
    public function get data():*
    public function set data(value:*):void
descriptionproperty 
description:String  [read-write]

Gets or sets the description text of the Overlay.

Implementation
    public function get description():String
    public function set description(value:String):void
draggableproperty 
draggable:Boolean  [read-write]

Gets or sets Overlay's draggable property.

Implementation
    public function get draggable():Boolean
    public function set draggable(value:Boolean):void
draggingproperty 
dragging:Boolean  [read-only]

Indicates whether Overlay is being dragged at the moment.

Implementation
    public function get dragging():Boolean
infoproperty 
info:IInfoWindow  [read-only]

Return referens to opened InfoWindow

Implementation
    public function get info():IInfoWindow
infoParamproperty 
infoParam:Object  [read-write]

Gets or sets the info window param object.

Implementation
    public function get infoParam():Object
    public function set infoParam(value:Object):void
infoStyleproperty 
infoStyle:Object  [read-write]

Gets or sets the info window style object associated with the Overlay.

Implementation
    public function get infoStyle():Object
    public function set infoStyle(value:Object):void
nameproperty 
name:String  [read-write]

Gets or sets the name of the object.

Implementation
    public function get name():String
    public function set name(value:String):void
pointproperty 
point:Point  [read-only]

Returns the position of the Overlay in bitmap coordinates.

Implementation
    public function get point():Point
positionproperty 
position:LatLng  [read-write]

Gets or set the geographical position of the Overlay.

Implementation
    public function get position():LatLng
    public function set position(value:LatLng):void
smartPositionproperty 
smartPosition:Boolean  [read-write]

Gets or sets the smartPosition flag, which indicates whether to use smart positioning with the Overlay.

The default value is true.

Implementation
    public function get smartPosition():Boolean
    public function set smartPosition(value:Boolean):void
smartPositionOffsetproperty 
smartPositionOffset:Number  [read-only]Implementation
    public function get smartPositionOffset():Number
visibleproperty 
visible:Boolean  [read-write]

Gets or sets the Overlay's visibility.

Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
zIndexAutoproperty 
zIndexAuto:Boolean  [read-write]

Gets or sets zIndexAuto property which indicates wheter Overlay should be brought to front on mouse over event.

The default value is false.

Implementation
    public function get zIndexAuto():Boolean
    public function set zIndexAuto(value:Boolean):void
Constructor detail
Overlay()constructor
public function Overlay(param:Object = null, style:Object = null)

Overlay constructor.

Creates new Overlay object with the default parameters. Properties defined in param object will override the default values. You can also specify a style object that will be saved in protected style property.

Here is a list of properties you can specify in the param object:

PropertyTypeDefaultDescription
position LatLng (lat=0, lng=0) Specifies overlay geographical position.
id uint next id in sequence Specifies overlay's id.
name String Overlay(id) Specifies overlay's name. It will be displayed in Info Window's title text field.
description String null Specifies overlay's description. It will be displayed in Info Window's content text field.
data * null Specifies additional info data you want to save within the overlay.
draggable Boolean false A flag, that specifies whether overlay is draggable.
zIndexAuto Boolean false A flag, that specifies whether overlay should be brought to front when user rolls over it.
smartPosition Boolean true A flag, that specifies whether smart positioning should be used when updating the overlay.
autoInfo Boolean true A flag, that specifies whether info window should popup automatically when user clicks the overlay.
autoCloseInfo Boolean true A flag, that specifies whether info window should be closed when user clicks somewhere on the map.
infoParam Object null Object that will be passed to the opened InfoWindow.
infoStyle Object null Style object that will be used to style opened InfoWindow.


Parameters
param:Object (default = null) — Object that holds all the properites of an overlay you wish to override upon its creation.
 
style:Object (default = null) — Object that defines overlay's style.
Method detail
addEventListeners()method
public function addEventListeners(target:InteractiveObject = null):void

Adds a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.

Parameters
target:InteractiveObject (default = null) — Target InteractiveObject to which mouse events we should listen. By default listeners are added to the Overlay itself.
bringToFront()method 
public function bringToFront():void

Brings target Overlay to the top of the parent's display list.

clone()method 
public function clone():IOverlay

Creates an exact copy of this Overlay and returns it to the user. Please note that it doesn't attach new Overlay to the same or any other parent.

Returns
IOverlay — New Overlay with the same properties.
closeInfoWindow()method 
public function closeInfoWindow():void

Closes info window that is currently opened.

dispose()method 
public override function dispose():void

Releases all the resources accuired by the object.

dragStart()method 
public function dragStart():void

Starts Overlay dragging.

dragStop()method 
public function dragStop():void

Stops Overlay dragging.

fromXML()method 
public static function fromXML(overlay:IOverlay, xml:XML):void

Fetches Overlay's common properties from XML object in KML 2.1 format. The values are set for the object specified in the first parameter.

Parameters
overlay:IOverlay — Object to which the fetched values should be applied.
 
xml:XML — XML object with root <Style> node.

Example
Here is a sample KML structure:
  <Placemark id="ID">
    <name>Placemark name</name>                        <!-- string -->
    <description>Placemark description</description>   <!-- string -->
    <visibility>1/0</visibility>                       <!-- boolean -->
  </Placemark>

getBoundsLatLng()method 
public function getBoundsLatLng():LatLngBounds

Retruns Overlay bounds in geographical coordinates.

Returns
LatLngBounds — Overlay bounding rectangle in geographical coordinates.
getBoundsXY()method 
public function getBoundsXY(zoom:Number = 0):Bounds

Retruns Overlay bounds in bitmap coordinates. Use zoom parameter to specify zoom level for bounds conversion.

Parameters
zoom:Number (default = 0) — Defines the zoom level at which to perform bounds conversion; if omitted, current zoom level will be used.

Returns
Bounds — Overlay bounding rectangle in bitmap coordinates.
getStyle()method 
public function getStyle():Object

Returns a copy of the style object.

Returns
Object — A clone of the current style object.
hide()method 
public function hide():void

Hides overlay. Fires OverlayEvent.HIDE & OverlayEvent.CHAGNED events if visibility has been changed.

invalidate()method 
public function invalidate():void

Schedules the Overlay for invalidation in 1 frame after this call.

openInfoWindow()method 
public function openInfoWindow(param:Object = null, style:Object = null):IInfoWindow

Opens new info window with the specified parameters & style. Info window is placed in the center of the object.

Default info window parameters are stored in _infoParam property, but can be overriden by param parameter of the function call. Also you can define the default autoClose value within the parent layer's infoParam object.

Style objects will be concatinated. Here is the order of concatination:

  • InfoWindow.getDefaultStyle() - info window default static style.
  • Layer.infoStyle - parent layer info style.
  • Overlay.infoStyle - local infoStyle property
  • style - style parameter of the function call.
  • Parameters
    param:Object (default = null) — Object that describes the parameters of the InfoWindow.
     
    style:Object (default = null) — Object that defines InfoWindow's style.

    Returns
    IInfoWindow — Reference to the opened info window object.
    redraw()method 
    public function redraw():void

    Redraws the overlay.

    Override this method in your subclass and call super.redraw() immediately before actual redraw so that OverlayEvent.BEFORE_REDRAW event will be automatically fired. At the end of your drawing don't forget to manually fire OverlayEvent.REDRAW event.

    refresh()method 
    public function refresh(full:Boolean = false):void

    Refreshes overlay position on the map. If the full paramter is set to true then bitmap coordinates for this overlay are recalculated. Otherwise overlay will be repositioned using previuosly calculated coordinates.

    Parameters
    full:Boolean (default = false) — Indicates whether to perform full refresh.
    removeEventListeners()method 
    public function removeEventListeners(target:InteractiveObject = null):void

    Removes a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.

    Parameters
    target:InteractiveObject (default = null) — Target InteractiveObject to which mouse events we should stop listening. By default listeners are removed from the Overlay itself.
    setStyle()method 
    public function setStyle(style:Object):void

    Sets the style for this Overlay from an Object or another Style. After setting the style, Overlay will be invalidated.

    Parameters
    style:Object — which contains style properties you wish to overwrite.
    show()method 
    public function show():void

    Shows overlay. Fires OverlayEvent.SHOW & OverlayEvent.CHAGNED events if visibility has been changed.

    toXML()method 
    public function toXML(full:Boolean = true, afcTags:Boolean = false):XML

    Builds an XML object in KML 2.1 format that describes the Overlay & it's style. Flag full indicates whether to build a complete KML data or just a container.

    Parameters
    full:Boolean (default = true) — A value of true if you want to return a full KML file with header; false if you want to get only a container with style and placemark nodes.
     
    afcTags:Boolean (default = false) — Flag that determines whether to generate KML data with extended AFC tags.

    Returns
    XML — XML object in KML 2.1 format.
    updatePosition()method 
    public function updatePosition(latlng:LatLng):void

    Invoked when map center has been updated.

    Parameters
    latlng:LatLng — Geographical coordinates of the new map center.
    updateZoom()method 
    public function updateZoom(zoom:Number):void

    Invoked when map zoom has been updated.

    Parameters
    zoom:Number — New zoom level.
    Event detail
    infoWindowClosedevent 
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.INFO_WINDOW_CLOSED

    Dispatched when the InfoWindow has been closed with the Overlay

    The OverlayEvent.INFO_WINDOW_CLOSED constant defines the value of the type property of an infoWindowClosed event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that has closed an InfoWindow.
    paramnull
    infoWindowOpenedevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.INFO_WINDOW_OPENED

    Dispatched when the InfoWindow has been opened with the Overlay

    The OverlayEvent.INFO_WINDOW_OPENED constant defines the value of the type property of an infoWindowOpened event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that has opened an InfoWindow.
    paramnull
    overlaBeforeyRefreshevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.BEFORE_REFRESH

    Dispatched when an Overlay position is about to be refreshed. Use param property of the OverlayEvent object to check whether full refresh will be performed.

    overlayAddedevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.ADDED

    Dispatched when overlay has been added to a MapObjectContainer, e.g. Layer.

    The OverlayEvent.ADDED constant defines the value of the type property of an overlayAdded event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance which has been added to MapObjectContainer.
    paramnull
    overlayBeforeRedrawevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.BEFORE_REDRAW

    Dispatched when an Overlay is about to be invalidated.

    The OverlayEvent.BEFORE_REDRAW constant defines the value of the type property of an overlayBeforeRedraw event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that is going to be invalidated.
    paramnull
    overlayChangedevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.CHANGED

    Dispatched when an Overlay has been changed. Use param property of the OverlayEvent object to get the name of the property that has been changed.

    The OverlayEvent.CHANGED constant defines the value of the type property of an overlayChange event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that has been changed.
    paramName of the property that has changed.
    overlayDragevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.DRAG

    Dispatched when user drags an Overlay.

    The OverlayEvent.DRAG constant defines the value of the type property of an overlayDrag event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance which is being dragged.
    paramnull
    overlayDragStartevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.DRAG_START

    Dispatched when user starts dragging an Overlay.

    The OverlayEvent.DRAG_START constant defines the value of the type property of an overlayDragStart event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance which has started being dragged.
    paramnull
    overlayDragStopevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.DRAG_STOP

    Dispatched when user stops dragging an Overlay.

    The OverlayEvent.DRAG_STOP constant defines the value of the type property of an overlayDragStop event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance which has stopped being dragged.
    paramnull
    overlayHideevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.HIDE

    Dispatched when an Overlay has become invisible. This event is triggered only when user uses the hide() method.

    The OverlayEvent.HIDE constant defines the value of the type property of an overlayHide event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that has become invisible.
    paramnull
    overlayMouseDownevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.MOUSE_DOWN

    Dispatched when user presses a mouse button over an Overlay.

    The OverlayEvent.MOUSE_DOWN constant defines the value of the type property of an overlayMouseDown event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance over which user pressed a mouse button.
    paramnull
    overlayMouseMoveevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.MOUSE_MOVE

    Dispatched when user moves the mouse over an Overlay.

    The OverlayEvent.MOUSE_MOVE constant defines the value of the type property of an overlayMouseMove event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance over which mouse have been moved.
    paramnull
    overlayMouseUpevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.MOUSE_UP

    Dispatched when user releases a mouse button over an Overlay.

    The OverlayEvent.MOUSE_UP constant defines the value of the type property of an overlayMouseUp event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance over which user released a mouse button.
    paramnull
    overlayReadyevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.READY

    Dispatched when an Overlay enters ready state. This happens after overlay becomes attached to a parent object.

    The OverlayEvent.READY constant defines the value of the type property of an overlayReady event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that has entered ready state.
    paramnull
    overlayRedrawevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.REDRAW

    Dispatched when an Overlay has been invalidated.

    The OverlayEvent.REDRAW constant defines the value of the type property of an overlayRedraw event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that has been invalidated.
    paramnull
    overlayRefreshevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.REFRESH

    Dispatched when an Overlay position has been refreshed. Use param property of the OverlayEvent object to check whether full refresh has been performed.

    The OverlayEvent.REFRESH constant defines the value of the type property of an overlayRefresh event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance which position has been refreshed.
    paramA value of true if full refresh has been made; false if it has not.
    overlayRollOUtevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.ROLL_OUT

    Dispatched when user rolls out an Overlay.

    overlayRollOverevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.ROLL_OVER

    Dispatched when user rolls over an Overlay.

    The OverlayEvent.ROLL_OVER constant defines the value of the type property of an overlayRollOver event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance over which a roll over event occured.
    paramnull
    overlayShowevent  
    Event object type: com.afcomponents.umap.events.OverlayEvent
    OverlayEvent.type property = com.afcomponents.umap.events.OverlayEvent.SHOW

    Dispatched when an Overlay has become visible. This event is triggered only when user uses the show() method.

    The OverlayEvent.SHOW constant defines the value of the type property of an overlayShow event object.

    This event has the following properties:

    PropertyValue
    bubblesfalse
    cancelablefalse; there is no default behavior to cancel.
    currentTarget The object that is actively processing the OverlayEvent object with an event listener.
    targetThe Overlay instance that has become visible.
    paramnull