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.

310 lines
8.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|valley)$\"];",
  23. "nwr[place~\"^(island)$\"];",
  24. ")"
  25. ],
  26. "13": [
  27. "(",
  28. "nwr[natural~\"^(peak|volcano|wood|glacier|cape|peninsula|beach|coastline|reef|hill|valley|ridge|arete|saddle|sinkhole|cave_entrance|isthmus)$\"];",
  29. "nwr[place~\"^(island|islet)$\"];",
  30. ")"
  31. ],
  32. "16": [
  33. "(",
  34. "nwr[natural][natural!~\"^(water|divide|bay|strait|spring|hot_spring|geyser|tree)$\"];",
  35. "nwr[place~\"^(island|islet)$\"];",
  36. ")"
  37. ],
  38. "18": [
  39. "(",
  40. "nwr[natural][natural!~\"^(water|divide|bay|strait|spring|hot_spring|geyser)$\"];",
  41. "nwr[place~\"^(island|islet)$\"];",
  42. ")"
  43. ]
  44. },
  45. "feature": {
  46. "pre": [
  47. "{% if tags.place in [ 'island', 'islet' ] %}",
  48. "{% set key = 'place' %}",
  49. "{% set value = tags.place %}",
  50. "{% else %}",
  51. "{% set key = 'natural' %}",
  52. "{% set value = tags.natural %}",
  53. "{% endif %}"
  54. ],
  55. "details": "{% if tags.natural == 'peak' and tags.ele %}{{ tags.ele }}m{% endif %}",
  56. "description": "{{ tagTrans(key, value) }}",
  57. "style": {
  58. "color": "{{ const[value].color|default('#f2756a') }}"
  59. },
  60. "markerSign": "<span style='color: white'>{{ const[value].sign|raw }}</span>",
  61. "markerSymbol": "{{ markerPointer({ fillColor: const[value].color|default('#f2756a') })|raw }}",
  62. "listMarkerSymbol": "{{ markerCircle({ fillColor: const[value].color|default('#f2756a') })|raw }}",
  63. "priority": "{% if tags.name %}0{% else %}1{% endif %}"
  64. },
  65. "filter": {
  66. "type": {
  67. "name": "{{ trans('filter:type') }}",
  68. "key": "natural",
  69. "type": "select",
  70. "show_default": "true",
  71. "values": "{% set list = [] %}{% for k, v in const %}<option value=\"{{ k }}\" {% if v.key %}query='nwr[\"{{ v.key }}\"=\"{{ k }}\"]'{% endif %}>{% set list = list|merge([ k ]) %}{{ tagTrans(v.key|default('natural'), k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[natural][natural!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
  72. "sort": "natsort",
  73. "op": "has"
  74. }
  75. },
  76. "const": {
  77. "island": {
  78. "zoom": 9,
  79. "sign": "<img data-src='temaki:island_trees_building'>",
  80. "color": "#cfb997",
  81. "key": "place",
  82. "group": "landform"
  83. },
  84. "islet": {
  85. "zoom": 13,
  86. "sign": "<img data-src='temaki:island_trees_building'>",
  87. "color": "#cfb997",
  88. "key": "place",
  89. "group": "landform"
  90. },
  91. "wood": {
  92. "zoom": 13,
  93. "sign": "<i class='fas fa-tree'></i>",
  94. "color": "darkgreen",
  95. "group": "vegetation"
  96. },
  97. "tree_row": {
  98. "zoom": 16,
  99. "sign": "<i class='fas fa-tree'></i>",
  100. "color": "darkgreen",
  101. "group": "vegetation"
  102. },
  103. "tree": {
  104. "zoom": 18,
  105. "sign": "<i class='fas fa-tree'></i>",
  106. "color": "darkgreen",
  107. "group": "vegetation"
  108. },
  109. "scrub": {
  110. "zoom": 16,
  111. "sign": "",
  112. "color": "green",
  113. "group": "vegetation"
  114. },
  115. "heath": {
  116. "zoom": 16,
  117. "sign": "",
  118. "color": "green",
  119. "group": "vegetation"
  120. },
  121. "moor": {
  122. "zoom": 13,
  123. "sign": "",
  124. "color": "#8aba50",
  125. "group": "vegetation"
  126. },
  127. "grassland": {
  128. "zoom": 16,
  129. "sign": "",
  130. "color": "#00dd24",
  131. "group": "vegetation"
  132. },
  133. "fell": {
  134. "zoom": 16,
  135. "sign": "",
  136. "color": "#49ba91",
  137. "group": "vegetation"
  138. },
  139. "bare_rock": {
  140. "zoom": 16,
  141. "sign": "",
  142. "color": "#6f6f6f",
  143. "group": "vegetation"
  144. },
  145. "scree": {
  146. "zoom": 16,
  147. "sign": "",
  148. "color": "#6f6f6f",
  149. "group": "vegetation"
  150. },
  151. "shingle": {
  152. "zoom": 16,
  153. "sign": "",
  154. "color": "#6f6f6f",
  155. "group": "vegetation"
  156. },
  157. "sand": {
  158. "zoom": 16,
  159. "sign": "",
  160. "color": "#f9d199",
  161. "group": "vegetation"
  162. },
  163. "mud": {
  164. "zoom": 16,
  165. "sign": "<img data-src='maki:wetland?fill=white'>",
  166. "color": "#988b00",
  167. "group": "vegetation"
  168. },
  169. "wetland": {
  170. "zoom": 16,
  171. "sign": "<img data-src='maki:wetland?fill=white'>",
  172. "color": "#00baff",
  173. "group": "water"
  174. },
  175. "glacier": {
  176. "zoom": 13,
  177. "sign": "<i style='color: black;' class='fas fa-icicles'></i>",
  178. "color": "white",
  179. "group": "water"
  180. },
  181. "cape": {
  182. "zoom": 13,
  183. "sign": "",
  184. "color": "#1d7500",
  185. "group": "water"
  186. },
  187. "peninsula": {
  188. "zoom": 13,
  189. "sign": "",
  190. "color": "#1d7500",
  191. "group": "water"
  192. },
  193. "beach": {
  194. "zoom": 13,
  195. "sign": "<i class='fas fa-umbrella-beach'></i>",
  196. "color": "#ff7f50",
  197. "group": "water"
  198. },
  199. "coastline": {
  200. "zoom": 13,
  201. "sign": "",
  202. "color": "blue",
  203. "group": "water"
  204. },
  205. "reef": {
  206. "zoom": 13,
  207. "sign": "",
  208. "color": "#005fbd",
  209. "group": "water"
  210. },
  211. "peak": {
  212. "zoom": 9,
  213. "sign": "<i class='fas fa-mountain'></i>",
  214. "color": "#4f4f4f",
  215. "group": "landform"
  216. },
  217. "hill": {
  218. "zoom": 13,
  219. "sign": "",
  220. "color": "#4f4f4f",
  221. "group": "landform"
  222. },
  223. "volcano": {
  224. "zoom": 9,
  225. "sign": "<i class='fas fa-mountain'></i>",
  226. "color": "#cf3a00",
  227. "group": "landform"
  228. },
  229. "valley": {
  230. "zoom": 9,
  231. "sign": "",
  232. "color": "#1d7500",
  233. "group": "landform"
  234. },
  235. "river_terrace": {
  236. "zoom": 16,
  237. "sign": "",
  238. "color": "#a0a500",
  239. "group": "landform"
  240. },
  241. "ridge": {
  242. "zoom": 13,
  243. "sign": "",
  244. "color": "#4f4f4f",
  245. "group": "landform"
  246. },
  247. "arete": {
  248. "zoom": 13,
  249. "sign": "",
  250. "color": "#4f4f4f",
  251. "group": "landform"
  252. },
  253. "cliff": {
  254. "zoom": 16,
  255. "sign": "",
  256. "color": "#4f4f4f",
  257. "group": "landform"
  258. },
  259. "saddle": {
  260. "zoom": 13,
  261. "sign": "",
  262. "color": "#4f4f4f",
  263. "group": "landform"
  264. },
  265. "rock": {
  266. "zoom": 16,
  267. "sign": "",
  268. "color": "#4f4f4f",
  269. "group": "landform"
  270. },
  271. "stone": {
  272. "zoom": 16,
  273. "sign": "",
  274. "color": "#4f4f4f",
  275. "group": "landform"
  276. },
  277. "sinkhole": {
  278. "zoom": 13,
  279. "sign": "",
  280. "color": "#a0a500",
  281. "group": "landform"
  282. },
  283. "cave_entrance": {
  284. "zoom": 13,
  285. "sign": "",
  286. "color": "#000000",
  287. "group": "landform"
  288. },
  289. "isthmus": {
  290. "zoom": 13,
  291. "sign": "",
  292. "color": "#1d7500",
  293. "group": "landform"
  294. }
  295. },
  296. "info": [
  297. "<table>",
  298. " {% for k, data in const %}",
  299. " {% if data.zoom <= map.zoom %}",
  300. " <tr>",
  301. " <td>",
  302. " {{ markerCircle({ fillColor: data.color })|raw }}<div class='sign'>{{ data.sign|raw }}</div>",
  303. " </td>",
  304. " <td>{{ tagTrans('natural', k) }}</td>",
  305. " </tr>",
  306. " {% endif %}",
  307. " {% endfor %}",
  308. "</table>"
  309. ]
  310. }