From e1f812d6bd8bd982af9552fa32a888cb9cad6cd7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sun, 1 Jan 2023 09:03:03 +0100
Subject: [PATCH] kerbs: make thickness of lines configurable

---
 kerbs.yaml | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/kerbs.yaml b/kerbs.yaml
index 4ae0512..2e28833 100644
--- a/kerbs.yaml
+++ b/kerbs.yaml
@@ -39,14 +39,19 @@ feature:
       {{ 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
+    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] }}
@@ -68,6 +73,17 @@ info: |
     </tr>
   {% endfor %}
   </table>
+config:
+  thickness:
+    name: "{{ trans('thickness') }}"
+    type: select
+    default: 2
+    placeholder: false
+    values:
+      1: "{{ trans('thickness:thin') }}"
+      2: "{{ trans('thickness:normal') }}"
+      3: "{{ trans('thickness:tick') }}"
+      5: "{{ trans('thickness:very_thick') }}"
 const:
   kerb:
     flush: '#00af00'