API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class LayerEvent

Package | org.openscales.core.events
Class | public class LayerEvent
Inheritance | LayerEvent OpenScalesEvent flash.events.Event

Event related to a layer.

Public Properties

| Property | Defined by
--- | --- | ---
|  | layer : Layer Layer concerned by the event. | LayerEvent

Public Methods

| Method | Defined by
--- | --- | ---
|  | LayerEvent(type:String, layer:Layer, bubbles:Boolean = false, cancelable:Boolean = false) | LayerEvent

Public Constants

| Constant | Defined by
--- | --- | ---
|  | BASE_LAYER_CHANGED : String = "openscales.changebaselayer" [static] Event type dispatched when the base layer of the map has changed | LayerEvent
|  | LAYER_ADDED : String = "openscales.addlayer" [static] Event type dispatched when a layer is added to the map. | LayerEvent
|  | LAYER_CHANGED : String = "openscales.changelayer" [static] Event type dispatched when a layer has been updated (FIXME : need to be confirmed). | LayerEvent
|  | LAYER_EDITION_MODE_END : String = "openscales.layerEditionModeEnd" [static] Event type dispatched when the edition mode is finished | LayerEvent
|  | LAYER_EDITION_MODE_START : String = "openscales.layerEditionModeStart" [static] Event type dispatched when the edition mode is started | LayerEvent
|  | LAYER_INITIALIZED : String = "openscales.layerinitialized" [static] Event type dispatched when the layer is initialized and ready to request remote data if needed | LayerEvent
|  | LAYER_IN_RANGE : String = "openscales.layerinrange" [static] Event type dispatched when the current map resolution is within the layer's min/max range. | LayerEvent
|  | LAYER_LOAD_END : String = "openscales.layerloadend" [static] Event type dispatched when loading is completed | LayerEvent
|  | LAYER_LOAD_START : String = "openscales.layerloadstart" [static] Event type dispatched when loading is started | LayerEvent
|  | LAYER_OUT_RANGE : String = "openscales.layeroutrange" [static] Event type dispatched when the current map resolution is out of the layer's min/max range. | LayerEvent
|  | LAYER_REMOVED : String = "openscales.removelayer" [static] Event type dispatched when a layer is removed form the map. | LayerEvent
|  | LAYER_VISIBLE_CHANGED : String = "openscales.visibilitychanged" [static] Event type dispatched when property visible of layer is changed | LayerEvent

Property detail

layer | property

`layer:Layer` [read-write]

Layer concerned by the event.

Implementation
`public function get layer():Layer`
`public function set layer(value:Layer):void`
Constructor detail

LayerEvent | () | constructor

`public function LayerEvent(type:String, layer:Layer, bubbles:Boolean = false, cancelable:Boolean = false)`Parameters

| `type:String`
| `layer:Layer`
| `bubbles:Boolean` (default = `false`)``
| `cancelable:Boolean` (default = `false`)``

Constant detail

BASE_LAYER_CHANGED | constant

`public static const BASE_LAYER_CHANGED:String = "openscales.changebaselayer"`

Event type dispatched when the base layer of the map has changed

LAYER_ADDED | constant |

`public static const LAYER_ADDED:String = "openscales.addlayer"`

Event type dispatched when a layer is added to the map.

LAYER_CHANGED | constant |

`public static const LAYER_CHANGED:String = "openscales.changelayer"`

Event type dispatched when a layer has been updated (FIXME : need to be confirmed).

LAYER_EDITION_MODE_END | constant |

`public static const LAYER_EDITION_MODE_END:String = "openscales.layerEditionModeEnd"`

Event type dispatched when the edition mode is finished

LAYER_EDITION_MODE_START | constant |

`public static const LAYER_EDITION_MODE_START:String = "openscales.layerEditionModeStart"`

Event type dispatched when the edition mode is started

LAYER_INITIALIZED | constant |

`public static const LAYER_INITIALIZED:String = "openscales.layerinitialized"`

Event type dispatched when the layer is initialized and ready to request remote data if needed

LAYER_IN_RANGE | constant |

`public static const LAYER_IN_RANGE:String = "openscales.layerinrange"`

Event type dispatched when the current map resolution is within the layer's min/max range.

LAYER_LOAD_END | constant |

`public static const LAYER_LOAD_END:String = "openscales.layerloadend"`

Event type dispatched when loading is completed

LAYER_LOAD_START | constant |

`public static const LAYER_LOAD_START:String = "openscales.layerloadstart"`

Event type dispatched when loading is started

LAYER_OUT_RANGE | constant |

`public static const LAYER_OUT_RANGE:String = "openscales.layeroutrange"`

Event type dispatched when the current map resolution is out of the layer's min/max range.

LAYER_REMOVED | constant |

`public static const LAYER_REMOVED:String = "openscales.removelayer"`

Event type dispatched when a layer is removed form the map.

LAYER_VISIBLE_CHANGED | constant |

`public static const LAYER_VISIBLE_CHANGED:String = "openscales.visibilitychanged"`

Event type dispatched when property visible of layer is changed