Skip to content
Edit this page

ClusterPopoverContext Type documentation

TypeScript declaration

import type { ClusterPopoverContext } from '@siemens/element-ng/maplibre';

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

Types Documentation

import type { ClusterPoint } from '@siemens/element-ng/maplibre';

A point feature consumed by the clustered MapLibre source.


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