Use case invariant search in all filters

This commit is contained in:
Pieter Vander Vennet 2022-06-07 03:36:22 +02:00
parent ec1c206f84
commit 0a81dd7e10
7 changed files with 42 additions and 74 deletions

View file

@ -128,7 +128,7 @@
"options": [
{
"question": "Name contains 'alt'",
"osmTags": "name~.*[aA]lt.*"
"osmTags": "name~i~.*alt.*"
}
]
},
@ -137,7 +137,7 @@
"options": [
{
"question": "Name contains 'wenslijn'",
"osmTags": "name~.*[wW]enslijn.*"
"osmTags": "name~i~.*wenslijn.*"
}
]
},
@ -146,7 +146,7 @@
"options": [
{
"question": "Name contains 'omleiding'",
"osmTags": "name~.*[oO]mleiding.*"
"osmTags": "name~i~.*omleiding.*"
}
]
},
@ -155,7 +155,7 @@
"options": [
{
"question": "Reference contains 'alt'",
"osmTags": "ref~.*[aA]lt.*"
"osmTags": "ref~i~.*aAlt.*"
}
]
},

View file

@ -1,21 +1,13 @@
{
"id": "mapcomplete-changes",
"title": {
"en": "Changes made with MapComplete",
"de": "Änderungen mit MapComplete",
"es": "Cambios hechos con MapComplete",
"nb_NO": "Endringer utført med MapComplete"
"en": "Changes made with MapComplete"
},
"shortDescription": {
"en": "Shows changes made by MapComplete",
"de": "Zeigt Änderungen von MapComplete",
"es": "Muestra los cambios hechos por MapComplete",
"nb_NO": "Vis endringer utført med MapComplete"
"en": "Shows changes made by MapComplete"
},
"description": {
"en": "This maps shows all the changes made with MapComplete",
"de": "Diese Karte zeigt alle Änderungen die mit MapComplete gemacht wurden",
"es": "Este mapa muestra todos los cambios hechos con MapComplete"
"en": "This maps shows all the changes made with MapComplete"
},
"maintainer": "",
"icon": "./assets/svg/logo.svg",
@ -30,10 +22,7 @@
{
"id": "mapcomplete-changes",
"name": {
"en": "Changeset centers",
"de": "Schwerpunkte von Änderungssätzen",
"es": "Centros de conjuntos de cambios",
"nb_NO": "Endringssettsenter"
"en": "Changeset centers"
},
"minzoom": 0,
"source": {
@ -47,47 +36,35 @@
],
"title": {
"render": {
"en": "Changeset for {theme}",
"de": "Änderungen für {theme}",
"es": "Conjunto de cambios para {theme}",
"nb_NO": "Endringssett for {theme}"
"en": "Changeset for {theme}"
}
},
"description": {
"en": "Shows all MapComplete changes",
"de": "Zeigt alle MapComplete Änderungen",
"es": "Muestra todos los cambios de MapComplete"
"en": "Shows all MapComplete changes"
},
"tagRenderings": [
{
"id": "render_id",
"render": {
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"de": "Änderung <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"es": "Conjunto de cambios <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"nb_NO": "Endringssett <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
}
},
{
"id": "contributor",
"render": {
"en": "Change made by <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>",
"de": "Änderung wurde von <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a> gemacht",
"es": "Cambio hecho por <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>"
"en": "Change made by <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>"
}
},
{
"id": "theme",
"render": {
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"de": "Änderung mit Thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
},
"mappings": [
{
"if": "theme~http.*",
"then": {
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>",
"de": "Änderung mit <b>inoffiziellem</b> Thema <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
}
}
]
@ -348,16 +325,14 @@
"id": "theme-search",
"options": [
{
"osmTags": "theme~.*{search}.*",
"osmTags": "theme~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Themename contains {search}",
"de": "Themenname enthält {search}",
"nb_NO": "Temanavn inneholder {search}"
"en": "Themename contains {search}"
}
}
]
@ -366,16 +341,14 @@
"id": "created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc~.*{search}.*",
"osmTags": "_last_edit:contributor:lc~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Made by contributor {search}",
"de": "Erstellt von {search}",
"es": "Hecho por contributor/a {search}"
"en": "Made by contributor {search}"
}
}
]
@ -384,16 +357,14 @@
"id": "not_created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc!~.*{search}.*",
"osmTags": "_last_edit:contributor:lc!~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "<b>Not</b> made by contributor {search}",
"de": "<b>Nicht</b> erstellt von {search}",
"es": "<b>No</b> hecho por contributor/a {search}"
"en": "<b>Not</b> made by contributor {search}"
}
}
]
@ -408,9 +379,7 @@
{
"id": "link_to_more",
"render": {
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>",
"de": "Weitere Statistiken finden Sie <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a>",
"es": "Se pueden encontrar más estadísticas <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>aquí</a>"
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>"
}
},
{

View file

@ -87,7 +87,7 @@
"id": "theme-search",
"options": [
{
"osmTags": "theme~.*{search}.*",
"osmTags": "theme~i~.*{search}.*",
"fields": [
{
"name": "search"
@ -103,7 +103,7 @@
"id": "created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc~.*{search}.*",
"osmTags": "_last_edit:contributor:lc~i~.*{search}.*",
"fields": [
{
"name": "search"
@ -119,7 +119,7 @@
"id": "not_created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc!~.*{search}.*",
"osmTags": "_last_edit:contributor:lc!~i~.*{search}.*",
"fields": [
{
"name": "search"