Skip to content

worldwind-ui API / worldwind-kit / ClusterLayerOptions

Interface: ClusterLayerOptions<T> ​

Defined in: kit/src/cluster.ts:112

Extends ​

Type Parameters ​

T ​

T

Properties ​

color? ​

optional color?: string

Defined in: kit/src/cluster.ts:122

Colour of the default cluster marker.


getPosition? ​

optional getPosition?: (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 ​

LatLon

Inherited from ​

ClusterOptions.getPosition


layer? ​

optional layer?: LayerOptions

Defined in: kit/src/cluster.ts:129

Options for the layer itself (enabled, opacity, attribution, ...).


layerName? ​

optional layerName?: string

Defined in: kit/src/cluster.ts:114

Shown in layer switchers. Default Clusters.


minPoints? ​

optional minPoints?: number

Defined in: kit/src/cluster.ts:22

Fewest items that form a cluster; cells with fewer are drawn individually. Default 2.

Inherited from ​

ClusterOptions.minPoints


radius? ​

optional radius?: number

Defined in: kit/src/cluster.ts:116

Marker radius in CSS pixels: items closer than this merge. Default 60.


renderCluster? ​

optional renderCluster?: (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 ​

WorldWindStatic

Returns ​

WWRenderable


renderItem? ​

optional renderItem?: (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 ​

WorldWindStatic

Returns ​

WWRenderable


textColor? ​

optional textColor?: string

Defined in: kit/src/cluster.ts:123


throttle? ​

optional throttle?: number

Defined in: kit/src/cluster.ts:127

Milliseconds between re-clusterings while the zoom keeps changing. Default 100.


zoomOnClick? ​

optional zoomOnClick?: boolean

Defined in: kit/src/cluster.ts:125

Fly closer to a cluster when it is clicked. Default true.

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.