New statistcs view

This commit is contained in:
Pieter Vander Vennet 2022-08-20 12:46:33 +02:00
parent b2c9c19cca
commit b67a80e275
206 changed files with 275 additions and 890394 deletions

View file

@ -52,7 +52,13 @@
{
"id": "contributor",
"render": {
"en": "Change made by <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}{user}</a>"
},
"question": {
"en": "What contributor made this change?"
},
"freeform": {
"key": "user"
}
},
{
@ -60,8 +66,15 @@
"render": {
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
},
"question":{
"en": "What theme was this change made with?"
},
"freeform": {
"key": "theme"
},
"mappings": [
{
"hideInAnswer": true,
"if": "theme~http.*",
"then": {
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
@ -381,7 +394,12 @@
"id": "created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc~i~.*{search}.*",
"osmTags": {
"or":[
"_last_edit:contributor:lc~i~.*{search}.*",
"user~i~.*{search}.*"
]
},
"fields": [
{
"name": "search"

View file

@ -31,9 +31,6 @@
"geoJsonZoomLevel": 8,
"maxCacheAge": 0
},
"calculatedTags": [
"_last_edit:contributor:lc:=feat.properties['_last_edit:contributor'].toLowerCase()"
],
"title": {
"render": {
"en": "Changeset for {theme}"
@ -65,7 +62,8 @@
"if": "theme~http.*",
"then": {
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
}
},
"hideInAnswer": true
}
]
}
@ -103,7 +101,7 @@
"id": "created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc~i~.*{search}.*",
"osmTags": "user~i~.*{search}.*",
"fields": [
{
"name": "search"
@ -119,7 +117,7 @@
"id": "not_created_by",
"options": [
{
"osmTags": "_last_edit:contributor:lc!~i~.*{search}.*",
"osmTags": "user!~i~.*{search}.*",
"fields": [
{
"name": "search"