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.

94 lines
2.8 KiB

  1. query:
  2. 14: (way[kerb];way[barrier=kerb];node[kerb];node[barrier=kerb];)
  3. feature:
  4. pre: |
  5. {% set kerb = 'unknown' %}
  6. {% if const.kerb[tags.kerb] %}
  7. {% set kerb = tags.kerb %}
  8. {% endif %}
  9. description: |
  10. {{ tagTrans('barrier', 'kerb') }}
  11. body: |
  12. <ul>
  13. <li>{{ keyTrans('kerb') }}: {{ tags.kerb ? tagTrans('kerb', tags.kerb) : trans('unknown') }}</li>
  14. <li>{{ keyTrans('wheelchair') }}: {{ tags.wheelchair ? tagTrans('wheelchair', tags.wheelchair) : trans('unknown') }}</li>
  15. <li>{{ keyTrans('tactile_paving') }}: {{ tags.tactile_paving ? tagTrans('tactile_paving', tags.tactile_paving) : trans('unknown') }}</li>
  16. <li>{{ keyTrans('height') }}: {{ tags.height ? tags.height|formatUnit('distance') : trans('unknown') }}</li>
  17. </ul>
  18. markerSymbol:
  19. listMarkerSymbol: |
  20. {% if type == 'way' %}
  21. line
  22. {% else %}
  23. {{ markerCircle({ radius: 5, width: 2, fillOpacity: 1, fillColor: const.kerb[kerb], color: 'black' }) }}
  24. {% endif %}
  25. details: |
  26. {% if tags.kerb and tags.kerb != 'yes' %}{{ tagTrans('kerb', tags.kerb) }}{% endif %}
  27. {% if tags.height %}({{ tags.height|formatUnit('distance') }}){% endif %}
  28. styles: |
  29. {% if type == 'way' %}
  30. default,marker
  31. {% else %}
  32. node
  33. {% endif %}
  34. style:
  35. color: |
  36. {{ const.kerb[kerb] }}
  37. fill: |
  38. {{ type == 'way' ? false : true }}
  39. radius: 4
  40. fillOpacity: 1
  41. width: |
  42. {{ config.thickness|default(2) }}
  43. style:marker:
  44. color: |
  45. {{ const.kerb[kerb] }}
  46. offset: |
  47. {{ config.thickness|default(2) }}
  48. width: |
  49. {{ config.thickness|default(2) }}
  50. fill: false
  51. dashArray: |
  52. {{ config.thickness|default(2) }},{{ config.thickness|default(2) * 4 }}
  53. lineCap: butt
  54. style:node:
  55. fillColor: |
  56. {{ const.kerb[kerb] }}
  57. fill: true
  58. radius: 6
  59. fillOpacity: 1
  60. width: 1
  61. color: black
  62. info: |
  63. {{ tagTrans('barrier', 'kerb') }}:
  64. <table>
  65. {% for v, color in const.kerb %}
  66. <tr>
  67. <td>
  68. {{ markerLine({ styles: 'default,marker', style: { width: 2, color: color }, 'style:marker': { width: 2, offset: 2, color: color, dashArray: '2,9'} } ) }}
  69. {{ markerCircle({ radius: 4, width: 1, fillOpacity: 1, fillColor: color, color: 'black' }) }}
  70. </td>
  71. <td>{{ v == 'unknown' ? trans('unknown') : tagTrans('kerb', v) }}</td>
  72. </tr>
  73. {% endfor %}
  74. </table>
  75. config:
  76. thickness:
  77. name: "{{ trans('thickness') }}"
  78. type: select
  79. default: 2
  80. placeholder: false
  81. values:
  82. 1: "{{ trans('thickness:thin') }}"
  83. 2: "{{ trans('thickness:normal') }}"
  84. 3: "{{ trans('thickness:tick') }}"
  85. 5: "{{ trans('thickness:very_thick') }}"
  86. const:
  87. kerb:
  88. flush: '#00af00'
  89. lowered: '#007f7f'
  90. no: '#000000'
  91. raised: '#af0000'
  92. rolled: '#af7f00'
  93. unknown: '#7f7f7f'