Browse Source

water: improvements

- show description
- rule for waterway=ditch, riverbank multipolygons
- priority objects from zoom=10
heritage
parent
commit
ec2352b2c8
  1. 28
      water.json

28
water.json

@ -5,16 +5,34 @@
"de": "Gewässer" "de": "Gewässer"
}, },
"query": { "query": {
"12": [
"10": [
"(",
"way[waterway~\"^(river|canal)$\"];",
"way[natural~\"^(divide)$\"];",
"way[natural=water][water~\"^(lake|lagoon|reservoir|canal)$\"];",
"relation[natural=water][type=multipolygon][water~\"^(lake|lagoon|reservoir|canal)$\"];",
")"
],
"13": [
"(", "(",
"node[natural~\"^(water|divide)$\"];", "node[natural~\"^(water|divide)$\"];",
"way[natural~\"^(water|divide)$\"];", "way[natural~\"^(water|divide)$\"];",
"relation[type=multipolygon][natural=water];", "relation[type=multipolygon][natural=water];",
"relation[type=multipolygon][waterway=riverbank];",
"way[waterway];", "way[waterway];",
")" ")"
] ]
}, },
"feature": { "feature": {
"description": [
"{% if tags.waterway %}",
"{{ tagTrans('waterway', tags.waterway) }}",
"{% elseif tags.water %}",
"{{ tagTrans('water', tags.water) }}",
"{% elseif tags.natural %}",
"{{ tagTrans('natural', tags.natural) }}",
"{% endif %}"
],
"markerSign": null, "markerSign": null,
"listMarkerSymbol": [ "listMarkerSymbol": [
"{% if tags.natural == 'water' %}", "{% if tags.natural == 'water' %}",
@ -25,8 +43,12 @@
], ],
"style": { "style": {
"weight": [ "weight": [
"{% if tags.waterway == 'stream' %}",
"1.5",
"{% if tags.waterway == 'river' %}",
"4",
"{% elseif tags.waterway == 'stream' %}",
"2",
"{% elseif tags.waterway == 'ditch' %}",
"1",
"{% else %}", "{% else %}",
"3", "3",
"{% endif %}" "{% endif %}"

Loading…
Cancel
Save