Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
1.3 KiB

8 years ago
  1. {
  2. "type": "overpass",
  3. "query": {
  4. "11": "(node[power~'^(generator)$'];way[power~'^(generator)$'];relation[power~'^(generator)$'];)",
  5. "13": "(node[power~'^(generator|station)$'];way[power~'^(generator|station)$'];relation[power~'^(generator|station)$'];)",
  6. "16": "(node[power~'^(generator|station|sub_station|transformer)$'];way[power~'^(generator|station|sub_station|transformer)$'];relation[power~'^(generator|station|sub_station|transformer)$'];)"
  7. },
  8. "minZoom": 11,
  9. "feature": {
  10. "markerSign": "",
  11. "body": "{{ tagTrans('power', tags.power) }}\n{% set x='generator:source' %}{% if tags[x] %}<br/>{{ tagTrans('generator:source') }}: {{ tagTransList('generator:source', tags[x]) }}{% endif %}\n{% set x='generator:method' %}{% if tags[x] %}<br/>{{ tagTrans('generator:method') }}: {{ tagTransList('generator:method', tags[x]) }}{% endif %}\n{% set x='generator:type' %}{% if tags[x] %}<br/>{{ tagTransList('generator:type') }}: {{ tagTrans('generator:type', tags[x]) }}{% endif %}",
  12. "description": "{{ tagTrans('power', tags.power) }}{% set x='generator:source' %}{% if tags[x] %}, {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
  13. "priority": "{% if tags.power == 'generator' %}0{% elseif tags.power == 'station' %}1{% else %}2{% endif %}"
  14. }
  15. }