Browse Source

water: improvements

- prioritise features
- map key: show entries dependend on map zoom
- map key: include ditch
fossil
parent
commit
444d6a50ae
  1. 24
      water.json

24
water.json

@ -41,6 +41,21 @@
"line", "line",
"{% endif %}" "{% endif %}"
], ],
"priority": [
"{% if tags.natural == 'divide' %}",
"0",
"{% elseif tags.natural == 'water' and tags.water in ['lake', 'lagoon', 'reservoir', 'canal'] %}",
"0",
"{% elseif tags.waterway == 'river' %}",
"1",
"{% elseif tags.waterway == 'stream' %}",
"3",
"{% elseif tags.waterway == 'ditch' %}",
"5",
"{% else %}",
"2",
"{% endif %}"
],
"style": { "style": {
"weight": [ "weight": [
"{% if tags.waterway == 'river' %}", "{% if tags.waterway == 'river' %}",
@ -77,16 +92,23 @@
" </tr>", " </tr>",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>",
" <td>{{ tagTrans('waterway', 'river') }}</td>",
" <td>{{ tagTrans('waterway', 'river') }},",
" {{ tagTrans('waterway', 'canal') }}</td>",
" </tr>", " </tr>",
"{% if map.zoom >= 13 %}",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>",
" <td>{{ tagTrans('waterway', 'stream') }}</td>", " <td>{{ tagTrans('waterway', 'stream') }}</td>",
" </tr>", " </tr>",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"waterway\": \"ditch\" }))|raw }}</td>",
" <td>{{ tagTrans('waterway', 'ditch') }}</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>",
" <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>", " <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>",
" </tr>", " </tr>",
"{% endif %}",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>",
" <td>{{ tagTrans('natural', 'divide') }}</td>", " <td>{{ tagTrans('natural', 'divide') }}</td>",

Loading…
Cancel
Save