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.

133 lines
4.1 KiB

  1. type: overpass
  2. name:
  3. ast: Comunicaciones
  4. ca: Comunicacions
  5. cs: Komunikace
  6. de: Kommunikation
  7. el: Επικοινωνίες
  8. en: Communication
  9. es: Comunicación
  10. et: Kommunikatsioon
  11. fr: Communication
  12. gl: Comunicacións
  13. hu: Kommunikácó
  14. it: Comunicazione
  15. ja: 情報通信
  16. nb: Kommunikasjon
  17. nl: Communicatie
  18. oc: Communicacion
  19. pl: Komunikacja
  20. pt: Comunicação
  21. pt-br: Comunicação
  22. ro: Comunicatii
  23. ru: Услуги связи
  24. sr: Комуникација
  25. tr: İletişim
  26. uk: Телекомунікації
  27. query:
  28. 13: |-
  29. (
  30. nwr[amenity~'^(.*;|)(post_office|internet_cafe)(;.*|)$'];
  31. nwr[office~"^(.*;|)(telecommunication|it|newspaper|publisher|advertising_agency)(;.*|)$"];
  32. );
  33. 15: |-
  34. (
  35. nwr[amenity~'^(.*;|)(post_office|internet_cafe|post_box|parcel_locker|telephone)(;.*|)$'];
  36. nwr[office~"^(.*;|)(telecommunication|it|newspaper|publisher|advertising_agency)(;.*|)$"];
  37. nwr[vending~"^(|.*;)parcel_pickup(;.*|)$"];
  38. nwr[vending~"^(|.*;)parcel_mail_in(;.*|)$"];
  39. );
  40. feature:
  41. pre: |-
  42. {% if tags.vending %}
  43. {% set key = 'amenity' %}
  44. {% set value = 'parcel_locker' %}
  45. {% set deprecated = ['vending=' ~ tags.vending, 'https://wiki.openstreetmap.org/wiki/Proposed_features/amenity%3Dparcel_locker'] %}
  46. {% elseif tags.amenity %}
  47. {% set key = 'amenity' %}
  48. {% set value = tags.amenity %}
  49. {% else %}
  50. {% set key = 'office' %}
  51. {% set value = tags.office %}
  52. {% endif %}
  53. description: |-
  54. {% if key == 'office' %}
  55. {{ keyTrans('office') }} ({{ tagTransList('office', tags.office) }})
  56. {% else %}
  57. {{ tagTransList(key, value) }}
  58. {% endif %}
  59. body: |-
  60. {% if deprecated %}<div class='warning'>{{ repoTrans('deprecated', deprecated[0], deprecated[1])|raw }}</div>{% endif %}
  61. {% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}
  62. markerSign: |-
  63. {% set data = const[key ~ '=' ~ value] %}
  64. {% if data %}
  65. {{ data.sign|raw }}
  66. {% endif %}
  67. markerSymbol: '{{ markerPointer({"fillColor": (deprecated ? "red" : "#f2756a") })|raw }}'
  68. listMarkerSymbol: '{{ markerCircle({"fillColor": (deprecated ? "red" : "#f2756a")})|raw }}'
  69. info: |-
  70. <table>
  71. {% for kv, data in const %}
  72. {% if data.zoom <= map.zoom and not data.info_hide %}
  73. <tr>
  74. <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>
  75. <td>
  76. {% if kv|split('=')[0] == 'office' %}
  77. {{ keyTrans('office') }}
  78. ({{ tagTrans('office', kv|split('=')[1]) }})
  79. {% else %}
  80. {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}
  81. {% endif %}
  82. </td>
  83. </tr>
  84. {% endif %}
  85. {% endfor %}
  86. </table>
  87. const:
  88. amenity=post_office:
  89. sign: <img src='maki:post?size=15'>
  90. zoom: 13
  91. amenity=post_box:
  92. sign: <img src='maki:post?size=11'>
  93. zoom: 16
  94. amenity=internet_cafe:
  95. sign: <i class='fa fa-laptop' aria-hidden='true'></i>
  96. zoom: 13
  97. amenity=parcel_locker:
  98. sign: <i class='fas fa-box'></i>
  99. query: (nwr[vending~"^(|.*;)parcel_pickup(;.*|)$"];nwr[vending~"^(|.*;)parcel_mail_in(;.*|)$"];nwr[amenity=parcel_locker];)
  100. zoom: 16
  101. office=telecommunication:
  102. sign: <i class='fas fa-mobile-alt'></i>
  103. zoom: 13
  104. office=it:
  105. sign: <i class='fas fa-desktop'></i>
  106. zoom: 13
  107. office=newspaper:
  108. sign: <i class='fas fa-newspaper'></i>
  109. zoom: 13
  110. office=publisher:
  111. sign: <i class='fas fa-book'></i>
  112. zoom: 13
  113. office=advertising_agency:
  114. sign: <i class='fas fa-sign'></i>
  115. zoom: 13
  116. office=public_relations:
  117. sign: <i class='fas fa-sign'></i>
  118. zoom: 13
  119. office=audiovisual_production:
  120. sign: <i class='fas fa-film'></i>
  121. zoom: 13
  122. office=film_production:
  123. sign: <i class='fas fa-film'></i>
  124. zoom: 13
  125. amenity=telephone:
  126. sign: <img src='maki:telephone'>
  127. zoom: 16
  128. filter:
  129. type:
  130. name: '{{ trans("filter:type") }}'
  131. show_default: 'true'
  132. type: select
  133. values: '{% for k, v in const %}<option value="{{ k }}" query="{% if v.query %}{{ v.query }}{% else %}nwr[{{ k }}]{% endif %}" minzoom="{{ v.zoom }}">{{ tagTrans(k) }}</option>{% endfor %}'