1 package net.systemeD.halcyon {
3 import flash.events.Event;
5 /** Defines map-related events. */
6 public class MapEvent extends Event {
8 /** Data has been requested for download. */
9 public static const DOWNLOAD:String = "download";
10 /** Viewport size has changed. */
11 public static const RESIZE:String = "resize";
12 /** Map has moved relative to viewport. */
13 public static const MOVE:String = "move";
14 /** Zoom level has changed. */
15 public static const SCALE:String = "scale";
16 /** Background imagery has moved relative to map. */
17 public static const NUDGE_BACKGROUND:String = "nudge_background";
18 /** Map has been created and is ready, although data is not yet downloaded. */
19 public static const INITIALISED:String = "initialized";
20 /** Backrgound imagery has changed to one with attribution that must not be obscured. */
21 public static const BUMP:String = "bump";
22 public static const ERROR:String = "error"; // ** FIXME - this should be a dedicated ErrorEvent class
24 /** Event-specific parameters. */
25 public var params:Object;
27 /** Creates event with name given by a constant, with event-specific parameters. */
28 public function MapEvent(eventname:String, params:Object) {