WebglInputMarker | MapGL | 2GIS Documentation
MapGL JS API

WebglInputMarker

Marker style for MapGL marker.

Properties
number[]

The position 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 anchor is not specified and custom icon is provided.

number[]

Geographical coordinates of marker center [longitude, latitude].

number[]

Marker 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.

Initialization options of the marker's label.

number[]

Marker icon size [width, height] in pixels.

undefined"webgl"
any

User specific data.

undefinednumber

Draw order.

any