Skip to content

SiClusterPopoverTemplateDirective documentation

selector
[siClusterPopoverTemplate]

Template for custom location content inside si-cluster-popover .

Receives a ClusterPopoverContext with all locations loaded so far. Loading feedback, error recovery, and the "Load more" button are handled by the popover.

No API to document for this.

Types Documentation

Context supplied to custom cluster popover templates, including all locations loaded so far.
Properties
All loaded original point features, exposed by an unqualified let-features binding.
$implicit: readonly ClusterPoint[]
Closes the popover using the same behavior as its Close button.
close: () => void
Selected cluster feature, including its cluster_id and point_count properties.
cluster: ClusterPoint
Error from a failed batch request, or undefined when no error is available.
error: unknown
The same accumulated features as $implicit , exposed by let-features="features" .
features: readonly ClusterPoint[]
Whether the initial batch, an additional batch, or a retry is being loaded.
loading: boolean
Total number of locations in the selected cluster, including locations not yet loaded.
total: number
A point feature consumed by the clustered MapLibre source.
imported from @types/geojson
imported from @types/geojson
imported from @types/geojson

Except where otherwise noted, content on this site is licensed under MIT License.