Autoremoved roaming renderings if empty

This commit is contained in:
Pieter Vander Vennet 2021-10-19 02:03:52 +02:00
parent 5759694332
commit 1fb45ad75a
22 changed files with 23 additions and 39 deletions

View file

@ -58,6 +58,5 @@
"bench", "bench",
"bench_at_pt", "bench_at_pt",
"picnic_table" "picnic_table"
], ]
"roamingRenderings": []
} }

View file

@ -42,7 +42,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1.5, "widenFactor": 1.5,
"roamingRenderings": [],
"layers": [ "layers": [
{ {
"builtin": "bicycle_library", "builtin": "bicycle_library",

View file

@ -40,7 +40,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1, "widenFactor": 1,
"roamingRenderings": [],
"layers": [ "layers": [
"public_bookcase" "public_bookcase"
] ]

View file

@ -46,6 +46,5 @@
"defaultBackgroundId": "CartoDB.Voyager", "defaultBackgroundId": "CartoDB.Voyager",
"layers": [ "layers": [
"charging_station" "charging_station"
], ]
"roamingRenderings": []
} }

View file

@ -57,6 +57,5 @@
"bike_themed_object", "bike_themed_object",
"bike_cleaning", "bike_cleaning",
"bike_parking" "bike_parking"
], ]
"roamingRenderings": []
} }

View file

@ -40,6 +40,5 @@
"widenFactor": 2, "widenFactor": 2,
"layers": [ "layers": [
"drinking_water" "drinking_water"
], ]
"roamingRenderings": []
} }

View file

@ -456,6 +456,5 @@
], ],
"wayHandling": 1 "wayHandling": 1
} }
], ]
"roamingRenderings": []
} }

View file

@ -54,6 +54,5 @@
"filter": null "filter": null
} }
} }
], ]
"roamingRenderings": []
} }

View file

@ -172,6 +172,5 @@
} }
] ]
} }
], ]
"roamingRenderings": []
} }

View file

@ -201,6 +201,5 @@
} }
], ],
"hideFromOverview": true, "hideFromOverview": true,
"roamingRenderings": [],
"defaultBackgroundId": "AGIVFlandersGRB" "defaultBackgroundId": "AGIVFlandersGRB"
} }

View file

@ -40,6 +40,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"map" "map"
], ]
"roamingRenderings": []
} }

View file

@ -26,6 +26,5 @@
"map", "map",
"information_board", "information_board",
"nature_reserve" "nature_reserve"
], ]
"roamingRenderings": []
} }

View file

@ -26,6 +26,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"parking" "parking"
], ]
"roamingRenderings": []
} }

View file

@ -46,6 +46,5 @@
"startZoom": 16, "startZoom": 16,
"widenFactor": 1.2, "widenFactor": 1.2,
"overpassMaxZoom": 0, "overpassMaxZoom": 0,
"layers": [], "layers": []
"roamingRenderings": []
} }

View file

@ -23,6 +23,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"play_forest" "play_forest"
], ]
"roamingRenderings": []
} }

View file

@ -42,6 +42,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"playground" "playground"
], ]
"roamingRenderings": []
} }

View file

@ -41,6 +41,5 @@
"socialImage": "", "socialImage": "",
"layers": [ "layers": [
"sport_pitch" "sport_pitch"
], ]
"roamingRenderings": []
} }

View file

@ -43,6 +43,5 @@
"layers": [ "layers": [
"direction", "direction",
"surveillance_camera" "surveillance_camera"
], ]
"roamingRenderings": []
} }

View file

@ -55,6 +55,5 @@
"layers": [ "layers": [
"tree_node" "tree_node"
], ],
"roamingRenderings": [],
"defaultBackgroundId": "AGIV" "defaultBackgroundId": "AGIV"
} }

View file

@ -274,6 +274,5 @@
"render": "0" "render": "0"
} }
} }
], ]
"roamingRenderings": []
} }

View file

@ -33,6 +33,5 @@
"minzoom": 12 "minzoom": 12
} }
} }
], ]
"roamingRenderings": []
} }

View file

@ -46,6 +46,11 @@ for (const themeFile of themeFiles) {
// @ts-ignore // @ts-ignore
fixLayerConfig(layerConfig) fixLayerConfig(layerConfig)
} }
if(themeFile.parsed["roamingRenderings"] !== undefined && themeFile.parsed["roamingRenderings"].length == 0){
delete themeFile.parsed["roamingRenderings"]
}
writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " ")) writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " "))
} }
//*/ //*/