diff --git a/kerbs.yaml b/kerbs.yaml index 4ae0512..145431e 100644 --- a/kerbs.yaml +++ b/kerbs.yaml @@ -21,7 +21,7 @@ feature: {% if type == 'way' %} line {% else %} - {{ markerCircle({ radius: 5, width: 2, fillOpacity: 1, fillColor: const.kerb[kerb], color: 'black' }) }} + {{ 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 %} @@ -34,22 +34,27 @@ feature: {% endif %} style: color: | - {{ const.kerb[kerb] }} + {{ const.kerb[kerb][config.color_scheme|default('color1')] }} fill: | {{ type == 'way' ? false : true }} radius: 4 fillOpacity: 1 - width: 2 + width: | + {{ config.thickness|default(2) }} style:marker: color: | - {{ const.kerb[kerb] }} - offset: 2 - width: 2 + {{ const.kerb[kerb][config.color_scheme|default('color1')] }} + offset: | + {{ config.thickness|default(2) }} + width: | + {{ config.thickness|default(2) }} fill: false - dashArray: '2,9' + dashArray: | + {{ config.thickness|default(2) }},{{ config.thickness|default(2) * 4 }} + lineCap: butt style:node: fillColor: | - {{ const.kerb[kerb] }} + {{ const.kerb[kerb][config.color_scheme|default('color1')] }} fill: true radius: 6 fillOpacity: 1 @@ -58,21 +63,54 @@ feature: info: | {{ tagTrans('barrier', 'kerb') }}:
- {{ markerLine({ styles: 'default,marker', style: { width: 2, color: color }, 'style:marker': { width: 2, offset: 2, color: color, dashArray: '2,9'} } ) }} - {{ markerCircle({ radius: 4, width: 1, fillOpacity: 1, fillColor: color, color: 'black' }) }} + {{ 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' }) }} | {{ v == 'unknown' ? trans('unknown') : tagTrans('kerb', v) }} |