creates a new instance
the options for the layer
the layer code for the cluster layer
gets the features in the layer
adds a handler to listen for the features added to layer
the handler to call when features have been added
finds features close to provided source
AlloyCoordinate
, AlloyFeature
or Geometry
source to measure distance of
features from
distance (in metres) from source for which to return features
an array of results ordered by closest first
gets a feature by it's item id property (if it has one)
removes a handler listening to the features added to layer
the handler to stop listening
Temp function resets style for an ol feature
openlayers feature for which we want to reset style
Generated using TypeDoc
an alloy cluster layer uses the
/api/layer/{code}/{x}/{y}/{z}/cluster
endpoint to request and display features. it will cluster features that are close together until they are suitably dispersed or at a required zoom level then they will become individual items.