Marker | MapGL | Urbi Documentation
MapGL JS API

Marker

Class for creating markers on the map.

new constructor(map, options)

Example:

const marker = new mapgl.Marker(map, {
    coordinates: map.getCenter()
});
Parameters
map
Map

The map instance.

options
MarkerOptions

Marker options.

Returns
Methods