Main categories of OpenStreetBrowser with support for whitewater
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.

142 lines
4.7 KiB

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