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.

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