forked from MapComplete/MapComplete
POlygon rendering fixes
This commit is contained in:
parent
1a73bcfd54
commit
1dbe167e4e
25 changed files with 66 additions and 27 deletions
|
@ -59,7 +59,7 @@ export default class RenderingMultiPlexerFeatureSource {
|
|||
addAsPoint(feat, rendering, GeoOperations.centerpointCoordinates(feat))
|
||||
}
|
||||
|
||||
if (feat.geometry.type === "LineString") {
|
||||
if (feat.geometry.type === "LineString" || feat.geometry.type==="Polygon" || feat.geometry.type === "MultiPolygon") {
|
||||
const coordinates = feat.geometry.coordinates
|
||||
for (const rendering of startRenderings) {
|
||||
addAsPoint(feat, rendering, coordinates[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue