forked from MapComplete/MapComplete
Fix line renderings
This commit is contained in:
parent
ec09a72cae
commit
95101a7212
11 changed files with 327 additions and 12 deletions
|
@ -172,13 +172,14 @@ export default class ShowDataLayer {
|
|||
if (offsettedLine !== undefined) {
|
||||
self.geoLayer.removeLayer(offsettedLine)
|
||||
}
|
||||
// @ts-ignore
|
||||
offsettedLine = L.polyline(coords, lineStyle);
|
||||
this.postProcessFeature(feat, offsettedLine)
|
||||
offsettedLine.addTo(this.geoLayer)
|
||||
})
|
||||
} else {
|
||||
this.geoLayer.addData(feat);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.error("Could not add ", feat, "to the geojson layer in leaflet due to", e, e.stack)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue