Browse Source

New category water

fossil
parent
commit
0269cf0896
  1. 3
      places_geo.json
  2. 43
      water.json

3
places_geo.json

@ -24,6 +24,9 @@
{
"id": "natural"
},
{
"id": "water"
},
{
"id": "administrative"
},

43
water.json

@ -0,0 +1,43 @@
{
"type": "overpass",
"name": {
"en": "Waterbodies",
"de": "Gewässer"
},
"query": {
"12": [
"(",
"node[natural~\"^(water|divide)$\"];",
"way[natural~\"^(water|divide)$\"];",
"relation[type=multipolygon][natural=water];",
"way[waterway];",
")"
]
},
"feature": {
"markerSign": null,
"style": {
"weight": [
"{% if tags.waterway == 'stream' %}",
"1.5",
"{% else %}",
"3",
"{% endif %}"
],
"color": [
"{% if tags.natural == 'divide' %}",
"#ff0000",
"{% elseif tags.waterway in [ 'dam', 'weir' ] %}",
"#000000",
"{% else %}",
"#3388ff",
"{% endif %}"
],
"text": [
"{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'wadi', 'drystream' ] %}",
"{{ tags.name }} ➔ ",
"{% endif %}"
]
}
}
}
Loading…
Cancel
Save