Skip to main content

Class: CircleMarker

component.CircleMarker

classdesc Non-interactive marker with a flat circle shape. The circle marker can not be configured to be interactive.

Circle marker properties can not be updated after creation.

To create and add one CircleMarker with default configuration and one with configuration use

example

var defaultMarker = new CircleMarker(    "id-1",    { lat: 0, lng: 0, });
var configuredMarker = new CircleMarker(    "id-2",    { lat: 0, lng: 0, },    {        color: "#0ff",        opacity: 0.3,        radius: 0.7,    });
markerComponent.add([defaultMarker, configuredMarker]);

Hierarchy#

Constructors#

constructor#

• new CircleMarker(id, lngLat, options?)

Parameters#

NameType
idstring
lngLatLngLat
options?CircleMarkerOptions

Overrides#

Marker.constructor

Defined in#

component/marker/marker/CircleMarker.ts:40

Accessors#

id#

• get id(): string

Get id.

Returns#

string

The id of the marker.

Defined in#

component/marker/marker/Marker.ts:24


lngLat#

• get lngLat(): LngLat

Get lngLat.

Returns#

LngLat

The geographic coordinates of the marker.

Defined in#

component/marker/marker/Marker.ts:41