Merge pull request 'Few patches, small winter_service theme' (#2356) from Robin-patch-1 into develop
Reviewed-on: MapComplete/MapComplete#2356
This commit is contained in:
commit
214e419e50
38 changed files with 917 additions and 667 deletions
|
@ -612,6 +612,10 @@
|
|||
{
|
||||
"if": "theme=width",
|
||||
"then": "./assets/themes/width/icon.svg"
|
||||
},
|
||||
{
|
||||
"if": "theme=winter_service",
|
||||
"then": "./assets/svg/snowflake.svg"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -211,184 +211,109 @@
|
|||
"allowMove": false
|
||||
},
|
||||
{
|
||||
"id": "all_streets",
|
||||
"isCounted": false,
|
||||
"name": {
|
||||
"en": "All streets",
|
||||
"nl": "Alle straten",
|
||||
"ru": "Все улицы",
|
||||
"zh_Hant": "所有道路",
|
||||
"hu": "Minden utca",
|
||||
"de": "Alle Straßen",
|
||||
"ca": "Tots els carrers",
|
||||
"es": "Todas las calles",
|
||||
"fr": "Toutes les rues",
|
||||
"nb_NO": "Alle gater",
|
||||
"da": "Alle gader",
|
||||
"pa_PK": "ساریاں سڑکاں",
|
||||
"cs": "Všechny ulice",
|
||||
"it": "Tutte le strade",
|
||||
"pl": "Wszystkie ulice",
|
||||
"ko": "모든 거리"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": [
|
||||
"highway!=",
|
||||
"service!=driveway",
|
||||
"highway!=platform"
|
||||
]
|
||||
}
|
||||
},
|
||||
"minzoom": 18,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Street",
|
||||
"nl": "Straat",
|
||||
"ru": "Улица",
|
||||
"zh_Hant": "照明",
|
||||
"hu": "Utca",
|
||||
"de": "Straße",
|
||||
"ca": "Carrer",
|
||||
"nb_NO": "Gate",
|
||||
"fr": "Rue",
|
||||
"da": "Gade",
|
||||
"pa_PK": "سڑک",
|
||||
"es": "Calle",
|
||||
"cs": "Ulice",
|
||||
"eu": "Kalea",
|
||||
"it": "Strada",
|
||||
"pl": "Ulica",
|
||||
"ko": "거리"
|
||||
},
|
||||
"mappings": [
|
||||
"builtin": "all_streets",
|
||||
"override": {
|
||||
"tagRenderings+": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
{
|
||||
"id": "lit",
|
||||
"question": {
|
||||
"en": "Is this street lit?",
|
||||
"nl": "Is deze straat verlicht?",
|
||||
"zh_Hant": "這道路有照明嗎?",
|
||||
"hu": "Ki van-e világítva ez az utca?",
|
||||
"de": "Ist diese Straße beleuchtet?",
|
||||
"nb_NO": "Er denne gaten belyst?",
|
||||
"fr": "Cette rue est-elle éclairée ?",
|
||||
"da": "Er denne gade oplyst?",
|
||||
"ca": "Aquest carrer està il·luminat?",
|
||||
"es": "¿Está iluminada esta calle?",
|
||||
"cs": "Je tato ulice osvětlená?",
|
||||
"it": "Questa strada è illuminata?",
|
||||
"pl": "Czy ta ulica jest oświetlona?",
|
||||
"ko": "이 거리는 밝나요?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "lit=yes",
|
||||
"then": {
|
||||
"en": "This street is lit",
|
||||
"nl": "Deze straat is verlicht",
|
||||
"zh_Hant": "這道路有照明",
|
||||
"hu": "Ez az utca ki van világítva",
|
||||
"de": "Diese Straße ist beleuchtet",
|
||||
"es": "Esta calle está iluminada",
|
||||
"nb_NO": "Denne gaten er belyst",
|
||||
"fr": "Cette rue est éclairée",
|
||||
"da": "Denne gade er oplyst",
|
||||
"ca": "Aquest carrer està il·luminat",
|
||||
"cs": "Tato ulice je osvětlená",
|
||||
"it": "Questa strada è illuminata",
|
||||
"pl": "Ta ulica jest oświetlona",
|
||||
"ko": "이 거리는 밝습니다"
|
||||
}
|
||||
"id": "lit",
|
||||
"question": {
|
||||
"en": "Is this street lit?",
|
||||
"nl": "Is deze straat verlicht?",
|
||||
"zh_Hant": "這道路有照明嗎?",
|
||||
"hu": "Ki van-e világítva ez az utca?",
|
||||
"de": "Ist diese Straße beleuchtet?",
|
||||
"nb_NO": "Er denne gaten belyst?",
|
||||
"fr": "Cette rue est-elle éclairée ?",
|
||||
"da": "Er denne gade oplyst?",
|
||||
"ca": "Aquest carrer està il·luminat?",
|
||||
"es": "¿Está iluminada esta calle?",
|
||||
"cs": "Je tato ulice osvětlená?",
|
||||
"it": "Questa strada è illuminata?",
|
||||
"pl": "Czy ta ulica jest oświetlona?",
|
||||
"ko": "이 거리는 밝나요?"
|
||||
},
|
||||
{
|
||||
"if": "lit=no",
|
||||
"then": {
|
||||
"en": "This street is not lit",
|
||||
"nl": "Deze straat is niet verlicht",
|
||||
"zh_Hant": "這道路沒有照明",
|
||||
"hu": "Ez az utca nincs kivilágítva",
|
||||
"de": "Diese Straße ist nicht beleuchtet",
|
||||
"es": "Esta calle no está iluminada",
|
||||
"nb_NO": "Denne gaten er ikke belyst",
|
||||
"fr": "Cette rue n’est pas éclairée",
|
||||
"da": "Denne gade er ikke oplyst",
|
||||
"ca": "Aquest carrer no està il·luminat",
|
||||
"cs": "Tato ulice není osvětlená",
|
||||
"it": "Questa strada non è illuminata",
|
||||
"pl": "Ta ulica nie jest oświetlona",
|
||||
"ko": "이 거리는 밝지 않습니다"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "lit=sunset-sunrise",
|
||||
"then": {
|
||||
"en": "This street is lit at night",
|
||||
"nl": "Deze straat is 's nachts verlicht",
|
||||
"zh_Hant": "這道路晚上有照明",
|
||||
"hu": "Ez az utca éjjel ki van világítva",
|
||||
"de": "Diese Straße ist nachts beleuchtet",
|
||||
"nb_NO": "Denne gaten er belyst nattestid",
|
||||
"fr": "Cette rue est éclairée la nuit",
|
||||
"da": "Denne gade er oplyst om natten",
|
||||
"ca": "Aquest carrer està il·luminat per la nit",
|
||||
"es": "Esta calle está iluminada por la noche",
|
||||
"cs": "Tato ulice je v noci osvětlená",
|
||||
"it": "Questa strada è illuminata di sera",
|
||||
"pl": "Ta ulica jest oświetlona w nocy",
|
||||
"ko": "이 거리는 밤에 밝습니다"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
},
|
||||
{
|
||||
"if": "lit=24/7",
|
||||
"then": {
|
||||
"en": "This street is lit 24/7",
|
||||
"nl": "Deze straat is 24/7 verlicht",
|
||||
"zh_Hant": "這道路 24/7 有照明",
|
||||
"hu": "Ez az utca éjjel-nappal ki van világítva",
|
||||
"de": "Diese Straße ist durchgehend beleuchtet",
|
||||
"nb_NO": "Denne gaten er belyst døgnet rundt",
|
||||
"fr": "Cette rue est éclairée en permanence",
|
||||
"da": "Denne gade er oplyst 24/7",
|
||||
"ca": "Aquest carrer està il·luminat 24/7",
|
||||
"es": "Esta calle está iluminada 24/7",
|
||||
"cs": "Tato ulice je osvětlena 24/7",
|
||||
"it": "Questa strada è illuminata 24 ore su 24",
|
||||
"pl": "Ta ulica jest oświetlona 24/7",
|
||||
"ko": "이 거리는 24시간 밝습니다"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"allowSplit": true,
|
||||
"pointRendering": null,
|
||||
"lineRendering": [
|
||||
{
|
||||
"color": {
|
||||
"render": "#a9a9a9",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "lit=no",
|
||||
"then": "#303030"
|
||||
"if": "lit=yes",
|
||||
"then": {
|
||||
"en": "This street is lit",
|
||||
"nl": "Deze straat is verlicht",
|
||||
"zh_Hant": "這道路有照明",
|
||||
"hu": "Ez az utca ki van világítva",
|
||||
"de": "Diese Straße ist beleuchtet",
|
||||
"es": "Esta calle está iluminada",
|
||||
"nb_NO": "Denne gaten er belyst",
|
||||
"fr": "Cette rue est éclairée",
|
||||
"da": "Denne gade er oplyst",
|
||||
"ca": "Aquest carrer està il·luminat",
|
||||
"cs": "Tato ulice je osvětlená",
|
||||
"it": "Questa strada è illuminata",
|
||||
"pl": "Ta ulica jest oświetlona",
|
||||
"ko": "이 거리는 밝습니다"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "lit=yes",
|
||||
"then": "#ff0"
|
||||
"if": "lit=no",
|
||||
"then": {
|
||||
"en": "This street is not lit",
|
||||
"nl": "Deze straat is niet verlicht",
|
||||
"zh_Hant": "這道路沒有照明",
|
||||
"hu": "Ez az utca nincs kivilágítva",
|
||||
"de": "Diese Straße ist nicht beleuchtet",
|
||||
"es": "Esta calle no está iluminada",
|
||||
"nb_NO": "Denne gaten er ikke belyst",
|
||||
"fr": "Cette rue n’est pas éclairée",
|
||||
"da": "Denne gade er ikke oplyst",
|
||||
"ca": "Aquest carrer no està il·luminat",
|
||||
"cs": "Tato ulice není osvětlená",
|
||||
"it": "Questa strada non è illuminata",
|
||||
"pl": "Ta ulica nie jest oświetlona",
|
||||
"ko": "이 거리는 밝지 않습니다"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "lit=sunset-sunrise",
|
||||
"then": {
|
||||
"en": "This street is lit at night",
|
||||
"nl": "Deze straat is 's nachts verlicht",
|
||||
"zh_Hant": "這道路晚上有照明",
|
||||
"hu": "Ez az utca éjjel ki van világítva",
|
||||
"de": "Diese Straße ist nachts beleuchtet",
|
||||
"nb_NO": "Denne gaten er belyst nattestid",
|
||||
"fr": "Cette rue est éclairée la nuit",
|
||||
"da": "Denne gade er oplyst om natten",
|
||||
"ca": "Aquest carrer està il·luminat per la nit",
|
||||
"es": "Esta calle está iluminada por la noche",
|
||||
"cs": "Tato ulice je v noci osvětlená",
|
||||
"it": "Questa strada è illuminata di sera",
|
||||
"pl": "Ta ulica jest oświetlona w nocy",
|
||||
"ko": "이 거리는 밤에 밝습니다"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
},
|
||||
{
|
||||
"if": "lit=24/7",
|
||||
"then": {
|
||||
"en": "This street is lit 24/7",
|
||||
"nl": "Deze straat is 24/7 verlicht",
|
||||
"zh_Hant": "這道路 24/7 有照明",
|
||||
"hu": "Ez az utca éjjel-nappal ki van világítva",
|
||||
"de": "Diese Straße ist durchgehend beleuchtet",
|
||||
"nb_NO": "Denne gaten er belyst døgnet rundt",
|
||||
"fr": "Cette rue est éclairée en permanence",
|
||||
"da": "Denne gade er oplyst 24/7",
|
||||
"ca": "Aquest carrer està il·luminat 24/7",
|
||||
"es": "Esta calle está iluminada 24/7",
|
||||
"cs": "Tato ulice je osvětlena 24/7",
|
||||
"it": "Questa strada è illuminata 24 ore su 24",
|
||||
"pl": "Ta ulica jest oświetlona 24/7",
|
||||
"ko": "이 거리는 24시간 밝습니다"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"allowMove": false
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
132
assets/themes/winter_service/winter_service.json
Normal file
132
assets/themes/winter_service/winter_service.json
Normal file
|
@ -0,0 +1,132 @@
|
|||
{
|
||||
"credits": "Robin van der Linde",
|
||||
"credits:uid": 5093765,
|
||||
"id": "winter_service",
|
||||
"title": {
|
||||
"en": "Winter Service"
|
||||
},
|
||||
"icon": "./assets/svg/snowflake.svg",
|
||||
"layers": [
|
||||
{
|
||||
"id": "serviced_streets",
|
||||
"name": {
|
||||
"en": "Serviced streets"
|
||||
},
|
||||
"description": {
|
||||
"en": "Streets that have some form of winter service"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": [
|
||||
"highway!=",
|
||||
"service!=driveway",
|
||||
"highway!=platform",
|
||||
{
|
||||
"or": [
|
||||
"winter_service=yes",
|
||||
"winter_service=limited"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"minzoom": 16,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Serviced street"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lineRendering": [
|
||||
{
|
||||
"color": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "winter_service=yes",
|
||||
"then": "#00ff00"
|
||||
},
|
||||
{
|
||||
"if": "winter_service=limited",
|
||||
"then": "#ffff00"
|
||||
},
|
||||
{
|
||||
"if": "winter_service=no",
|
||||
"then": "#ff0000"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"pointRendering": null,
|
||||
"allowMove": false,
|
||||
"tagRenderings": []
|
||||
},
|
||||
{
|
||||
"builtin": "all_streets",
|
||||
"override": {
|
||||
"lineRendering": [
|
||||
{
|
||||
"color": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "winter_service=yes",
|
||||
"then": "#00ff00"
|
||||
},
|
||||
{
|
||||
"if": "winter_service=limited",
|
||||
"then": "#ffff00"
|
||||
},
|
||||
{
|
||||
"if": "winter_service=no",
|
||||
"then": "#ff0000"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"description": {
|
||||
"en": "A map showing roads and whether they're cleared in winter"
|
||||
},
|
||||
"overrideAll": {
|
||||
"tagRenderings+": [
|
||||
{
|
||||
"id": "winter_service",
|
||||
"question": {
|
||||
"en": "Is this road serviced (e.g. cleared of snow) in winter?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "winter_service=yes",
|
||||
"then": {
|
||||
"en": "This road is serviced in winter"
|
||||
},
|
||||
"icon": "snowflake:green"
|
||||
},
|
||||
{
|
||||
"if": "winter_service=limited",
|
||||
"then": {
|
||||
"en": "This road is serviced in winter, but only to a limited extent. This is often signposted as well."
|
||||
},
|
||||
"icon": "snowflake:yellow"
|
||||
},
|
||||
{
|
||||
"if": "winter_service=no",
|
||||
"then": {
|
||||
"en": "This road is not serviced in winter"
|
||||
},
|
||||
"icon": "snowflake:red"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"hideFromOverview": true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue