Skip to content

worldwind-ui API / worldwind-kit / clusterItems

Function: clusterItems() ​

clusterItems<T>(items, cellDegrees, options?): ClusterResult<T>

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

Groups items on a grid of cellDegrees (longitude cells widen with latitude so they stay roughly square on screen). Pure and synchronous; ClusterLayer calls it on zoom.

Type Parameters ​

T ​

T

Parameters ​

items ​

readonly T[]

cellDegrees ​

number

options? ​

ClusterOptions<T> = {}

Returns ​

ClusterResult<T>

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