Skip to content

Commit 5c1108d

Browse files
committed
improved doc for cluster feature
Signed-off-by: Tim Deubler <tim.deubler@here.com>
1 parent 1867b77 commit 5c1108d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/core/src/features/ClusterFeature.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ export class ClusterFeature extends Feature<'Point'> {
6161
*/
6262
properties: ClusterFeatureProperties;
6363

64+
/**
65+
* The geometry of a cluster feature is of type 'Point',
66+
* where the `coordinates` represent the geographical coordinates [longitude, latitude] of the cluster center.
67+
*/
68+
geometry: {
69+
type: 'Point',
70+
coordinates: GeoJSONCoordinate
71+
};
72+
6473
/**
6574
* Returns the features within the cluster.
6675
* @returns An array containing the features within the cluster.

0 commit comments

Comments
 (0)