MarkerOptions | MapGL | 2GIS Documentation

MarkerOptions

Marker initialization options.

Properties
number[]

The position in pixels of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified.

number[]

Geographical coordinates of marker center [longitude, latitude].

number[]

Icon anchor in hovered state.

undefinedstring

Marker icon URL in hovered state.

number[]

Marker icon size [width, height] in pixels in hovered state.

undefinedstring

Marker icon URL.

undefinedfalsetrue

Allows the marker to emit events (like mouseover). true by default.

Omit<LabelOptions, "coordinates">

Initialization options of the marker's label.

undefinednumber

Maximum display zoom level of the marker.

undefinednumber

Minimum display zoom level of the marker.

number[]

Marker icon size [width, height] in pixels.

undefinednumber

Draw order.