Remove all old 'hideUnderlayingFeaturePercentages' as they aren't used anymore; check in script; fix #431

This commit is contained in:
pietervdvn 2021-07-26 10:37:11 +02:00
parent 177649614d
commit 00e2f56d3e
27 changed files with 4 additions and 35 deletions

View file

@ -517,7 +517,6 @@
]
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/benches/bench_poi.svg",
"mappings": []

View file

@ -126,7 +126,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/benches/bench_public_transport.svg"
},

View file

@ -210,7 +210,6 @@
},
"description"
],
"hideUnderlayingFeaturesMinPercentage": 1,
"presets": [
{
"title": {

View file

@ -293,7 +293,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/layers/bike_cafe/bike_cafe.svg"
},

View file

@ -63,7 +63,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/layers/bike_monitoring_station/monitoring_station.svg"
},

View file

@ -601,7 +601,6 @@
]
}
],
"hideUnderlayingFeaturesMinPercentage": 1,
"presets": [
{
"title": {

View file

@ -56,7 +56,6 @@
"phone",
"opening_hours"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/layers/bike_themed_object/other_services.svg"
},

View file

@ -29,7 +29,6 @@
"tagRenderings": [
"images"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/layers/information_board/board.svg"
},

View file

@ -159,7 +159,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/layers/map/map.svg",
"mappings": [

View file

@ -383,7 +383,6 @@
]
}
],
"hideUnderlayingFeaturesMinPercentage": 10,
"wayHandling": 2,
"icon": {
"render": "./assets/themes/buurtnatuur/nature_reserve.svg"

View file

@ -72,7 +72,6 @@
]
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "circle:#e6cf39;./assets/layers/picnic_table/picnic_table.svg"
},

View file

@ -87,7 +87,6 @@
"render": "{reviews(name, play_forest)}"
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"hideFromOverview": false,
"icon": {
"render": "./assets/layers/play_forest/icon.svg"

View file

@ -437,7 +437,6 @@
"render": "{reviews(name, playground)}"
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/playgrounds/playground.svg"
},

View file

@ -215,7 +215,6 @@
]
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"width": {
"render": "7"
},

View file

@ -383,7 +383,6 @@
"render": "{reviews(name, sportpitch)}"
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "circle:white;./assets/layers/sport_pitch/sport_pitch.svg",
"mappings": [

View file

@ -421,7 +421,6 @@
]
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/surveillance_cameras/logo.svg",
"mappings": [

View file

@ -449,7 +449,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "circle:#ffffff;./assets/themes/trees/unknown.svg",
"mappings": [

View file

@ -521,7 +521,6 @@
"questions",
"reviews"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "circle:white;./assets/themes/campersites/caravan.svg",
"mappings": [
@ -862,7 +861,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "circle:white;./assets/themes/campersites/sanitary_dump_station.svg"
},

View file

@ -307,7 +307,6 @@
]
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "pin:#fff;./assets/themes/charging_stations/plug.svg",
"mappings": [

View file

@ -140,7 +140,6 @@
"phone",
"opening_hours"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/climbing/club.svg"
},
@ -280,7 +279,6 @@
"opening_hours",
"reviews"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/climbing/climbing_gym.svg"
},
@ -471,7 +469,6 @@
},
"reviews"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "circle:white;./assets/themes/climbing/climbing_route.svg"
},
@ -695,7 +692,6 @@
},
"reviews"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/climbing/climbing_no_rope.svg"
},
@ -850,7 +846,6 @@
}
],
"icon": "./assets/themes/climbing/climbing_unknown.svg",
"hideUnderlayingFeaturesMinPercentage": 0,
"width": {
"render": "2"
},

View file

@ -330,7 +330,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "circle:white;./assets/themes/facadegardens/geveltuin.svg",
"mappings": [

View file

@ -43,7 +43,6 @@
"tagRenderings": [
"images"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/buurtnatuur/forest.svg"
},
@ -143,7 +142,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/fruit_trees/fruit_tree.svg"
},

View file

@ -173,7 +173,6 @@
}
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"label": {
"mappings": [
{

View file

@ -258,7 +258,6 @@
},
"images"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/hailhydrant/hydrant.svg"
},
@ -365,7 +364,6 @@
},
"images"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/hailhydrant/Twemoji12_1f9ef.svg"
},
@ -568,7 +566,6 @@
},
"images"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/hailhydrant/Twemoji12_1f692.svg"
},
@ -744,7 +741,6 @@
},
"images"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/hailhydrant/Twemoji_1f691.svg"
},

View file

@ -305,7 +305,6 @@
"questions",
"reviews"
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/shops/shop.svg"
},

View file

@ -144,7 +144,6 @@
"render": "<span style='border: 1px solid black; border-radius: 0.5em; padding: 0.25em;'><b>{_width:needed}m</b> nodig in het totaal</span>"
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
"icon": {
"render": "./assets/themes/widths/icon.svg"
},

View file

@ -56,6 +56,10 @@ class LayerOverviewUtils {
if (path != undefined && path.indexOf(expected) < 0) {
errorCount.push("Layer is in an incorrect place. The path is " + path + ", but expected " + expected)
}
if(layerJson["hideUnderlayingFeaturesMinPercentage"] !== undefined){
errorCount.push("Layer "+layer.id+" contains an old 'hideUnderlayingFeaturesMinPercentage'")
}
for (const image of images) {
if (image.indexOf("{") >= 0) {