CircleMarker | MapGL | 2GIS Documentation
MapGL JS API

CircleMarker

Class for creating a circleMarker on the map

The CircleMarker differs from the Circle in that it has radius in pixels so its instance displays the same on any zoom level

new constructor(map, options)

Example:

const circleMarker = new mapgl.CircleMarker(map, {
    coordinates: map.getCenter(),
    radius: 500,
});
Parameters
map
Map

The map instance

options
CircleMarkerOptions

CircleMarker options

Returns
Methods