From add73ee88d35de99424b2a00271ee08e2ec0edff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Wed, 25 Jul 2018 21:05:46 +0200 Subject: [PATCH] pt: hide platforms, marker for stops in list --- pt.json | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pt.json b/pt.json index d2021f4c..0843303d 100644 --- a/pt.json +++ b/pt.json @@ -109,13 +109,15 @@ " {% endif %}", "{% endfor %}", "", - "{% set refs = refs|unique|natsort({ insensitive: true }) %}" + "{% set refs = refs|unique|natsort({ insensitive: true }) %}", + "{% set color = const[aRoute.tags.route].color %}" ], - "listStopsMarkerSymbol": "{{ markerCircle({})|raw }}", - "styles": "{% if isStop %}stop{% elseif isWay %}way{% else %}platform{% endif %}", + "listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}", + "listStopsMarkerSign": " ", + "styles": "{% if isStop %}stop{% elseif isWay %}way{% else %}{% endif %}", "style:way": { "color": [ - "{{ const[aRoute.tags.route].color|default('#ff0000') }}" + "{{ color|default('#ff0000') }}" ], "width": "3", "text": "{{ refs|join(' ') }} ", @@ -125,15 +127,11 @@ }, "style:stop": { "color": [ - "{{ const[aRoute.tags.route].color|default('#ff0000') }}" + "{{ color|default('#ff0000') }}" ], "width": "5", "radius": 3 }, - "style:platform": { - "color": "#7f7f7f", - "width": "1" - }, "title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name|default(stopName)|default(id) }}{% endif %}", "listStopsTitle": "{{ tags.name|default(stopName)|default(id) }}", "listStopsDescription": "{{ refs|join(' ') }}",