OlClusterComponent

Sub-component for clustering vector features under a vector layer. Aggregates nearby points into styled cluster markers.

TypeScriptexample.ts
import { OlClusterComponent } from '@angular-helpers/openlayers/layers'

# Inputs

InputTypeDefaultDescription
distancenumber40Distance in pixels within which features will be clustered
minDistancenumber20Minimum distance in pixels between clusters
showCountbooleantrueWhether to show the clustered feature count
featureStyleStyle-Custom style for the cluster markers
spiderfyOnSelectbooleanfalseWhether to spiderfy the cluster on click (expanding overlapping features radially)

# Outputs

OutputTypeDescription
spiderfyClickFeatureEmitted when an individual feature within a spiderfied cluster is clicked
LCP N/A
CLS N/A
INP N/A