Fix: actually show polygon_centroid

This commit is contained in:
Pieter Vander Vennet 2024-02-20 18:24:25 +01:00
parent 5d09b31c50
commit 5a957d56c7

View file

@ -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
}
}