Browse Source

car_maxspeed: improve map key: show general values only once

pedestrian
parent
commit
e1be4e2e08
  1. 24
      car_maxspeed.json

24
car_maxspeed.json

@ -141,7 +141,6 @@
"offsetColorSpeed": 10 "offsetColorSpeed": 10
}, },
"info": [ "info": [
"<div style='display: inline-block; width: 49%;'>",
"<table>", "<table>",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({}))|raw }}</td>", " <td>{{ markerLine(evaluate({}))|raw }}</td>",
@ -151,6 +150,13 @@
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"walk\" }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"maxspeed\": \"walk\" }))|raw }}</td>",
" <td colspan>{{ tagTrans('maxspeed', 'walk') }}</td>", " <td colspan>{{ tagTrans('maxspeed', 'walk') }}</td>",
" </tr>", " </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}</td>",
" <td>{{ tagTrans('maxspeed', 'none') }}</td>",
" </tr>",
"</table>",
"<div style='display: inline-block; width: 49%;'>",
"<table>",
"{% for i in range(10, 140, 20) %}", "{% for i in range(10, 140, 20) %}",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": i }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"maxspeed\": i }))|raw }}</td>",
@ -161,22 +167,10 @@
" <td>{{ markerLine(evaluate({ \"maxspeed\": 150 }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"maxspeed\": 150 }))|raw }}</td>",
" <td>≥150km/h</td>", " <td>≥150km/h</td>",
" </tr>", " </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}</td>",
" <td>{{ tagTrans('maxspeed', 'none') }}</td>",
" </tr>",
"</table>", "</table>",
"</div>", "</div>",
"<div style='display: inline-block; width: 49%;'>", "<div style='display: inline-block; width: 49%;'>",
"<table>", "<table>",
" <tr>",
" <td>{{ markerLine(evaluate({}))|raw }}</td>",
" <td colspan>{{ trans('unknown') }}</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"walk\" }))|raw }}</td>",
" <td colspan>{{ tagTrans('maxspeed', 'walk') }}</td>",
" </tr>",
"{% for i in range(10, 60, 10) %}", "{% for i in range(10, 60, 10) %}",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": (i * 1.60934)|round }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"maxspeed\": (i * 1.60934)|round }))|raw }}</td>",
@ -191,10 +185,6 @@
" <td>{{ markerLine(evaluate({ \"maxspeed\": (95 * 1.60934)|round }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"maxspeed\": (95 * 1.60934)|round }))|raw }}</td>",
" <td>≥95mph</td>", " <td>≥95mph</td>",
" </tr>", " </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}</td>",
" <td>{{ tagTrans('maxspeed', 'none') }}</td>",
" </tr>",
"</table>", "</table>",
"</div>" "</div>"
] ]

Loading…
Cancel
Save