Fixes to sidewalks theme

This commit is contained in:
Pieter Vander Vennet 2021-10-28 01:26:35 +02:00
parent 070262a959
commit 10d9f18110
6 changed files with 136 additions and 91 deletions

View file

@ -32,7 +32,7 @@ function fixLayerConfig(config: LayerConfigJson): void {
}
}
if (config.mapRendering === undefined || config.id !== "sidewalks") {
if (config.mapRendering === undefined && config.id !== "sidewalks") {
// This is a legacy format, lets create a pointRendering
let location: ("point" | "centroid")[] = ["point"]
let wayHandling: number = config["wayHandling"] ?? 0