From fc3a043795139c3b64c9d85b50296f5fdeffa9f2 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 28 Apr 2022 00:27:21 +0200 Subject: [PATCH] Add clarification --- Logic/GeoOperations.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Logic/GeoOperations.ts b/Logic/GeoOperations.ts index 73f553dcf..df99a707a 100644 --- a/Logic/GeoOperations.ts +++ b/Logic/GeoOperations.ts @@ -24,6 +24,10 @@ export class GeoOperations { return newFeature; } + /** + * Returns [lon,lat] coordinates + * @param feature + */ static centerpointCoordinates(feature: any): [number, number] { return <[number, number]>turf.center(feature).geometry.coordinates; }