|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MMOverlay
|
+--MMMarkerOverlay
Defined in MultimapAPI
| Constructor Summary | |
MMMarkerOverlay
( <MMLocation> position, <MMMarkerOptions> options )
MMMarkerOverlay class, for drawing small markers on the map. |
|
| Method Summary | |
void
|
closeInfoBox()
Closes the info box attached to this marker. |
mixed
|
getOption( <String> name )
Retrieves the value of an option that was set in the constructor or the reset() method. |
MMLocation
|
getPosition()
Returns the geographical position that the marker is anchored to, as set in the constructor, by reset() or as the result of a marker drag. |
boolean
|
hasInfoBoxContent()
Function to detect whether info box content has been assigned to this marker. |
boolean
|
isInfoBoxOpened()
Used to check whether a marker has an open info box attached. |
MMInfoBoxOverlay
|
openInfoBox( <Object> html, <MMInfoBoxOptions> options )
Opens an info box for this marker. |
void
|
reset( <MMLocation> position, <MMMarkerOptions> options, <Boolean> reopen )
Allows the properties of a marker to be reset. |
void
|
setInfoBoxContent( <Object> html, <MMInfoBoxOptions> options )
Sets the info box content for a marker. |
Object
|
setVisibility( <boolean> visible )
Sets the visibility of a marker; can be used when you just want to quickly hide a marker, rather than completely remove it from the viewer. |
| Methods inherited from class MMOverlay |
getGeocodingCallback, getZIndex, getAttribute, setAttribute, copyAttributesTo
|
| Constructor Detail |
MMMarkerOverlay( <MMLocation> position, <MMMarkerOptions> options )
position - Position at which to place the marker.
options - (optional) An object containing options for this marker.
| Method Detail |
void closeInfoBox()
mixed getOption( <String> name )
name - The name of the option.
MMLocation getPosition()
boolean hasInfoBoxContent()
boolean isInfoBoxOpened()
MMInfoBoxOverlay openInfoBox( <Object> html, <MMInfoBoxOptions> options )
html - (optional) HTML to go in the info box, String or HTMLElement.
options - (optional) An object containing options.
void reset( <MMLocation> position, <MMMarkerOptions> options, <Boolean> reopen )
position - (optional) Position at which to place the marker.
options - (optional) An object containing options for this marker.
reopen - (optional) If true and the infobox is open, the infobox will be reopened after the reset has been completed
void setInfoBoxContent( <Object> html, <MMInfoBoxOptions> options )
html - HTML to go in the info box, String or HTMLElement.
options - (optional) An object containing options.
Object setVisibility( <boolean> visible )
visible - True to (re)display the marker, false to hide it.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||