POlygon rendering fixes

This commit is contained in:
Pieter Vander Vennet 2021-11-09 19:45:26 +01:00
parent 1a73bcfd54
commit 1dbe167e4e
25 changed files with 66 additions and 27 deletions

View file

@ -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])