MarkerIconOptions | MapGL | 2GIS Documentation

MarkerIconOptions

Options for marker setIcon and setHoverIcon methods.

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.

string

Marker icon URL.

undefinednumber

Marker icon clockwise rotation in the screen plane in degrees.

number[]

Marker icon size [width, height] in pixels.