forked from MapComplete/MapComplete
Fix: actually show polygon_centroid
This commit is contained in:
parent
5d09b31c50
commit
5a957d56c7
1 changed files with 2 additions and 2 deletions
|
@ -769,7 +769,7 @@ export class GeoOperations {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
return GeoOperations.centerpointCoordinates(feature)
|
return GeoOperations.centerpointCoordinates(feature)
|
||||||
case "polygon_centerpoint":
|
case "polygon_centroid":
|
||||||
if (feature.geometry.type === "Polygon") {
|
if (feature.geometry.type === "Polygon") {
|
||||||
return GeoOperations.centerpointCoordinates(feature)
|
return GeoOperations.centerpointCoordinates(feature)
|
||||||
}
|
}
|
||||||
|
@ -798,7 +798,7 @@ export class GeoOperations {
|
||||||
}
|
}
|
||||||
return undefined
|
return undefined
|
||||||
default:
|
default:
|
||||||
throw "Unkown location type: " + location
|
throw "Unkown location type: " + location+" for feature "+feature.properties.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue