Package | com.google.maps |
Class | public class MapMouseEvent |
Inheritance | MapMouseEvent ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
altKey : Boolean
Whether the Alt key was pressed.
| MapMouseEvent | ||
ctrlKey : Boolean
Whether the Ctrl key was pressed.
| MapMouseEvent | ||
![]() | feature : Object
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 | |
latLng : LatLng
[read-only]
LatLng over which the MapMouseEvent occurred.
| MapMouseEvent | ||
shiftKey : Boolean
Whether the Shift key was pressed.
| MapMouseEvent |
Method | Defined by | ||
---|---|---|---|
MapMouseEvent(type:String, feature:Object, latLng:LatLng, bubbles:Boolean = false, cancellable:Boolean = false, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false)
Creates a MapMouseEvent object to pass as a parameter to event listeners.
| MapMouseEvent |
Constant | Defined by | ||
---|---|---|---|
CLICK : String = "mapevent_click" [static]
This event is fired when the map is clicked with the mouse.
| MapMouseEvent | ||
![]() | 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 | |
DOUBLE_CLICK : String = "mapevent_doubleclick" [static]
This event is fired when a double click is done on the map.
| MapMouseEvent | ||
DRAG_END : String = "mapevent_dragend" [static]
This event is fired when the user stops dragging the map.
| MapMouseEvent | ||
DRAG_START : String = "mapevent_dragstart" [static]
This event is fired when the user starts dragging the map.
| MapMouseEvent | ||
DRAG_STEP : String = "mapevent_dragstep" [static]
This event is fired repeatedly while the user drags the map.
| MapMouseEvent | ||
![]() | 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 | |
MOUSE_DOWN : String = "mapevent_mousedown" [static]
This event is fired when the user presses the mouse button over the map.
| MapMouseEvent | ||
MOUSE_MOVE : String = "mapevent_mousemove" [static]
This event is fired when the mouse moves over the map.
| MapMouseEvent | ||
MOUSE_UP : String = "mapevent_mouseup" [static]
This event is fired when the user releases the mouse button over the map.
| MapMouseEvent | ||
![]() | 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 | |
ROLL_OUT : String = "mapevent_rollout" [static]
This event is fired when the user rolls the mouse off the map.
| MapMouseEvent | ||
ROLL_OVER : String = "mapevent_rollover" [static]
This event is fired when the user rolls the mouse over the map.
| MapMouseEvent | ||
![]() | 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 |
altKey | property |
altKey:Boolean
[read-write]Whether the Alt key was pressed.
Implementation public function get altKey():Boolean
public function set altKey(value:Boolean):void
ctrlKey | property |
ctrlKey:Boolean
[read-write]Whether the Ctrl key was pressed.
Implementation public function get ctrlKey():Boolean
public function set ctrlKey(value:Boolean):void
latLng | property |
latLng:LatLng
[read-only]LatLng over which the MapMouseEvent occurred.
Implementation public function get latLng():LatLng
shiftKey | property |
shiftKey:Boolean
[read-write]Whether the Shift key was pressed.
Implementation public function get shiftKey():Boolean
public function set shiftKey(value:Boolean):void
MapMouseEvent | () | constructor |
public function MapMouseEvent(type:String, feature:Object, latLng:LatLng, bubbles:Boolean = false, cancellable:Boolean = false, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false)
Creates a MapMouseEvent object to pass as a parameter to event listeners.
Parameterstype:String — The type of the event, accessible as MapEvent.type.
|
|
feature:Object — Map feature (e.g. overlay, control or the map itself)
that the event relates to. For MapMouseEvent, this will match the
event target.
|
|
latLng:LatLng — Map's latLng.
|
|
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 values is false.
|
|
ctrlKey:Boolean (default = false )
|
|
altKey:Boolean (default = false )
|
|
shiftKey:Boolean (default = false )
|
CLICK | constant |
public static const CLICK:String = "mapevent_click"
This event is fired when the map is clicked with the mouse. If the click was on a clickable overlay (like a Marker, Polygon, etc), then then an event is also fired on the overlay.
DOUBLE_CLICK | constant |
public static const DOUBLE_CLICK:String = "mapevent_doubleclick"
This event is fired when a double click is done on the map. Note that this event will not be fired if the double click was on a marker or other clickable overlay.
DRAG_END | constant |
public static const DRAG_END:String = "mapevent_dragend"
This event is fired when the user stops dragging the map.
DRAG_START | constant |
public static const DRAG_START:String = "mapevent_dragstart"
This event is fired when the user starts dragging the map.
DRAG_STEP | constant |
public static const DRAG_STEP:String = "mapevent_dragstep"
This event is fired repeatedly while the user drags the map.
MOUSE_DOWN | constant |
public static const MOUSE_DOWN:String = "mapevent_mousedown"
This event is fired when the user presses the mouse button over the map.
MOUSE_MOVE | constant |
public static const MOUSE_MOVE:String = "mapevent_mousemove"
This event is fired when the mouse moves over the map.
MOUSE_UP | constant |
public static const MOUSE_UP:String = "mapevent_mouseup"
This event is fired when the user releases the mouse button over the map.
ROLL_OUT | constant |
public static const ROLL_OUT:String = "mapevent_rollout"
This event is fired when the user rolls the mouse off the map.
ROLL_OVER | constant |
public static const ROLL_OVER:String = "mapevent_rollover"
This event is fired when the user rolls the mouse over the map.