MapComplete/assets/themes/winter_service/winter_service.json

132 lines
No EOL
3 KiB
JSON

{
"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
}