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.

280 lines
7.9 KiB

7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Formaciones naturales",
  5. "cs": "Přírodní úkazy",
  6. "de": "Naturformationen",
  7. "el": "Φυσικοί Σχηματισμοί",
  8. "en": "Natural Formations",
  9. "fr": "Éléments naturels",
  10. "hu": "Természeti képződmények",
  11. "it": "Natura",
  12. "ja": "自然地層",
  13. "nl": "Natuurlijke Formaties",
  14. "pt": "Formações naturais",
  15. "pt-br": "Formações naturais",
  16. "ru": "Природные образования",
  17. "uk": "Природне середовище"
  18. },
  19. "query": {
  20. "9": [
  21. "(",
  22. "node[natural~\"^(peak|volcano)$\"];",
  23. ")"
  24. ],
  25. "13": [
  26. "(",
  27. "nwr[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|wetland|glacier|cape|beach|coastline|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];",
  28. ")"
  29. ],
  30. "16": [
  31. "(",
  32. "nwr[natural][natural!~\"^(water|divide|bay|strait|spring|hot_spring|geyser)$\"];",
  33. ")"
  34. ]
  35. },
  36. "feature": {
  37. "title": [
  38. "{{ localizedTag(tags, 'name') | default(trans('unnamed')) }}",
  39. "{% if tags.natural == 'peak' and tags.ele %}({{ tags.ele }}m){% endif %}"
  40. ],
  41. "description": "{{ tagTrans('natural', tags.natural) }}",
  42. "style": {
  43. "color": "{{ const[tags.natural].color|default('#f2756a') }}"
  44. },
  45. "markerSign": "<span style='color: white'>{{ const[tags.natural].sign|raw }}</span>",
  46. "markerSymbol": "{{ markerPointer({ fillColor: const[tags.natural].color|default('#f2756a') })|raw }}",
  47. "listMarkerSymbol": "{{ markerCircle({ fillColor: const[tags.natural].color|default('#f2756a') })|raw }}"
  48. },
  49. "filter": {
  50. "type": {
  51. "name": "{{ trans('filter:type') }}",
  52. "key": "natural",
  53. "type": "select",
  54. "show_default": "true",
  55. "values": "{% set list = [] %}{% for k, v in const %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('natural', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[natural][natural!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
  56. "sort": "natsort",
  57. "op": "has"
  58. }
  59. },
  60. "const": {
  61. "wood": {
  62. "zoom": 13,
  63. "sign": "<i class='fas fa-tree'></i>",
  64. "color": "darkgreen",
  65. "group": "vegetation"
  66. },
  67. "tree_row": {
  68. "zoom": 16,
  69. "sign": "<i class='fas fa-tree'></i>",
  70. "color": "darkgreen",
  71. "group": "vegetation"
  72. },
  73. "tree": {
  74. "zoom": 16,
  75. "sign": "<i class='fas fa-tree'></i>",
  76. "color": "darkgreen",
  77. "group": "vegetation"
  78. },
  79. "scrub": {
  80. "zoom": 13,
  81. "sign": "",
  82. "color": "green",
  83. "group": "vegetation"
  84. },
  85. "heath": {
  86. "zoom": 13,
  87. "sign": "",
  88. "color": "green",
  89. "group": "vegetation"
  90. },
  91. "moor": {
  92. "zoom": 13,
  93. "sign": "",
  94. "color": "#8aba50",
  95. "group": "vegetation"
  96. },
  97. "grassland": {
  98. "zoom": 13,
  99. "sign": "",
  100. "color": "#00dd24",
  101. "group": "vegetation"
  102. },
  103. "fell": {
  104. "zoom": 13,
  105. "sign": "",
  106. "color": "#49ba91",
  107. "group": "vegetation"
  108. },
  109. "bare_rock": {
  110. "zoom": 13,
  111. "sign": "",
  112. "color": "#6f6f6f",
  113. "group": "vegetation"
  114. },
  115. "scree": {
  116. "zoom": 13,
  117. "sign": "",
  118. "color": "#6f6f6f",
  119. "group": "vegetation"
  120. },
  121. "shingle": {
  122. "zoom": 13,
  123. "sign": "",
  124. "color": "#6f6f6f",
  125. "group": "vegetation"
  126. },
  127. "sand": {
  128. "zoom": 13,
  129. "sign": "",
  130. "color": "#f9d199",
  131. "group": "vegetation"
  132. },
  133. "mud": {
  134. "zoom": 13,
  135. "sign": "<img data-src='maki:wetland?fill=white'>",
  136. "color": "#988b00",
  137. "group": "vegetation"
  138. },
  139. "wetland": {
  140. "zoom": 13,
  141. "sign": "<img data-src='maki:wetland?fill=white'>",
  142. "color": "#00baff",
  143. "group": "water"
  144. },
  145. "glacier": {
  146. "zoom": 13,
  147. "sign": "<i style='color: black;' class='fas fa-icicles'></i>",
  148. "color": "white",
  149. "group": "water"
  150. },
  151. "cape": {
  152. "zoom": 16,
  153. "sign": "",
  154. "color": "#1d7500",
  155. "group": "water"
  156. },
  157. "peninsula": {
  158. "zoom": 16,
  159. "sign": "",
  160. "color": "#1d7500",
  161. "group": "water"
  162. },
  163. "beach": {
  164. "zoom": 13,
  165. "sign": "<i class='fas fa-umbrella-beach'></i>",
  166. "color": "#f9d199",
  167. "group": "water"
  168. },
  169. "coastline": {
  170. "zoom": 13,
  171. "sign": "",
  172. "color": "blue",
  173. "group": "water"
  174. },
  175. "reef": {
  176. "zoom": 13,
  177. "sign": "",
  178. "color": "#005fbd",
  179. "group": "water"
  180. },
  181. "peak": {
  182. "zoom": 9,
  183. "sign": "<i class='fas fa-mountain'></i>",
  184. "color": "#4f4f4f",
  185. "group": "landform"
  186. },
  187. "hill": {
  188. "zoom": 16,
  189. "sign": "",
  190. "color": "#4f4f4f",
  191. "group": "landform"
  192. },
  193. "volcano": {
  194. "zoom": 9,
  195. "sign": "",
  196. "color": "#cf3a00",
  197. "group": "landform"
  198. },
  199. "valley": {
  200. "zoom": 13,
  201. "sign": "",
  202. "color": "#1d7500",
  203. "group": "landform"
  204. },
  205. "river_terrace": {
  206. "zoom": 16,
  207. "sign": "",
  208. "color": "#a0a500",
  209. "group": "landform"
  210. },
  211. "ridge": {
  212. "zoom": 13,
  213. "sign": "",
  214. "color": "#4f4f4f",
  215. "group": "landform"
  216. },
  217. "arete": {
  218. "zoom": 13,
  219. "sign": "",
  220. "color": "#4f4f4f",
  221. "group": "landform"
  222. },
  223. "cliff": {
  224. "zoom": 13,
  225. "sign": "",
  226. "color": "#4f4f4f",
  227. "group": "landform"
  228. },
  229. "saddle": {
  230. "zoom": 13,
  231. "sign": "",
  232. "color": "#4f4f4f",
  233. "group": "landform"
  234. },
  235. "rock": {
  236. "zoom": 13,
  237. "sign": "",
  238. "color": "#4f4f4f",
  239. "group": "landform"
  240. },
  241. "stone": {
  242. "zoom": 13,
  243. "sign": "",
  244. "color": "#4f4f4f",
  245. "group": "landform"
  246. },
  247. "sinkhole": {
  248. "zoom": 13,
  249. "sign": "",
  250. "color": "#a0a500",
  251. "group": "landform"
  252. },
  253. "cave_entrance": {
  254. "zoom": 13,
  255. "sign": "",
  256. "color": "#000000",
  257. "group": "landform"
  258. },
  259. "isthmus": {
  260. "zoom": 16,
  261. "sign": "",
  262. "color": "#1d7500",
  263. "group": "landform"
  264. }
  265. },
  266. "info": [
  267. "<table>",
  268. " {% for k, data in const %}",
  269. " {% if data.zoom <= map.zoom %}",
  270. " <tr>",
  271. " <td>",
  272. " {{ markerCircle({ fillColor: data.color })|raw }}<div class='sign'>{{ data.sign|raw }}</div>",
  273. " </td>",
  274. " <td>{{ tagTrans('natural', k) }}</td>",
  275. " </tr>",
  276. " {% endif %}",
  277. " {% endfor %}",
  278. "</table>"
  279. ]
  280. }