Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
674 B

  1. query: |
  2. (
  3. way[highway=cycleway];
  4. way["cycleway:width"];
  5. )
  6. feature:
  7. style:
  8. width: 4
  9. color: |
  10. {% set optWidth = tags.oneway in ['yes', 1, -1] ? 3 : 5 %}
  11. {% if attribute(tags, 'cycleway:width') %}
  12. {% set width = attribute(tags, 'cycleway:width') %}
  13. {{ colorInterpolate(['#ff0000', '#0000ff'], width / optWidth) }}
  14. {% else %}black
  15. {% endif %}
  16. markerSymbol: false
  17. listMarkerSymbol: line
  18. description: |
  19. {{ tagTrans('highway', tags.highway) }}
  20. details: |
  21. {{ attribute(tags, 'cycleway:width') }}
  22. body: |
  23. <ul>
  24. <li>{{ keyTrans('cycleway:width') }}: {{ attribute(tags, 'cycleway:width') }}</li>
  25. </ul>