HtmlMarker class
This class wraps an HTML element that can be displayed on the map.
- Extends
Constructors
Html |
Constructs a new HtmlMarker. |
Methods
get |
Returns the underlying |
get |
Gets the HTML marker options. |
set |
Sets the options of the marker. |
toggle |
Toggles the popup attached to the marker. |
Constructor Details
HtmlMarker(HtmlMarkerOptions)
Constructs a new HtmlMarker.
new HtmlMarker(options?: HtmlMarkerOptions)
Parameters
- options
- HtmlMarkerOptions
The options for the HtmlMarker.
Method Details
getElement()
Returns the underlying Marker
's HTML element.
function getElement(): HTMLElement
Returns
HTMLElement
getOptions()
setOptions(HtmlMarkerOptions)
Sets the options of the marker.
function setOptions(options: HtmlMarkerOptions)
Parameters
- options
- HtmlMarkerOptions
The options for the marker.
togglePopup()
Toggles the popup attached to the marker.
function togglePopup()