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↳
CircleMarker
#
Constructors#
constructor• new CircleMarker(id
, lngLat
, options?
)
#
ParametersName | Type |
---|---|
id | string |
lngLat | LngLat |
options? | CircleMarkerOptions |
#
Overrides#
Defined incomponent/marker/marker/CircleMarker.ts:40
#
Accessors#
id• get
id(): string
Get id.
#
Returnsstring
The id of the marker.
#
Defined incomponent/marker/marker/Marker.ts:24
#
lngLat• get
lngLat(): LngLat
Get lngLat.
#
ReturnsThe geographic coordinates of the marker.