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.

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