Add check: a preset for a newly created point should match the layer + fix bugs in themes

This commit is contained in:
Pieter Vander Vennet 2022-02-14 15:40:38 +01:00
parent 3398c9f405
commit c874afc745
5 changed files with 32 additions and 22 deletions

View file

@ -127,25 +127,6 @@
"de": "Knotenpunkt <strong>{rcn_ref}</strong>"
}
},
"presets": [
{
"title": {
"de": "Knotenpunkt"
},
"tags": [
"network:type=node_network"
]
},
{
"title": {
"de": "Knotenpunkt im Netzwerk Spree-Neiße"
},
"tags": [
"network:type=node_network",
"cycle_network=Knotenpunktwegweisung Spree-Neiße"
]
}
],
"tagRenderings": [
{
"question": {

View file

@ -28,6 +28,7 @@
"it": "Friggitoria",
"hu": "Sültkrumplievő-hely"
},
"=presets": [],
"source": {
"=osmTags": {
"and": [
@ -47,7 +48,8 @@
"builtin": "food",
"override": {
"minzoom": 19,
"filter": null
"filter": null,
"name": null
}
}
]

View file

@ -77,7 +77,8 @@
],
"=filter": {
"sameAs": "nature_reserve_centerpoints"
}
},
"=presets": []
}
},
{
@ -103,6 +104,9 @@
},
"presets": []
}
],
"presets": [
{"tags+": "operator=Natuurpunt"}
]
}
},
@ -193,6 +197,10 @@
"builtin": "birdhide",
"override": {
"minzoom": 14,
"presets": [
{"tags+": "operator=Natuurpunt"},
{"tags+": "operator=Natuurpunt"}
],
"source": {
"geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 12,

View file

@ -139,8 +139,8 @@
"id": "to_handle",
"options": [
{
"question": "Only show non-matched objects",
"default": true,
"question": "Only show non-matched objects",
"osmTags": {
"and": [
"_imported=",