mapcomplete/assets/layers/ski_piste/ski_piste.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

141 lines
3 KiB
JSON
Raw Normal View History

2024-01-30 19:41:26 +01:00
{
"id": "ski_piste",
"name": {
"en": "Ski and snowboard pistes",
"de": "Ski- und Snowboardpisten"
},
"description": {
"en": "Ski and snowboard pistes",
"de": "Ski- und Snowboardpisten"
},
"minzoom": 11,
"source": {
"osmTags": {
"and": [
{
"or": [
"piste:type=downhill",
"piste:type=connection"
]
},
"area!=yes"
]
}
},
"title": {
"render": {
"en": "Ski piste {name}",
"de": "Skipiste {name}"
}
},
2024-01-30 19:41:26 +01:00
"pointRendering": [
{
"location": [
"point"
],
"marker": [
{
"icon": "circle",
"color": "white"
}
]
}
],
"lineRendering": [
{
"width": "10",
"color": {
"mappings": [
{
"then": "green",
"if": "piste:difficulty=novice"
},
{
"if": "piste:difficulty=easy",
"then": "blue"
},
{
"if": "piste:difficulty=intermediate",
"then": "red"
},
{
"if": "piste:difficulty=advanced",
"then": "black"
},
{
"if": "piste:difficulty=expert",
"then": "orange"
},
{
"if": "piste:difficulty=",
"then": "gray"
}
]
},
"imageAlongWay": "./assets/png/oneway.png"
}
],
2024-01-30 19:41:26 +01:00
"tagRenderings": [
"images",
{
"question": {
2024-02-20 13:33:38 +01:00
"en": "What is the difficulty of this piste?",
"de": "Was ist der Schwierigkeitsgrad der Piste?"
2024-01-30 19:41:26 +01:00
},
"id": "piste_difficulty",
"condition": "piste:type!=connection",
"mappings": [
{
"if": "piste:difficulty=novice",
"then": {
2024-02-20 13:33:38 +01:00
"en": "Novice (green)",
"de": "Anfänger (grün)"
2024-01-30 19:41:26 +01:00
}
},
{
"if": "piste:difficulty=easy",
"then": {
2024-02-20 13:33:38 +01:00
"en": "Easy (blue)",
"de": "Einfach (blau)"
2024-01-30 19:41:26 +01:00
}
},
{
"if": "piste:difficulty=intermediate",
"then": {
2024-02-20 13:33:38 +01:00
"en": "Intermediate (red)",
"de": "Mittel (rot)"
2024-01-30 19:41:26 +01:00
}
},
{
"if": "piste:difficulty=advanced",
"then": {
2024-02-20 13:33:38 +01:00
"en": "Advanced (black)",
"de": "Fortgeschritten (schwarz)"
2024-01-30 19:41:26 +01:00
}
},
{
"if": "piste:difficulty=expert",
"then": {
2024-02-20 13:33:38 +01:00
"en": "Expert (orange/double black)",
"de": "Experte (orange/doppel schwarz)"
2024-01-30 19:41:26 +01:00
}
},
{
"if": "piste:difficulty=freeride",
"then": {
2024-02-20 13:33:38 +01:00
"en": "Freeride",
"de": "Freeride"
2024-01-30 19:41:26 +01:00
}
}
]
},
{
"id": "length",
"render": {
2024-02-20 13:33:38 +01:00
"en": "This part of the ski piste is {_length:km} kilometer long",
"de": "Dieser Teil der Skipiste hat eine Länge von {_length:km} km"
2024-01-30 19:41:26 +01:00
}
}
]
2024-01-30 19:41:26 +01:00
}