worldwind-ui API / react-worldwind / ClusterLayerProps
Interface: ClusterLayerProps<T> ​
Defined in: react/src/ClusterLayer.tsx:8
Extends ​
Omit<ClusterLayerOptions<T>,"layer"|"layerName">.LayerOptions
Type Parameters ​
T ​
T
Properties ​
attribution? ​
optionalattribution?:string|LayerAttribution|null
Defined in: kit/src/layers.ts:86
Credit for the layer's data; null suppresses the default of a built-in layer.
Inherited from ​
color? ​
optionalcolor?:string
Defined in: kit/src/cluster.ts:122
Colour of the default cluster marker.
Inherited from ​
Omit.color
displayName? ​
optionaldisplayName?:string
Defined in: kit/src/layers.ts:78
Inherited from ​
enabled? ​
optionalenabled?:boolean
Defined in: kit/src/layers.ts:79
Inherited from ​
getPosition? ​
optionalgetPosition?: (item) =>LatLon
Defined in: kit/src/cluster.ts:24
Reads an item's location. Defaults to its latitude and longitude fields.
Parameters ​
item ​
T
Returns ​
Inherited from ​
Omit.getPosition
items ​
items: readonly
T[]
Defined in: react/src/ClusterLayer.tsx:9
legend? ​
optionallegend?:string|LayerLegend|null
Defined in: kit/src/layers.ts:88
Legend image URL or descriptor.
Inherited from ​
maxActiveAltitude? ​
optionalmaxActiveAltitude?:number
Defined in: kit/src/layers.ts:84
Inherited from ​
LayerOptions.maxActiveAltitude
minActiveAltitude? ​
optionalminActiveAltitude?:number
Defined in: kit/src/layers.ts:83
Inherited from ​
LayerOptions.minActiveAltitude
minPoints? ​
optionalminPoints?:number
Defined in: kit/src/cluster.ts:22
Fewest items that form a cluster; cells with fewer are drawn individually. Default 2.
Inherited from ​
name? ​
optionalname?:string
Defined in: react/src/ClusterLayer.tsx:11
Shown in layer switchers. Default Clusters.
onClusterClick? ​
optionalonClusterClick?: (cluster,event) =>void
Defined in: react/src/ClusterLayer.tsx:12
Parameters ​
cluster ​
Cluster<T>
event ​
Returns ​
void
onItemClick? ​
optionalonItemClick?: (item,event) =>void
Defined in: react/src/ClusterLayer.tsx:13
Parameters ​
item ​
T
event ​
Returns ​
void
opacity? ​
optionalopacity?:number
Defined in: kit/src/layers.ts:81
0..1
Inherited from ​
pickEnabled? ​
optionalpickEnabled?:boolean
Defined in: kit/src/layers.ts:82
Inherited from ​
radius? ​
optionalradius?:number
Defined in: kit/src/cluster.ts:116
Marker radius in CSS pixels: items closer than this merge. Default 60.
Inherited from ​
Omit.radius
renderCluster? ​
optionalrenderCluster?: (cluster,worldWind) =>WWRenderable
Defined in: kit/src/cluster.ts:120
Builds the renderable for a cluster. Defaults to a circle with the count.
Parameters ​
cluster ​
Cluster<T>
worldWind ​
Returns ​
Inherited from ​
Omit.renderCluster
renderItem? ​
optionalrenderItem?: (item,worldWind) =>WWRenderable
Defined in: kit/src/cluster.ts:118
Builds the renderable for an item drawn on its own. Defaults to a small red pushpin.
Parameters ​
item ​
T
worldWind ​
Returns ​
Inherited from ​
Omit.renderItem
textColor? ​
optionaltextColor?:string
Defined in: kit/src/cluster.ts:123
Inherited from ​
Omit.textColor
throttle? ​
optionalthrottle?:number
Defined in: kit/src/cluster.ts:127
Milliseconds between re-clusterings while the zoom keeps changing. Default 100.
Inherited from ​
Omit.throttle
timeDimension? ​
optionaltimeDimension?:TimeDimension|null
Defined in: kit/src/layers.ts:90
The instants the layer can show, for time sliders. Read from capabilities when available.
Inherited from ​
zoomOnClick? ​
optionalzoomOnClick?:boolean
Defined in: kit/src/cluster.ts:125
Fly closer to a cluster when it is clicked. Default true.
Inherited from ​
Omit.zoomOnClick