Browse Source

cycleway_width: set unknownColor in const, add to info

master
parent
commit
d270578f90
  1. 24
      cycleway_width.yaml

24
cycleway_width.yaml

@ -56,7 +56,7 @@ feature:
{% if width %} {% if width %}
{{ colorInterpolate(const.colorScheme, (width - minWidth) / (optWidth - minWidth)) }} {{ colorInterpolate(const.colorScheme, (width - minWidth) / (optWidth - minWidth)) }}
{% else %}black
{% else %}{{ const.unknownColor }}
{% endif %} {% endif %}
lineCap: | lineCap: |
{{ tags.oneway in ['yes', 1, -1] ? 'butt' : 'round' }} {{ tags.oneway in ['yes', 1, -1] ? 'butt' : 'round' }}
@ -81,7 +81,7 @@ feature:
pattern-path-color: | pattern-path-color: |
{% if width %} {% if width %}
{{ colorInterpolate(const.colorScheme, (width - minWidth) / (optWidth - minWidth)) }} {{ colorInterpolate(const.colorScheme, (width - minWidth) / (optWidth - minWidth)) }}
{% else %}black
{% else %}{{ const.unknownColor }}
{% endif %} {% endif %}
pattern-path-fillOpacity: 1 pattern-path-fillOpacity: 1
style:left: style:left:
@ -94,7 +94,7 @@ feature:
{% if leftWidth %} {% if leftWidth %}
{{ colorInterpolate(const.colorScheme, (leftWidth - minWidth) / (optWidth - minWidth)) }} {{ colorInterpolate(const.colorScheme, (leftWidth - minWidth) / (optWidth - minWidth)) }}
{% else %}black
{% else %}{{ const.unknownColor }}
{% endif %} {% endif %}
lineCap: | lineCap: |
{{ leftOneway ? 'butt' : 'round' }} {{ leftOneway ? 'butt' : 'round' }}
@ -118,7 +118,7 @@ feature:
pattern-path-color: | pattern-path-color: |
{% if leftWidth %} {% if leftWidth %}
{{ colorInterpolate(const.colorScheme, (leftWidth - minWidth) / (optWidth - minWidth)) }} {{ colorInterpolate(const.colorScheme, (leftWidth - minWidth) / (optWidth - minWidth)) }}
{% else %}black
{% else %}{{ const.unknownColor }}
{% endif %} {% endif %}
pattern-path-fillOpacity: 1 pattern-path-fillOpacity: 1
style:right: style:right:
@ -131,7 +131,7 @@ feature:
{% if rightWidth %} {% if rightWidth %}
{{ colorInterpolate(const.colorScheme, (rightWidth - minWidth) / (optWidth - minWidth)) }} {{ colorInterpolate(const.colorScheme, (rightWidth - minWidth) / (optWidth - minWidth)) }}
{% else %}black
{% else %}{{ const.unknownColor }}
{% endif %} {% endif %}
lineCap: | lineCap: |
{{ rightOneway ? 'butt' : 'round' }} {{ rightOneway ? 'butt' : 'round' }}
@ -155,7 +155,7 @@ feature:
pattern-path-color: | pattern-path-color: |
{% if rightWidth %} {% if rightWidth %}
{{ colorInterpolate(const.colorScheme, (rightWidth - minWidth) / (optWidth - minWidth)) }} {{ colorInterpolate(const.colorScheme, (rightWidth - minWidth) / (optWidth - minWidth)) }}
{% else %}black
{% else %}{{ const.unknownColor }}
{% endif %} {% endif %}
pattern-path-fillOpacity: 1 pattern-path-fillOpacity: 1
markerSymbol: false markerSymbol: false
@ -223,6 +223,17 @@ info: |
<th>{{ keyTrans('oneway') }}={{ tagTrans('oneway', 'yes') }}</th> <th>{{ keyTrans('oneway') }}={{ tagTrans('oneway', 'yes') }}</th>
<th>{{ keyTrans('oneway') }}={{ tagTrans('oneway', 'no') }}</th> <th>{{ keyTrans('oneway') }}={{ tagTrans('oneway', 'no') }}</th>
</tr> </tr>
<tr>
<td>
{{ markerLine({ width: 4, color: const.unknownColor }) }}
</td>
<td>
{{ trans('unknown') }}
</td>
<td>
{{ trans('unknown') }}
</td>
</tr>
{% for v in range(0, 1, 0.25) %} {% for v in range(0, 1, 0.25) %}
<tr> <tr>
<td> <td>
@ -245,3 +256,4 @@ const:
minWidthOneway: 0.75 minWidthOneway: 0.75
optWidthOneway: 3 optWidthOneway: 3
colorScheme: ['#ff0000', '#ff00ff', '#0000ff'] colorScheme: ['#ff0000', '#ff00ff', '#0000ff']
unknownColor: black
Loading…
Cancel
Save