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

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

Event related to a map.

Public Properties

| Property | Defined by
--- | --- | ---
|  | map : Map | MapEvent
|  | newZoom : Number | MapEvent
|  | oldZoom : Number | MapEvent

Public Methods

| Method | Defined by
--- | --- | ---
|  | MapEvent(type:String, map:Map, bubbles:Boolean = false, cancelable:Boolean = false) Instances of MapEvent are events dispatched by the Map | MapEvent

Public Constants

| Constant | Defined by
--- | --- | ---
|  | DRAG_START : String = "openscales.mapdragstart" [static] Event type dispatched just before dragging the map. | MapEvent
|  | LOAD_END : String = "openscales.maploadend" [static] Event type dispatched when map has been loaded completely. | MapEvent
|  | LOAD_START : String = "openscales.maploadstart" [static] Event type dispatched during map resize. | MapEvent
|  | MOVE_END : String = "openscales.mapmoveend" [static] Event type dispatched after map move if the center has changed. | MapEvent
|  | MOVE_START : String = "openscales.mapmovestart" [static] Event type dispatched before map move. | MapEvent
|  | RESIZE : String = "openscales.mapresize" [static] Event type dispatched during map resize. | MapEvent
|  | ZOOM_END : String = "openscales.mapzoomend" [static] Event type dispatched after map zoom. | MapEvent
|  | ZOOM_START : String = "openscales.mapzoomstart" [static] Event type dispatched before map zoom. | MapEvent

Property detail

map | property

`map:Map` [read-write]Implementation
`public function get map():Map`
`public function set map(value:Map):void`

newZoom | property |

`newZoom:Number` [read-write]Implementation
`public function get newZoom():Number`
`public function set newZoom(value:Number):void`

oldZoom | property |

`oldZoom:Number` [read-write]Implementation
`public function get oldZoom():Number`
`public function set oldZoom(value:Number):void`
Constructor detail

MapEvent | () | constructor

`public function MapEvent(type:String, map:Map, bubbles:Boolean = false, cancelable:Boolean = false)`

Instances of MapEvent are events dispatched by the Map

Parameters

| `type:String`
| `map:Map`
| `bubbles:Boolean` (default = `false`)``
| `cancelable:Boolean` (default = `false`)``

Constant detail

DRAG_START | constant

`public static const DRAG_START:String = "openscales.mapdragstart"`

Event type dispatched just before dragging the map.

LOAD_END | constant |

`public static const LOAD_END:String = "openscales.maploadend"`

Event type dispatched when map has been loaded completely. Cannot use namingconvention with dot "." here because name is used in mxml

LOAD_START | constant |

`public static const LOAD_START:String = "openscales.maploadstart"`

Event type dispatched during map resize. Cannot use namingconvention with dot "." here because name is used in mxml

MOVE_END | constant |

`public static const MOVE_END:String = "openscales.mapmoveend"`

Event type dispatched after map move if the center has changed. There is no DRAG_END since a MOVE_END event is emitted if the center has finally changed

MOVE_START | constant |

`public static const MOVE_START:String = "openscales.mapmovestart"`

Event type dispatched before map move.

RESIZE | constant |

`public static const RESIZE:String = "openscales.mapresize"`

Event type dispatched during map resize.

ZOOM_END | constant |

`public static const ZOOM_END:String = "openscales.mapzoomend"`

Event type dispatched after map zoom.

ZOOM_START | constant |

`public static const ZOOM_START:String = "openscales.mapzoomstart"`

Event type dispatched before map zoom.