{
  "id": "ski_piste",
  "name": {
    "en": "Ski and snowboard pistes",
    "de": "Ski- und Snowboardpisten"
  },
  "description": {
    "en": "Ski and snowboard pistes",
    "de": "Ski- und Snowboardpisten"
  },
  "source": {
    "osmTags": {
      "and": [
        {
          "or": [
            "piste:type=downhill",
            "piste:type=connection"
          ]
        },
        "area!=yes"
      ]
    }
  },
  "minzoom": 11,
  "title": {
    "render": {
      "en": "Ski piste {name}",
      "de": "Skipiste {name}"
    }
  },
  "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"
    }
  ],
  "tagRenderings": [
    "images",
    {
      "question": {
        "en": "What is the difficulty of this piste?",
        "de": "Was ist der Schwierigkeitsgrad der Piste?"
      },
      "id": "piste_difficulty",
      "condition": "piste:type!=connection",
      "mappings": [
        {
          "if": "piste:difficulty=novice",
          "then": {
            "en": "Novice (green)",
            "de": "Anfänger (grün)"
          }
        },
        {
          "if": "piste:difficulty=easy",
          "then": {
            "en": "Easy (blue)",
            "de": "Einfach (blau)"
          }
        },
        {
          "if": "piste:difficulty=intermediate",
          "then": {
            "en": "Intermediate (red)",
            "de": "Mittel (rot)"
          }
        },
        {
          "if": "piste:difficulty=advanced",
          "then": {
            "en": "Advanced (black)",
            "de": "Fortgeschritten (schwarz)"
          }
        },
        {
          "if": "piste:difficulty=expert",
          "then": {
            "en": "Expert (orange/double black)",
            "de": "Experte (orange/doppel schwarz)"
          }
        },
        {
          "if": "piste:difficulty=freeride",
          "then": {
            "en": "Freeride",
            "de": "Freeride"
          }
        }
      ]
    },
    {
      "id": "length",
      "render": {
        "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"
      }
    }
  ]
}