From eb1c12517a6f699503af64d2e4a6ffa9db57b5d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 29 Oct 2020 20:45:27 +0100 Subject: [PATCH] pt --- pt.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pt.json b/pt.json index 7992d43..90893a9 100644 --- a/pt.json +++ b/pt.json @@ -183,7 +183,13 @@ "listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}", "listStopsExclude": "{{ not isStop or stopCount == 0 }}", "listStopsTitle": "{% if tags %}{{ tags.name|default(stopName)|default(trans('unknown')) }}{% else %}
  • {{ trans('loading') }}
  • {% endif %}", - "listStopsDescription": "{{ refs|join(' · ') }}", + "listStopsDetails": "{{ refs|join(' · ') }}", + "listStopsDescription": [ + "{% set stopTypes = [] %}", + "{% if tags.railway in ['tram_stop'] %}{% set stopTypes = stopTypes|merge([ tagTrans('railway', tags.railway) ]) %}{% endif %}", + "{% if tags.highway in ['bus_stop'] %}{% set stopTypes = stopTypes|merge([ tagTrans('highway', tags.highway) ]) %}{% endif %}", + "{{ enumerate(stopTypes) }}" + ], "listRoutesExclude": "true", "style:stop": { "width": "4",