From 5a957d56c73771a1fa2560dbd8755a7eebe36285 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 20 Feb 2024 18:24:25 +0100 Subject: [PATCH] Fix: actually show polygon_centroid --- src/Logic/GeoOperations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Logic/GeoOperations.ts b/src/Logic/GeoOperations.ts index 5d4a167977..2b02946416 100644 --- a/src/Logic/GeoOperations.ts +++ b/src/Logic/GeoOperations.ts @@ -769,7 +769,7 @@ export class GeoOperations { return undefined } return GeoOperations.centerpointCoordinates(feature) - case "polygon_centerpoint": + case "polygon_centroid": if (feature.geometry.type === "Polygon") { return GeoOperations.centerpointCoordinates(feature) } @@ -798,7 +798,7 @@ export class GeoOperations { } return undefined default: - throw "Unkown location type: " + location + throw "Unkown location type: " + location+" for feature "+feature.properties.id } }