Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClusterFeature

This Feature represents a Cluster.

Hierarchy

Implements

Index

Properties

Optional bbox

bbox: [number, number, number, number]

Bounding box of the feature. The value of the bbox member is an array of length 4, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The "bbox" values define shapes with edges that follow lines of constant longitude and latitude.

geometry

geometry: { coordinates: GeoJSONCoordinate; type: "Point" }

The geometry of a cluster feature is of type 'Point', where the coordinates represent the geographical coordinates [longitude, latitude] of the cluster center.

Type declaration

id

id: string | number

id of the feature.

properties

The Properties of the Cluster feature.

type

type: "Feature" | string

The type of the feature is a string with 'Feature' as its value.

Methods

getClusterBBox

  • Calculates and returns the bounding box of the cluster.

    Returns GeoJSONBBox

    The bounding box of the cluster.

getFeatures

  • getFeatures(): any
  • Returns the features within the cluster.

    Returns any

    An array containing the features within the cluster.

getProvider

toJSON

Generated using TypeDoc