From aaa891d4b4728acdf03e0f8c35974cfde3095d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 28 May 2020 22:21:33 +0200 Subject: [PATCH] car_maxspeed: improve map key: show general values only once --- car_maxspeed.json | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/car_maxspeed.json b/car_maxspeed.json index b19606e4..b5d81022 100644 --- a/car_maxspeed.json +++ b/car_maxspeed.json @@ -141,7 +141,6 @@ "offsetColorSpeed": 10 }, "info": [ - "
", "", " ", " ", @@ -151,6 +150,13 @@ " ", " ", " ", + " ", + " ", + " ", + " ", + "
{{ markerLine(evaluate({}))|raw }}{{ markerLine(evaluate({ \"maxspeed\": \"walk\" }))|raw }}{{ tagTrans('maxspeed', 'walk') }}
{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}{{ tagTrans('maxspeed', 'none') }}
", + "
", + "", "{% for i in range(10, 140, 20) %}", " ", " ", @@ -161,22 +167,10 @@ " ", " ", " ", - " ", - " ", - " ", - " ", "
{{ markerLine(evaluate({ \"maxspeed\": i }))|raw }}{{ markerLine(evaluate({ \"maxspeed\": 150 }))|raw }}≥150km/h
{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}{{ tagTrans('maxspeed', 'none') }}
", "
", "
", "", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", "{% for i in range(10, 60, 10) %}", " ", " ", @@ -191,10 +185,6 @@ " ", " ", " ", - " ", - " ", - " ", - " ", "
{{ markerLine(evaluate({}))|raw }}{{ trans('unknown') }}
{{ markerLine(evaluate({ \"maxspeed\": \"walk\" }))|raw }}{{ tagTrans('maxspeed', 'walk') }}
{{ markerLine(evaluate({ \"maxspeed\": (i * 1.60934)|round }))|raw }}{{ markerLine(evaluate({ \"maxspeed\": (95 * 1.60934)|round }))|raw }}≥95mph
{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}{{ tagTrans('maxspeed', 'none') }}
", "
" ]