Class: MMap.Marker.HTML
Marker who displays HTML contents.
HTML contents can be displayed to the marker.
We will recommend here to be used when the information window need not be used.
Extends:
MMap.Marker.Core
Method: constructor
Constructor of marker
Syntax:
var marker = new MMap.Marker.HTML(options);
Arguments:
- options - (mixed) Option of marker
Options:
- map - (Map) Map object that displays marker
- className - (string) Style applied to marker (class name of CSS)
- title - (string) Content set to title of marker
- content - (string|element) Content displayed in marker
- position - (LatLng) Coordinates position of marker
- zIndex - (number) The order of displaying marker
- visible - (boolean) State of display of marker
- active - (boolean) Active state of marker
- onClick - (function) When the marker is clicked, it is generated.
- onDblClick - (function) When the marker is double-clicked, it is generated.
- onMouseOver - (function) It is generated at mouse over time of the marker.
- onMouseOut - (function) It is generated at the mouse out of the marker.
- onMouseUp - (function) When the mouse of the marker improves, it is generated.
- onMouseDown - (function) When the mouse of the marker is downed, it is generated.
- onTitleChanged - (function) When the title of the marker changes, it is generated.
- onContentChanged - (function) When the content of the marker changes, it is generated.
- onVisibleChanged - (function) When the marker's display changes, it is generated.
- onZIndexChanged - (function) When the order of displaying the marker changes, it is generated.
- onPositionChanged - (function) When the display coordinates of the marker are changed, it is generated.
- onActive - (function) When the marker becomes active, it is generated.
Method: getTitle
The title of the marker is acquired.
Syntax:
var title = marker.getTitle();
Returns:
(string) Content set to title of marker
Method: getContent
The content of the marker is acquired.
Syntax:
var content = marker.getContent();
Returns:
(string) Content set to marker
Method: setTitle
The content specified for the title of the marker is set.
Syntax:
var title = 'marker title';
marker.setTitle(title);
Arguments:
- title - (string) Content set to title of marker
Returns:
(object) marker object
Method: setContent
The content specified for the marker is displayed.
Syntax:
var content = 'marker content';
marker.setContent(content);
Arguments:
- content - (string|element) Content to display in marker
Returns:
(object) marker object