MarkerOptions | MapGL | Urbi Documentation
MapGL JS API

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, altitude?], where altitude is an optional component in meters.

number[]

Icon anchor in hovered state.

undefinedstring

Marker icon URL in hovered state.

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

Initialization options of the marker's label.

undefinednumber

Maximum display styleZoom of the marker.

undefinednumber

Minimum display styleZoom of the marker.

Marker icon opacity.

undefinednumber

Icon clockwise rotation in the screen plane in degrees.

number[]

Marker icon size [width, height] in pixels.

any

User specific data.

undefinednumber

Draw order.