Packagecom.google.maps
Classpublic class MapMouseEvent
InheritanceMapMouseEvent Inheritance MapEvent Inheritance flash.events.Event

A MapMouseEvent object is dispatched into the event flow whenever a mouse-related event specific to the map or its overlays occurs.



Public Properties
 PropertyDefined by
  altKey : Boolean
Whether the Alt key was pressed.
MapMouseEvent
  ctrlKey : Boolean
Whether the Ctrl key was pressed.
MapMouseEvent
 Inheritedfeature : 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined by
  CLICK : String = "mapevent_click"
[static] This event is fired when the map is clicked with the mouse.
MapMouseEvent
 InheritedCONTROL_ADDED : String = "mapevent_controladded"
[static] This event is fired on the map when a control is added to the map.
MapEvent
 InheritedCONTROL_REMOVED : String = "mapevent_controlremoved"
[static] This event is fired on the map when a control is removed from the map.
MapEvent
 InheritedCOPYRIGHTS_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
 InheritedINFOWINDOW_CLOSED : String = "mapevent_infowindowclosed"
[static] This event is fired when the info window closes.
MapEvent
 InheritedINFOWINDOW_CLOSING : String = "mapevent_infowindowclosing"
[static] This event is fired before the info window closes.
MapEvent
 InheritedINFOWINDOW_OPENED : String = "mapevent_infowindowopened"
[static] This event is fired when the info window opens.
MapEvent
 InheritedMAP_PREINITIALIZE : String = "mapevent_mappreinitialize"
[static] This event is fired immediately before the map is initialized.
MapEvent
 InheritedMAP_READY : String = "mapevent_mapready"
[static] This event is fired when map initialization is complete and isLoaded() would return true.
MapEvent
 InheritedMAPTYPE_ADDED : String = "mapevent_maptypeadded"
[static] This event is fired when a new MapType has been added to the map.
MapEvent
 InheritedMAPTYPE_CHANGED : String = "maptypechanged"
[static] This event is fired when another map type is selected.
MapEvent
 InheritedMAPTYPE_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
 InheritedOVERLAY_BEFORE_REMOVED : String = "mapevent_overlaybeforeremoved"
[static] This event is fired when an overlay is about to be removed from the map.
MapEvent
 InheritedOVERLAY_MOVED : String = "mapevent_overlaymoved"
[static] This event is fired when an overlay's position is changed.
MapEvent
 InheritedOVERLAY_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
 InheritedSIZE_CHANGED : String = "mapevent_sizechanged"
[static] This event is fired when the size of the map has changed.
MapEvent
 InheritedVISIBILITY_CHANGED : String = "mapevent_visibilitychanged"
[static] This event is fired when an overlay's visibility has changed (from visible to hidden or vice-versa).
MapEvent
Property detail
altKeyproperty
altKey:Boolean  [read-write]

Whether the Alt key was pressed.

Implementation
    public function get altKey():Boolean
    public function set altKey(value:Boolean):void
ctrlKeyproperty 
ctrlKey:Boolean  [read-write]

Whether the Ctrl key was pressed.

Implementation
    public function get ctrlKey():Boolean
    public function set ctrlKey(value:Boolean):void
latLngproperty 
latLng:LatLng  [read-only]

LatLng over which the MapMouseEvent occurred.

Implementation
    public function get latLng():LatLng
shiftKeyproperty 
shiftKey:Boolean  [read-write]

Whether the Shift key was pressed.

Implementation
    public function get shiftKey():Boolean
    public function set shiftKey(value:Boolean):void
Constructor detail
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.

Parameters
type: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)
Constant detail
CLICKconstant
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_CLICKconstant 
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_ENDconstant 
public static const DRAG_END:String = "mapevent_dragend"

This event is fired when the user stops dragging the map.

DRAG_STARTconstant 
public static const DRAG_START:String = "mapevent_dragstart"

This event is fired when the user starts dragging the map.

DRAG_STEPconstant 
public static const DRAG_STEP:String = "mapevent_dragstep"

This event is fired repeatedly while the user drags the map.

MOUSE_DOWNconstant 
public static const MOUSE_DOWN:String = "mapevent_mousedown"

This event is fired when the user presses the mouse button over the map.

MOUSE_MOVEconstant 
public static const MOUSE_MOVE:String = "mapevent_mousemove"

This event is fired when the mouse moves over the map.

MOUSE_UPconstant 
public static const MOUSE_UP:String = "mapevent_mouseup"

This event is fired when the user releases the mouse button over the map.

ROLL_OUTconstant 
public static const ROLL_OUT:String = "mapevent_rollout"

This event is fired when the user rolls the mouse off the map.

ROLL_OVERconstant 
public static const ROLL_OVER:String = "mapevent_rollover"

This event is fired when the user rolls the mouse over the map.