Browse Source

car_maxspeed: improve map key: show general values only once

heritage
parent
commit
aaa891d4b4
  1. 24
      car_maxspeed.json

24
car_maxspeed.json

@ -141,7 +141,6 @@
"offsetColorSpeed": 10
},
"info": [
"<div style='display: inline-block; width: 49%;'>",
"<table>",
" <tr>",
" <td>{{ markerLine(evaluate({}))|raw }}</td>",
@ -151,6 +150,13 @@
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"walk\" }))|raw }}</td>",
" <td colspan>{{ tagTrans('maxspeed', 'walk') }}</td>",
" </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) %}",
" <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": i }))|raw }}</td>",
@ -161,22 +167,10 @@
" <td>{{ markerLine(evaluate({ \"maxspeed\": 150 }))|raw }}</td>",
" <td>≥150km/h</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}</td>",
" <td>{{ tagTrans('maxspeed', 'none') }}</td>",
" </tr>",
"</table>",
"</div>",
"<div style='display: inline-block; width: 49%;'>",
"<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) %}",
" <tr>",
" <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>≥95mph</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"maxspeed\": \"none\" }))|raw }}</td>",
" <td>{{ tagTrans('maxspeed', 'none') }}</td>",
" </tr>",
"</table>",
"</div>"
]

Loading…
Cancel
Save