# ClusterPopoverContext Type documentation

## TypeScript declaration

### [ClusterPopoverContext](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L27-L42>)

**Kind:** interface

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

Context supplied to custom cluster popover templates, including all locations loaded so far.

```
interface ClusterPopoverContext
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [$implicit](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L29-L29>) | `readonly ClusterPoint[]` | All loaded original point features, exposed by an unqualified `let-features` binding. |
| [close](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L41-L41>) | `() => void` | Closes the popover using the same behavior as its Close button. |
| [cluster](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L39-L39>) | `ClusterPoint` | Selected cluster feature, including its `cluster_id` and `point_count` properties. |
| [error](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L37-L37>) | `unknown` | Error from a failed batch request, or `undefined` when no error is available. |
| [features](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L31-L31>) | `readonly ClusterPoint[]` | The same accumulated features as `$implicit`, exposed by `let-features="features"`. |
| [loading](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L35-L35>) | `boolean` | Whether the initial batch, an additional batch, or a retry is being loaded. |
| [total](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L33-L33>) | `number` | Total number of locations in the selected cluster, including locations not yet loaded. |

### Types Documentation

### [ClusterPoint](<https://github.com/siemens/element/blob/main/projects/element-ng/maplibre/cluster-types.ts#L6-L6>)

**Kind:** type alias

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

A point feature consumed by the clustered MapLibre source.

```
type ClusterPoint = GeoJSON.Feature<GeoJSON.Point, GeoJSON.GeoJsonProperties>
```
