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.
116 lines
3.5 KiB
116 lines
3.5 KiB
query:
|
|
14: (way[kerb];way[barrier=kerb];node[kerb];node[barrier=kerb];)
|
|
feature:
|
|
pre: |
|
|
{% set kerb = 'unknown' %}
|
|
{% if const.kerb[tags.kerb] %}
|
|
{% set kerb = tags.kerb %}
|
|
{% endif %}
|
|
|
|
description: |
|
|
{{ tagTrans('barrier', 'kerb') }}
|
|
body: |
|
|
<ul>
|
|
<li>{{ keyTrans('kerb') }}: {{ tags.kerb ? tagTrans('kerb', tags.kerb) : trans('unknown') }}</li>
|
|
<li>{{ keyTrans('wheelchair') }}: {{ tags.wheelchair ? tagTrans('wheelchair', tags.wheelchair) : trans('unknown') }}</li>
|
|
<li>{{ keyTrans('tactile_paving') }}: {{ tags.tactile_paving ? tagTrans('tactile_paving', tags.tactile_paving) : trans('unknown') }}</li>
|
|
<li>{{ keyTrans('height') }}: {{ tags.height ? tags.height|formatUnit('distance') : trans('unknown') }}</li>
|
|
</ul>
|
|
markerSymbol:
|
|
listMarkerSymbol: |
|
|
{% if type == 'way' %}
|
|
line
|
|
{% else %}
|
|
{{ markerCircle({ radius: 5, width: 2, fillOpacity: 1, fillColor: const.kerb[kerb][config.color_scheme|default('color1')], color: 'black' }) }}
|
|
{% endif %}
|
|
details: |
|
|
{% if tags.kerb and tags.kerb != 'yes' %}{{ tagTrans('kerb', tags.kerb) }}{% endif %}
|
|
{% if tags.height %}({{ tags.height|formatUnit('distance') }}){% endif %}
|
|
styles: |
|
|
{% if type == 'way' %}
|
|
default,marker
|
|
{% else %}
|
|
node
|
|
{% endif %}
|
|
style:
|
|
color: |
|
|
{{ const.kerb[kerb][config.color_scheme|default('color1')] }}
|
|
fill: |
|
|
{{ type == 'way' ? false : true }}
|
|
radius: 4
|
|
fillOpacity: 1
|
|
width: |
|
|
{{ config.thickness|default(2) }}
|
|
style:marker:
|
|
color: |
|
|
{{ const.kerb[kerb][config.color_scheme|default('color1')] }}
|
|
offset: |
|
|
{{ config.thickness|default(2) }}
|
|
width: |
|
|
{{ config.thickness|default(2) }}
|
|
fill: false
|
|
dashArray: |
|
|
{{ config.thickness|default(2) }},{{ config.thickness|default(2) * 4 }}
|
|
lineCap: butt
|
|
style:node:
|
|
fillColor: |
|
|
{{ const.kerb[kerb][config.color_scheme|default('color1')] }}
|
|
fill: true
|
|
radius: 6
|
|
fillOpacity: 1
|
|
width: 1
|
|
color: black
|
|
info: |
|
|
{{ tagTrans('barrier', 'kerb') }}:
|
|
<table>
|
|
{% for v, def in const.kerb %}
|
|
<tr>
|
|
<td>
|
|
{{ markerLine({ styles: 'default,marker', style: { width: 2, color: def[config.color_scheme|default('color1')] }, 'style:marker': { width: 2, offset: 2, color: def[config.color_scheme|default('color1')], dashArray: '2,9'} } ) }}
|
|
{{ markerCircle({ radius: 4, width: 1, fillOpacity: 1, fillColor: def[config.color_scheme|default('color1')], color: 'black' }) }}
|
|
</td>
|
|
<td>{{ v == 'unknown' ? trans('unknown') : tagTrans('kerb', v) }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
config:
|
|
thickness:
|
|
name: "{{ trans('thickness') }}"
|
|
type: select
|
|
default: 2
|
|
placeholder: false
|
|
show_default: true
|
|
values:
|
|
1: "{{ trans('thickness:thin') }}"
|
|
2: "{{ trans('thickness:normal') }}"
|
|
3: "{{ trans('thickness:thick') }}"
|
|
5: "{{ trans('thickness:very_thick') }}"
|
|
color_scheme:
|
|
name: "{{ trans('color_scheme') }}"
|
|
type: select
|
|
default: color1
|
|
placeholder: false
|
|
show_default: true
|
|
values:
|
|
color1: "1"
|
|
color2: "2"
|
|
const:
|
|
kerb:
|
|
flush:
|
|
color1: '#00af00'
|
|
color2: '#ff007f'
|
|
lowered:
|
|
color1: '#007f7f'
|
|
color2: '#00ffff'
|
|
'no':
|
|
color1: '#000000'
|
|
color2: '#ff0000'
|
|
raised:
|
|
color1: '#af0000'
|
|
color2: '#7f00ff'
|
|
rolled:
|
|
color1: '#af7f00'
|
|
color2: '#00af00'
|
|
unknown:
|
|
color1: '#7f7f7f'
|
|
color2: '#0000ff'
|