HtmlMarker class

This class wraps an HTML element that can be displayed on the map.

Extends

Constructors

HtmlMarker(HtmlMarkerOptions)

Constructs a new HtmlMarker.

Methods

getElement()

Returns the underlying Marker's HTML element.

getOptions()

Gets the HTML marker options.

setOptions(HtmlMarkerOptions)

Sets the options of the marker.

togglePopup()

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()

Gets the HTML marker options.

function getOptions(): HtmlMarkerOptions

Returns

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()