| Package | com.afcomponents.umap.overlays |
| Class | public class Overlay |
| Inheritance | Overlay MapObject flash.display.Sprite |
| Implements | IMapObject, IOverlay |
| Subclasses | InfoWindow, Marker, Polygon, Polyline |
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);
}
}
}
}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);
| Property | Defined by | ||
|---|---|---|---|
![]() | asDisplayObject : 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 | ||
![]() | core : 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 | ||
![]() | id : 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 | ||
![]() | owner : 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 | ||
| Method | Defined 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 | ||
|
closeInfoWindow():void
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 | ||
|
[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 | ||
![]() |
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 | ||
![]() |
setOwner(owner:IMapObjectContainer):void
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 | ||
![]() |
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 | ||
| Event | Summary | Defined 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 | |||
| autoCloseInfo | property |
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
| autoInfo | property |
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
| data | property |
data:* [read-write]Gets or sets the data parameter of the Overlay.
Implementation public function get data():*
public function set data(value:*):void
| description | property |
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
| draggable | property |
draggable:Boolean [read-write]Gets or sets Overlay's draggable property.
Implementation public function get draggable():Boolean
public function set draggable(value:Boolean):void
| dragging | property |
dragging:Boolean [read-only]Indicates whether Overlay is being dragged at the moment.
Implementation public function get dragging():Boolean
| info | property |
info:IInfoWindow [read-only]Return referens to opened InfoWindow
Implementation public function get info():IInfoWindow
| infoParam | property |
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
| infoStyle | property |
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
| name | property |
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
| point | property |
point:Point [read-only]Returns the position of the Overlay in bitmap coordinates.
Implementation public function get point():Point
| position | property |
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
| smartPosition | property |
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.
public function get smartPosition():Boolean
public function set smartPosition(value:Boolean):void
| smartPositionOffset | property |
smartPositionOffset:Number [read-only]Implementation
public function get smartPositionOffset():Number
| visible | property |
visible:Boolean [read-write]Gets or sets the Overlay's visibility.
Implementation public function get visible():Boolean
public function set visible(value:Boolean):void
| zIndexAuto | property |
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.
public function get zIndexAuto():Boolean
public function set zIndexAuto(value:Boolean):void
| 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:
| Property | Type | Default | Description |
|---|---|---|---|
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 |
infoStyle |
Object |
null | Style object that will be used to style opened InfoWindow. |
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.
|
| addEventListeners | () | method |
public function addEventListeners(target:InteractiveObject = null):voidAdds a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
Parameterstarget: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():voidBrings target Overlay to the top of the parent's display list.
| clone | () | method |
public function clone():IOverlayCreates 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.
ReturnsIOverlay —
New Overlay with the same properties.
|
| closeInfoWindow | () | method |
public function closeInfoWindow():voidCloses info window that is currently opened.
| dispose | () | method |
public override function dispose():voidReleases all the resources accuired by the object.
| dragStart | () | method |
public function dragStart():voidStarts Overlay dragging.
| dragStop | () | method |
public function dragStop():voidStops Overlay dragging.
| fromXML | () | method |
public static function fromXML(overlay:IOverlay, xml:XML):voidFetches Overlay's common properties from XML object in KML 2.1 format. The values are set for the object specified in the first parameter.
Parametersoverlay:IOverlay — Object to which the fetched values should be applied.
|
|
xml:XML — XML object with root <Style> node.
|
<Placemark id="ID">
<name>Placemark name</name> <!-- string -->
<description>Placemark description</description> <!-- string -->
<visibility>1/0</visibility> <!-- boolean -->
</Placemark>| getBoundsLatLng | () | method |
public function getBoundsLatLng():LatLngBoundsRetruns Overlay bounds in geographical coordinates.
ReturnsLatLngBounds —
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.
zoom:Number (default = 0) — Defines the zoom level at which to perform bounds conversion; if omitted, current zoom level will be used.
|
Bounds —
Overlay bounding rectangle in bitmap coordinates.
|
| getStyle | () | method |
public function getStyle():ObjectReturns a copy of the style object.
ReturnsObject — 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():voidSchedules the Overlay for invalidation in 1 frame after this call.
| openInfoWindow | () | method |
public function openInfoWindow(param:Object = null, style:Object = null):IInfoWindowOpens 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 propertystyle - style parameter of the function call.param:Object (default = null) — Object that describes the parameters of the InfoWindow.
|
|
style:Object (default = null) — Object that defines InfoWindow's style.
|
IInfoWindow —
Reference to the opened info window object.
|
| redraw | () | method |
public function redraw():voidRedraws 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.
full:Boolean (default = false) — Indicates whether to perform full refresh.
|
| removeEventListeners | () | method |
public function removeEventListeners(target:InteractiveObject = null):voidRemoves a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
Parameterstarget: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):voidSets the style for this Overlay from an Object or another Style. After setting the style, Overlay will be invalidated.
Parametersstyle: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.
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.
|
XML — XML object in KML 2.1 format.
|
| updatePosition | () | method |
public function updatePosition(latlng:LatLng):voidInvoked when map center has been updated.
Parameterslatlng:LatLng — Geographical coordinates of the new map center.
|
| updateZoom | () | method |
public function updateZoom(zoom:Number):voidInvoked when map zoom has been updated.
Parameterszoom:Number — New zoom level.
|
| infoWindowClosed | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that has closed an InfoWindow. |
param | null |
| infoWindowOpened | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that has opened an InfoWindow. |
param | null |
| overlaBeforeyRefresh | event |
com.afcomponents.umap.events.OverlayEvent
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.
| overlayAdded | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance which has been added to MapObjectContainer. |
param | null |
| overlayBeforeRedraw | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that is going to be invalidated. |
param | null |
| overlayChanged | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that has been changed. |
param | Name of the property that has changed. |
| overlayDrag | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance which is being dragged. |
param | null |
| overlayDragStart | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance which has started being dragged. |
param | null |
| overlayDragStop | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance which has stopped being dragged. |
param | null |
| overlayHide | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that has become invisible. |
param | null |
| overlayMouseDown | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance over which user pressed a mouse button. |
param | null |
| overlayMouseMove | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance over which mouse have been moved. |
param | null |
| overlayMouseUp | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance over which user released a mouse button. |
param | null |
| overlayReady | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that has entered ready state. |
param | null |
| overlayRedraw | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that has been invalidated. |
param | null |
| overlayRefresh | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance which position has been refreshed. |
param | A value of true if full refresh has been made; false if it has not. |
| overlayRollOUt | event |
com.afcomponents.umap.events.OverlayEvent
com.afcomponents.umap.events.OverlayEvent.ROLL_OUT
Dispatched when user rolls out an Overlay.
| overlayRollOver | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance over which a roll over event occured. |
param | null |
| overlayShow | event |
com.afcomponents.umap.events.OverlayEvent
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:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false; there is no default behavior to cancel. |
currentTarget |
The object that is actively processing the OverlayEvent object with an event listener. |
target | The Overlay instance that has become visible. |
param | null |