Package | com.google.maps.interfaces |
Interface | public interface IMarker extends IOverlay, IWrappableEventDispatcher, flash.events.IEventDispatcher, IWrappable |
Implementors | Marker |
Method | Defined by | ||
---|---|---|---|
closeInfoWindow():void
Closes the info window if it is associated with this marker.
| IMarker | ||
![]() |
getBaseEventDispatcher():Object
Retrieves the base event dispatcher object that allows access to event
dispatching capability for cross-domain objects.
| IWrappableEventDispatcher | |
![]() |
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 | ||
![]() |
positionOverlay(zoomChanged:Boolean):void
Reposition the overlay on the screen.
| IOverlay | |
Changes the LatLng of the marker.
| IMarker | ||
setOptions(options:MarkerOptions):void
Updates the marker options.
| IMarker |
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.
ReturnsLatLng —
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.
ReturnsMarkerOptions —
Options used by the marker.
|
See also
openInfoWindow | () | method |
public function openInfoWindow(options:InfoWindowOptions = null):IInfoWindow
Opens an information window above the marker.
Parametersoptions:InfoWindowOptions (default = null ) — InfoWindow options.
|
IInfoWindow —
Reference to newly created info window.
|
setLatLng | () | method |
public function setLatLng(value:LatLng):void
Changes the LatLng of the marker.
Parametersvalue: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.
options:MarkerOptions — New full or partial set of options for the marker.
|
var options:MarkerOptions = new MarkerOptions( { fillStyle: { color: 0x000080 }} ); myMarker.setOptions(options);