Package | com.google.maps |
Class | public class MapEvent |
Inheritance | MapEvent ![]() |
Subclasses | DirectionsEvent, GeocodingEvent, MapMouseEvent, MapMoveEvent, MapZoomEvent |
Property | Defined by | ||
---|---|---|---|
feature : Object [read-only]
The object that the event refers to (such as an instance of
IMapType for MapEvent.MAPTYPE_ADDED event or an instance of
IControl for MapEvent.CONTROL_REMOVED).
| MapEvent |
Method | Defined by | ||
---|---|---|---|
MapEvent(type:String, feature:Object, bubbles:Boolean = false, cancellable:Boolean = false)
Creates an Event object to pass as a parameter to event listeners.
| MapEvent |
Constant | Defined by | ||
---|---|---|---|
CONTROL_ADDED : String = "mapevent_controladded" [static]
This event is fired on the map when a control is added to the map.
| MapEvent | ||
CONTROL_REMOVED : String = "mapevent_controlremoved" [static]
This event is fired on the map when a control is removed from the map.
| MapEvent | ||
COPYRIGHTS_UPDATED : String = "mapevent_copyrightsupdated" [static]
This event is fired when the copyright that should be displayed on the
map is updated.
| MapEvent | ||
INFOWINDOW_CLOSED : String = "mapevent_infowindowclosed" [static]
This event is fired when the info window closes.
| MapEvent | ||
INFOWINDOW_CLOSING : String = "mapevent_infowindowclosing" [static]
This event is fired before the info window closes.
| MapEvent | ||
INFOWINDOW_OPENED : String = "mapevent_infowindowopened" [static]
This event is fired when the info window opens.
| MapEvent | ||
MAP_PREINITIALIZE : String = "mapevent_mappreinitialize" [static]
This event is fired immediately before the map is initialized.
| MapEvent | ||
MAP_READY : String = "mapevent_mapready" [static]
This event is fired when map initialization is complete and isLoaded()
would return true.
| MapEvent | ||
MAPTYPE_ADDED : String = "mapevent_maptypeadded" [static]
This event is fired when a new MapType has been added to the map.
| MapEvent | ||
MAPTYPE_CHANGED : String = "maptypechanged" [static]
This event is fired when another map type is selected.
| MapEvent | ||
MAPTYPE_REMOVED : String = "mapevent_maptyperemoved" [static]
This event is fired when a MapType has been removed from the map.
| MapEvent | ||
OVERLAY_BEFORE_REMOVED : String = "mapevent_overlaybeforeremoved" [static]
This event is fired when an overlay is about to be removed from the map.
| MapEvent | ||
OVERLAY_MOVED : String = "mapevent_overlaymoved" [static]
This event is fired when an overlay's position is changed.
| MapEvent | ||
OVERLAY_REMOVED : String = "mapevent_overlayremoved" [static]
This event is fired after a single overlay is removed from the map.
| MapEvent | ||
SIZE_CHANGED : String = "mapevent_sizechanged" [static]
This event is fired when the size of the map has changed.
| MapEvent | ||
VISIBILITY_CHANGED : String = "mapevent_visibilitychanged" [static]
This event is fired when an overlay's visibility has changed
(from visible to hidden or vice-versa).
| MapEvent |
feature | property |
feature:Object
[read-only]The object that the event refers to (such as an instance of IMapType for MapEvent.MAPTYPE_ADDED event or an instance of IControl for MapEvent.CONTROL_REMOVED).
Implementation public function get feature():Object
MapEvent | () | constructor |
public function MapEvent(type:String, feature:Object, bubbles:Boolean = false, cancellable:Boolean = false)
Creates an Event object to pass as a parameter to event listeners.
Parameterstype:String — The type of the event, accessible as MapEvent.type.
|
|
feature:Object — Map feature (overlay, control or the map itself)
that the event relates to. A MapEvent may be dispatched either on the
map itself (in which case the target and feature will be different
as the map will be the target) or on a feature (in which case
the feature field will match the target).
|
|
bubbles:Boolean (default = false ) — Determines whether the Event object participates in
the bubbling stage of the event flow. The default value is false.
|
|
cancellable:Boolean (default = false ) — Determines whether the Event object can be cancelled.
The default value is false.
|
CONTROL_ADDED | constant |
public static const CONTROL_ADDED:String = "mapevent_controladded"
This event is fired on the map when a control is added to the map.
CONTROL_REMOVED | constant |
public static const CONTROL_REMOVED:String = "mapevent_controlremoved"
This event is fired on the map when a control is removed from the map.
COPYRIGHTS_UPDATED | constant |
public static const COPYRIGHTS_UPDATED:String = "mapevent_copyrightsupdated"
This event is fired when the copyright that should be displayed on the map is updated. Dispatched by MapType and CopyrightCollection objects.
INFOWINDOW_CLOSED | constant |
public static const INFOWINDOW_CLOSED:String = "mapevent_infowindowclosed"
This event is fired when the info window closes. The event INFOWINDOW_CLOSING is fired before this event. If a currently open info window is reopened at a different point using another call to openInfoWindow(), the events INFOWINDOW_CLOSING, INFOWINDOW_CLOSED and INFOWINDOW_OPENED are fired in this order.
INFOWINDOW_CLOSING | constant |
public static const INFOWINDOW_CLOSING:String = "mapevent_infowindowclosing"
This event is fired before the info window closes.
INFOWINDOW_OPENED | constant |
public static const INFOWINDOW_OPENED:String = "mapevent_infowindowopened"
This event is fired when the info window opens.
MAP_PREINITIALIZE | constant |
public static const MAP_PREINITIALIZE:String = "mapevent_mappreinitialize"
This event is fired immediately before the map is initialized. This event indicates the correct time to call setInitOptions(...) on the map, passing an instance of MapOptions that contains options that the map should have when first displayed.
MAP_READY | constant |
public static const MAP_READY:String = "mapevent_mapready"
This event is fired when map initialization is complete and isLoaded() would return true. This means position, zoom and map type are all initialized, but tile images may still be loading.
MAPTYPE_ADDED | constant |
public static const MAPTYPE_ADDED:String = "mapevent_maptypeadded"
This event is fired when a new MapType has been added to the map. Note that this is a separate event from MAPTYPE_CHANGED, which indicates that the map type has changed, rather than just the map can now support this neew map type.
MAPTYPE_CHANGED | constant |
public static const MAPTYPE_CHANGED:String = "maptypechanged"
This event is fired when another map type is selected.
MAPTYPE_REMOVED | constant |
public static const MAPTYPE_REMOVED:String = "mapevent_maptyperemoved"
This event is fired when a MapType has been removed from the map.
OVERLAY_BEFORE_REMOVED | constant |
public static const OVERLAY_BEFORE_REMOVED:String = "mapevent_overlaybeforeremoved"
This event is fired when an overlay is about to be removed from the map.
OVERLAY_MOVED | constant |
public static const OVERLAY_MOVED:String = "mapevent_overlaymoved"
This event is fired when an overlay's position is changed. This currently applies only to markers and is fired either at the end of dragging or after a call to setLatLng().
OVERLAY_REMOVED | constant |
public static const OVERLAY_REMOVED:String = "mapevent_overlayremoved"
This event is fired after a single overlay is removed from the map. Developers can use this event to do final clean-up on an overlay instance.
SIZE_CHANGED | constant |
public static const SIZE_CHANGED:String = "mapevent_sizechanged"
This event is fired when the size of the map has changed.
VISIBILITY_CHANGED | constant |
public static const VISIBILITY_CHANGED:String = "mapevent_visibilitychanged"
This event is fired when an overlay's visibility has changed (from visible to hidden or vice-versa).