forked from MapComplete/MapComplete
Merge pull request #1522 from pietervdvn/RobinLinde-patch-12
Changes to waste and kerbs/crossings theme
This commit is contained in:
commit
9d23f80539
4 changed files with 63 additions and 6 deletions
|
@ -2150,6 +2150,27 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "survey_date",
|
||||||
|
"question": {
|
||||||
|
"en": "When was this object last surveyed?"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "survey:date",
|
||||||
|
"type": "date"
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "This object was last surveyed on <b>{survey:date}</b>"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "survey:date:={_now:date}",
|
||||||
|
"then": {
|
||||||
|
"en": "This object was last surveyed today"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -25,7 +25,7 @@
|
||||||
"calculatedTags": [
|
"calculatedTags": [
|
||||||
"_waste_amount=Object.values(Object.keys(feat.properties).filter((key) => key.startsWith('recycling:')).reduce((cur, key) => { return Object.assign(cur, { [key]: feat.properties[key] })}, {})).reduce((n, x) => n + (x == \"yes\"), 0);"
|
"_waste_amount=Object.values(Object.keys(feat.properties).filter((key) => key.startsWith('recycling:')).reduce((cur, key) => { return Object.assign(cur, { [key]: feat.properties[key] })}, {})).reduce((n, x) => n + (x == \"yes\"), 0);"
|
||||||
],
|
],
|
||||||
"minzoom": 11,
|
"minzoom": 10,
|
||||||
"title": {
|
"title": {
|
||||||
"render": {
|
"render": {
|
||||||
"en": "Recycling facility",
|
"en": "Recycling facility",
|
||||||
|
@ -1262,7 +1262,8 @@
|
||||||
"ca": "Aquesta instal·lació de reciclatge la pot utilitzar {access}",
|
"ca": "Aquesta instal·lació de reciclatge la pot utilitzar {access}",
|
||||||
"fr": "Ce point de recyclage peut être utilisé par {access}"
|
"fr": "Ce point de recyclage peut être utilisé par {access}"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"survey_date"
|
||||||
],
|
],
|
||||||
"filter": [
|
"filter": [
|
||||||
"open_now",
|
"open_now",
|
||||||
|
@ -1566,4 +1567,4 @@
|
||||||
"enableRelocation": true,
|
"enableRelocation": true,
|
||||||
"enableImproveAccuracy": true
|
"enableImproveAccuracy": true
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -28,10 +28,45 @@
|
||||||
"startLat": 53.23776,
|
"startLat": 53.23776,
|
||||||
"startLon": 6.53812,
|
"startLon": 6.53812,
|
||||||
"layers": [
|
"layers": [
|
||||||
|
{
|
||||||
|
"builtin": "cycleways_and_roads",
|
||||||
|
"override": {
|
||||||
|
"title": null,
|
||||||
|
"forceLoad": true,
|
||||||
|
"minzoom": 18,
|
||||||
|
"passAllFeatures": true,
|
||||||
|
"shownByDefault": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"builtin": "crossings",
|
"builtin": "crossings",
|
||||||
"override": {
|
"override": {
|
||||||
"=presets": [],
|
"=presets": [
|
||||||
|
{
|
||||||
|
"title": {
|
||||||
|
"en": "a crossing",
|
||||||
|
"nl": "een oversteekplaats",
|
||||||
|
"de": "eine Kreuzung",
|
||||||
|
"fr": "une traversée",
|
||||||
|
"ca": "un pas de vianants",
|
||||||
|
"da": "en overgang",
|
||||||
|
"es": "un cruce"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"highway=crossing"
|
||||||
|
],
|
||||||
|
"description": {
|
||||||
|
"en": "Crossing for pedestrians and/or cyclists",
|
||||||
|
"nl": "Oversteekplaats voor voetgangers en/of fietsers",
|
||||||
|
"de": "Kreuzung für Fußgänger und/oder Radfahrer",
|
||||||
|
"fr": "Traversée pour piétons et/ou cyclistes",
|
||||||
|
"da": "Overgang for fodgængere og/eller cyklister",
|
||||||
|
"es": "Cruce para peatones y/o ciclistas"
|
||||||
|
},
|
||||||
|
"snapToLayer": "cycleways_and_roads",
|
||||||
|
"maxSnapDistance": 25
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": {
|
"source": {
|
||||||
"osmTags": "highway=crossing"
|
"osmTags": "highway=crossing"
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
{
|
{
|
||||||
"builtin": "waste_basket",
|
"builtin": "waste_basket",
|
||||||
"override": {
|
"override": {
|
||||||
"minzoom": 18,
|
"minzoom": 16,
|
||||||
"minzoomVisible": 18
|
"minzoomVisible": 16
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"recycling",
|
"recycling",
|
||||||
|
|
Loading…
Add table
Reference in a new issue