diff --git a/src/Logic/GeoOperations.ts b/src/Logic/GeoOperations.ts index 5d4a16797..2b0294641 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 } }