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.

318 lines
9.2 KiB

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