Circle | MapGL | 2GIS Documentation
MapGL JS API

Circle

Class for creating a circle on the map

new constructor(map, options)

Example:

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

The map instance

options
CircleOptions

Circle options

Returns
Methods