Skip to content

Commit

Permalink
Fix: use 'isCounted' instead of 'doCount', add check for this
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Sep 19, 2024
1 parent a6598fd commit 3a8fc42
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,5 @@
"en": "a wall, cliff or rock",
"de": "eine Wand, eine Klippe oder einen Felsen"
},
"doCount": false
"isCounted": false
}
2 changes: 1 addition & 1 deletion assets/themes/atm/atm.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"filter": {
"sameAs": "banks_with_atm"
},
"doCount": false
"isCounted": false
}
},
{
Expand Down
9 changes: 5 additions & 4 deletions assets/themes/bag/bag.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"osmTags": "building~*"
},
"minzoom": 18,
"doCount": false,
"isCounted": false,
"calculatedTags": [
"_surface:strict:=feat(get)('_surface')"
],
Expand Down Expand Up @@ -152,7 +152,8 @@
}
}
],
"allowMove": false
"allowMove": false,
"isCounted": false
},
{
"id": "osm_adresses",
Expand All @@ -171,7 +172,6 @@
}
},
"minzoom": 18,
"doCount": false,
"pointRendering": [
{
"label": {
Expand All @@ -191,7 +191,8 @@
}
}
],
"allowMove": false
"allowMove": false,
"isCounted": false
},
{
"id": "bag_pand",
Expand Down
4 changes: 2 additions & 2 deletions assets/themes/climbing/climbing.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@
},
"minzoom": 16,
"name": null,
"doCount": false,
"isCounted": false,
"+tagRenderings": [
{
"id": "repairs_climbing_shoes",
Expand Down Expand Up @@ -470,7 +470,7 @@
],
"override": {
"minzoom": 15,
"doCount": false,
"isCounted": false,
"pointRendering": [
{
"iconSize": "30,30"
Expand Down
6 changes: 4 additions & 2 deletions assets/themes/grb/grb.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
}
}
],
"allowMove": false
"allowMove": false,
"isCounted": false
},
{
"id": "grb",
Expand Down Expand Up @@ -606,7 +607,8 @@
"fill": "no"
}
],
"allowMove": false
"allowMove": false,
"isCounted": false
},
"address",
{
Expand Down
4 changes: 4 additions & 0 deletions src/Models/ThemeConfig/Conversion/PrevalidateLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export class PrevalidateLayer extends DesugaringStep<LayerConfigJson> {
}
}

if(json["doCount"] !== undefined){
context.err("Detected 'doCount'. did you mean: isCounted ?")
}

if (
json.syncSelection !== undefined &&
LayerConfig.syncSelectionAllowed.indexOf(json.syncSelection) < 0
Expand Down

0 comments on commit 3a8fc42

Please sign in to comment.