diff --git a/assets/themes/benches/benches.json b/assets/themes/benches/benches.json index d94f88597a..eef8c2dc50 100644 --- a/assets/themes/benches/benches.json +++ b/assets/themes/benches/benches.json @@ -58,6 +58,5 @@ "bench", "bench_at_pt", "picnic_table" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/bicyclelib/bicyclelib.json b/assets/themes/bicyclelib/bicyclelib.json index 1c3a5c000f..09bc1352b5 100644 --- a/assets/themes/bicyclelib/bicyclelib.json +++ b/assets/themes/bicyclelib/bicyclelib.json @@ -42,7 +42,6 @@ "startLon": 0, "startZoom": 1, "widenFactor": 1.5, - "roamingRenderings": [], "layers": [ { "builtin": "bicycle_library", diff --git a/assets/themes/bookcases/bookcases.json b/assets/themes/bookcases/bookcases.json index 0862fbb379..7209162f2f 100644 --- a/assets/themes/bookcases/bookcases.json +++ b/assets/themes/bookcases/bookcases.json @@ -40,7 +40,6 @@ "startLon": 0, "startZoom": 1, "widenFactor": 1, - "roamingRenderings": [], "layers": [ "public_bookcase" ] diff --git a/assets/themes/charging_stations/charging_stations.json b/assets/themes/charging_stations/charging_stations.json index 15d55a1b3f..fdf9a0bdce 100644 --- a/assets/themes/charging_stations/charging_stations.json +++ b/assets/themes/charging_stations/charging_stations.json @@ -46,6 +46,5 @@ "defaultBackgroundId": "CartoDB.Voyager", "layers": [ "charging_station" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/cyclofix/cyclofix.json b/assets/themes/cyclofix/cyclofix.json index 47a6267368..db626f24c7 100644 --- a/assets/themes/cyclofix/cyclofix.json +++ b/assets/themes/cyclofix/cyclofix.json @@ -57,6 +57,5 @@ "bike_themed_object", "bike_cleaning", "bike_parking" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/drinking_water/drinking_water.json b/assets/themes/drinking_water/drinking_water.json index 819f0cfb89..5da9ee3c71 100644 --- a/assets/themes/drinking_water/drinking_water.json +++ b/assets/themes/drinking_water/drinking_water.json @@ -40,6 +40,5 @@ "widenFactor": 2, "layers": [ "drinking_water" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/facadegardens/facadegardens.json b/assets/themes/facadegardens/facadegardens.json index 526dd699cf..d9fc9ed62d 100644 --- a/assets/themes/facadegardens/facadegardens.json +++ b/assets/themes/facadegardens/facadegardens.json @@ -456,6 +456,5 @@ ], "wayHandling": 1 } - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/fritures/fritures.json b/assets/themes/fritures/fritures.json index 235a5f65a1..e74e38bec1 100644 --- a/assets/themes/fritures/fritures.json +++ b/assets/themes/fritures/fritures.json @@ -54,6 +54,5 @@ "filter": null } } - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/fruit_trees/fruit_trees.json b/assets/themes/fruit_trees/fruit_trees.json index 68ce79228d..9f9e84fab6 100644 --- a/assets/themes/fruit_trees/fruit_trees.json +++ b/assets/themes/fruit_trees/fruit_trees.json @@ -172,6 +172,5 @@ } ] } - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/grb.json b/assets/themes/grb.json index a0f32cdc6e..d55577e5a2 100644 --- a/assets/themes/grb.json +++ b/assets/themes/grb.json @@ -201,6 +201,5 @@ } ], "hideFromOverview": true, - "roamingRenderings": [], "defaultBackgroundId": "AGIVFlandersGRB" } \ No newline at end of file diff --git a/assets/themes/maps/maps.json b/assets/themes/maps/maps.json index 52d757a9da..959494a063 100644 --- a/assets/themes/maps/maps.json +++ b/assets/themes/maps/maps.json @@ -40,6 +40,5 @@ "socialImage": "", "layers": [ "map" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/nature/nature.json b/assets/themes/nature/nature.json index 0f8004e2c0..edd29baf35 100644 --- a/assets/themes/nature/nature.json +++ b/assets/themes/nature/nature.json @@ -26,6 +26,5 @@ "map", "information_board", "nature_reserve" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/parkings/parkings.json b/assets/themes/parkings/parkings.json index ca322052ce..affbbfc211 100644 --- a/assets/themes/parkings/parkings.json +++ b/assets/themes/parkings/parkings.json @@ -26,6 +26,5 @@ "socialImage": "", "layers": [ "parking" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/personal/personal.json b/assets/themes/personal/personal.json index d0218d014e..4b88eefa53 100644 --- a/assets/themes/personal/personal.json +++ b/assets/themes/personal/personal.json @@ -46,6 +46,5 @@ "startZoom": 16, "widenFactor": 1.2, "overpassMaxZoom": 0, - "layers": [], - "roamingRenderings": [] + "layers": [] } \ No newline at end of file diff --git a/assets/themes/play_forests/play_forests.json b/assets/themes/play_forests/play_forests.json index 5c65a702a5..96aedcf5db 100644 --- a/assets/themes/play_forests/play_forests.json +++ b/assets/themes/play_forests/play_forests.json @@ -23,6 +23,5 @@ "socialImage": "", "layers": [ "play_forest" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/playgrounds/playgrounds.json b/assets/themes/playgrounds/playgrounds.json index 2908a88b47..8c153a10a6 100644 --- a/assets/themes/playgrounds/playgrounds.json +++ b/assets/themes/playgrounds/playgrounds.json @@ -42,6 +42,5 @@ "socialImage": "", "layers": [ "playground" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/sport_pitches/sport_pitches.json b/assets/themes/sport_pitches/sport_pitches.json index 4db24cdd69..257b835a8d 100644 --- a/assets/themes/sport_pitches/sport_pitches.json +++ b/assets/themes/sport_pitches/sport_pitches.json @@ -41,6 +41,5 @@ "socialImage": "", "layers": [ "sport_pitch" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/surveillance/surveillance.json b/assets/themes/surveillance/surveillance.json index a61633b23b..4663b87fbd 100644 --- a/assets/themes/surveillance/surveillance.json +++ b/assets/themes/surveillance/surveillance.json @@ -43,6 +43,5 @@ "layers": [ "direction", "surveillance_camera" - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/trees/trees.json b/assets/themes/trees/trees.json index 7c2baa8ac2..35815969b1 100644 --- a/assets/themes/trees/trees.json +++ b/assets/themes/trees/trees.json @@ -55,6 +55,5 @@ "layers": [ "tree_node" ], - "roamingRenderings": [], "defaultBackgroundId": "AGIV" } \ No newline at end of file diff --git a/assets/themes/uk_addresses/uk_addresses.json b/assets/themes/uk_addresses/uk_addresses.json index 4a9ab30ab5..09e93cbe6a 100644 --- a/assets/themes/uk_addresses/uk_addresses.json +++ b/assets/themes/uk_addresses/uk_addresses.json @@ -274,6 +274,5 @@ "render": "0" } } - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/assets/themes/waste_basket/waste_basket.json b/assets/themes/waste_basket/waste_basket.json index 6bb40ae6c2..b31d12d9a0 100644 --- a/assets/themes/waste_basket/waste_basket.json +++ b/assets/themes/waste_basket/waste_basket.json @@ -33,6 +33,5 @@ "minzoom": 12 } } - ], - "roamingRenderings": [] + ] } \ No newline at end of file diff --git a/scripts/lint.ts b/scripts/lint.ts index a4f3902a64..fe79b61303 100644 --- a/scripts/lint.ts +++ b/scripts/lint.ts @@ -46,6 +46,11 @@ for (const themeFile of themeFiles) { // @ts-ignore fixLayerConfig(layerConfig) } + + if(themeFile.parsed["roamingRenderings"] !== undefined && themeFile.parsed["roamingRenderings"].length == 0){ + delete themeFile.parsed["roamingRenderings"] + } + writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, " ")) } -//*/ \ No newline at end of file +//*/