HtmlMarkerOptions | MapGL | 2GIS Documentation
MapGL JS API
Личный кабинет

HtmlMarkerOptions

HtmlMarker initialization options.

Properties
number[]

The position in pixels of the "tip" of the HTML marker relative to its top-left corner.

number[]

An array of numbers [longitude, latitude, height?], where:

  • longitude and latitude are the geographical coordinates of the top-left corner of the HTML marker. Taking into account the anchor option.
  • height is an optional number in meters by which the marker will be raised/lowered (depending on the sign of the value) relative to the map surface. 0 by default.
undefinedfalsetrue

If true, the marker coordinates will not be rounded. By default it's false.

HTMLElementstring

HTML content of the HTML marker.

undefinedfalsetrue

HTML marker can be pointer-event target if this option is set to true (pointer-events: auto), otherwise it can't (pointer-events: none).

undefinednumber

Maximum display styleZoom of the HTML marker.

undefinednumber

Minimum display styleZoom of the HTML marker.

undefinedfalsetrue

Capture events if set. Otherwise events will passed to the map. By default it's true.

any

User specific data.

undefinednumber

Draw order.