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.

141 lines
4.6 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. <ul>
  62. {% if tags.brand %}<li>{{ keyTrans('brand') }}: {{ localizedTag(tags, 'brand') }}</li>{% endif %}
  63. {% if tags.operator %}<li>{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}</li>{% endif %}
  64. {% if (key == 'amenity' and value == 'parcel_locker') or tags.parcel_pickup or tags.parcel_mail_in %}
  65. <li>{{ keyTrans('parcel_pickup') }}: {{ tags.parcel_pickup ? tagTrans('parcel_pickup', tags.parcel_pickup) : trans('unknown') }}</li>
  66. <li>{{ keyTrans('parcel_mail_in') }}: {{ tags.parcel_mail_in ? tagTrans('parcel_mail_in', tags.parcel_mail_in) : trans('unknown') }}</li>
  67. {% endif %}
  68. </ul>
  69. markerSign: |-
  70. {% set data = const[key ~ '=' ~ value] %}
  71. {% if data %}
  72. {{ data.sign|raw }}
  73. {% endif %}
  74. markerSymbol: '{{ markerPointer({"fillColor": (deprecated ? "red" : "#f2756a") })|raw }}'
  75. listMarkerSymbol: '{{ markerCircle({"fillColor": (deprecated ? "red" : "#f2756a")})|raw }}'
  76. info: |-
  77. <table>
  78. {% for kv, data in const %}
  79. {% if data.zoom <= map.zoom and not data.info_hide %}
  80. <tr>
  81. <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>
  82. <td>
  83. {% if kv|split('=')[0] == 'office' %}
  84. {{ keyTrans('office') }}
  85. ({{ tagTrans('office', kv|split('=')[1]) }})
  86. {% else %}
  87. {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}
  88. {% endif %}
  89. </td>
  90. </tr>
  91. {% endif %}
  92. {% endfor %}
  93. </table>
  94. const:
  95. amenity=post_office:
  96. sign: <img src='maki:post?size=15'>
  97. zoom: 13
  98. amenity=post_box:
  99. sign: <img src='maki:post?size=11'>
  100. zoom: 16
  101. amenity=internet_cafe:
  102. sign: <i class='fa fa-laptop' aria-hidden='true'></i>
  103. zoom: 13
  104. amenity=parcel_locker:
  105. sign: <i class='fas fa-box'></i>
  106. query: (nwr[vending~"^(|.*;)parcel_pickup(;.*|)$"];nwr[vending~"^(|.*;)parcel_mail_in(;.*|)$"];nwr[amenity=parcel_locker];)
  107. zoom: 16
  108. office=telecommunication:
  109. sign: <i class='fas fa-mobile-alt'></i>
  110. zoom: 13
  111. office=it:
  112. sign: <i class='fas fa-desktop'></i>
  113. zoom: 13
  114. office=newspaper:
  115. sign: <i class='fas fa-newspaper'></i>
  116. zoom: 13
  117. office=publisher:
  118. sign: <i class='fas fa-book'></i>
  119. zoom: 13
  120. office=advertising_agency:
  121. sign: <i class='fas fa-sign'></i>
  122. zoom: 13
  123. office=public_relations:
  124. sign: <i class='fas fa-sign'></i>
  125. zoom: 13
  126. office=audiovisual_production:
  127. sign: <i class='fas fa-film'></i>
  128. zoom: 13
  129. office=film_production:
  130. sign: <i class='fas fa-film'></i>
  131. zoom: 13
  132. amenity=telephone:
  133. sign: <img src='maki:telephone'>
  134. zoom: 16
  135. filter:
  136. type:
  137. name: '{{ trans("filter:type") }}'
  138. show_default: 'true'
  139. type: select
  140. 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 %}'