Packagecom.google.maps.interfaces
Interfacepublic interface IMarker extends IOverlay, IWrappableEventDispatcher, flash.events.IEventDispatcher, IWrappable
ImplementorsMarker

IMarker is the interface implemented by marker objects to mark position on that map. Markers can be added to the map using the Map.addOverlay() method.



Public Properties
 PropertyDefined by
 Inheritedforeground : DisplayObject
Display object that represents the overlay's content.
IOverlay
 InheritedinterfaceChain : Array
List of interfaces for wrapping this object.
IWrappable
 Inheritedpane : IPane
Pane this overlay resides on (null if the overlay is not added to the map).
IOverlay
 Inheritedshadow : DisplayObject
Display object that represents the overlay's shadow (null if the overlay never has a shadow).
IOverlay
 Inheritedvisible : Boolean
Visibility of the overlay.
IOverlay
 Inheritedwrapper : Object
Instance of the cross-domain wrapper for this object.
IWrappable
Public Methods
 MethodDefined by
  
Closes the info window if it is associated with this marker.
IMarker
 Inherited
Retrieves the base event dispatcher object that allows access to event dispatching capability for cross-domain objects.
IWrappableEventDispatcher
 Inherited
Retrieves the default pane that this overlay should be placed on if none is explicitly specified (when the overlay is added through the IMap.addOverlay() call).
IOverlay
  
Retrieves the location of the marker.
IMarker
  
Retrieves the full set of options used by the marker.
IMarker
  
Opens an information window above the marker.
IMarker
 Inherited
positionOverlay(zoomChanged:Boolean):void
Reposition the overlay on the screen.
IOverlay
  
setLatLng(value:LatLng):void
Changes the LatLng of the marker.
IMarker
  
setOptions(options:MarkerOptions):void
Updates the marker options.
IMarker
Method detail
closeInfoWindow()method
public function closeInfoWindow():void

Closes the info window if it is associated with this marker.

getLatLng()method 
public function getLatLng():LatLng

Retrieves the location of the marker.

Returns
LatLng — LatLng of the marker.
getOptions()method 
public function getOptions():MarkerOptions

Retrieves the full set of options used by the marker. Use the setOptions method to modify the options on the marker.

Returns
MarkerOptions — Options used by the marker.

See also

Marker.setOptions()
openInfoWindow()method 
public function openInfoWindow(options:InfoWindowOptions = null):IInfoWindow

Opens an information window above the marker.

Parameters
options:InfoWindowOptions (default = null) — InfoWindow options.

Returns
IInfoWindow — Reference to newly created info window.
setLatLng()method 
public function setLatLng(value:LatLng):void

Changes the LatLng of the marker.

Parameters
value:LatLng — New LatLng location of the marker.
setOptions()method 
public function setOptions(options:MarkerOptions):void

Updates the marker options. The options parameter may specify a complete or partial set of marker options. If a partial set of options is specified, it will supplement the existing marker options, overriding only the values that were set explicitly and leaving the rest unchanged.

Parameters
options:MarkerOptions — New full or partial set of options for the marker.

Example
Modify the marker's fill colour, leaving the rest of its options unchanged.
   var options:MarkerOptions =
       new MarkerOptions( { fillStyle: { color: 0x000080 }} );
   myMarker.setOptions(options);