Marker
Component for Managing Markers along with creating different types of markers. Every marker is a Simple2DMarker. For every marker that needs to be added, you can use the Manager to add the marker and change its look and feel. 📕 Tutorial. 📘 API.
Extends
Component
Implements
Disposable_2
Properties
autoCluster
autoCluster:
boolean=true
Indicates whether markers should be automatically clustered. If true, markers will be clustered based on the threshold value. Default value is true.
enabled
enabled:
boolean=true
OBC.Component.enabled
Overrides
OBC.Component.enabled
list
list:
Map<string,Map<string,IMarker>>
A Map containing the markers grouped by world UUID. Each world can have its own set of markers.
onDisposed
readonlyonDisposed:Event_2<unknown>
OBC.Disposable.onDisposed
Implementation of
OBC.Disposable.onDisposed
threshold
threshold:
number=50
The distance threshold for clustering markers. Markers within this distance will be considered for clustering. Default value is 50.
uuid
staticreadonlyuuid:"4079eb91-79b0-4ede-bcf2-15b837129236"
A unique identifier for the component. This UUID is used to register the component within the Components system.
Accessors
color
getcolor():string
Getter for the color property. Returns the current color of the markers.
setcolor(value):void
Setter for the color property. Updates the color of all the markers to the new value.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | The new color value for the markers. |