@swr-data-lab/components 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/dist/Autocomplete/Autocomplete.stories.svelte.d.ts +27 -0
  2. package/dist/Autocomplete/Autocomplete.svelte +237 -0
  3. package/dist/Autocomplete/Autocomplete.svelte.d.ts +34 -0
  4. package/dist/Autocomplete/index.d.ts +2 -0
  5. package/dist/Button/Button.stories.svelte +19 -0
  6. package/dist/Button/Button.stories.svelte.d.ts +19 -0
  7. package/dist/Button/Button.svelte +38 -0
  8. package/dist/Button/Button.svelte.d.ts +10 -0
  9. package/dist/Button/index.d.ts +2 -0
  10. package/dist/Caption/Caption.stories.svelte.d.ts +27 -0
  11. package/dist/Caption/Caption.svelte +21 -0
  12. package/dist/Caption/Caption.svelte.d.ts +8 -0
  13. package/dist/Caption/index.js +2 -0
  14. package/dist/Card/Card.stories.svelte +17 -0
  15. package/dist/Card/Card.stories.svelte.d.ts +19 -0
  16. package/dist/Card/Card.svelte +25 -0
  17. package/dist/Card/Card.svelte.d.ts +7 -0
  18. package/dist/Card/index.d.ts +2 -0
  19. package/dist/ChartFooter/ChartFooter.stories.svelte.d.ts +27 -0
  20. package/dist/ChartFooter/ChartFooter.svelte +38 -0
  21. package/dist/ChartFooter/ChartFooter.svelte.d.ts +8 -0
  22. package/dist/ChartFooter/index.d.ts +2 -0
  23. package/dist/ChartHeader/ChartHeader.stories.svelte.d.ts +27 -0
  24. package/{src → dist}/ChartHeader/ChartHeader.svelte +4 -12
  25. package/dist/ChartHeader/ChartHeader.svelte.d.ts +9 -0
  26. package/dist/ChartHeader/index.d.ts +2 -0
  27. package/dist/ChartList/ChartList.stories.svelte.d.ts +27 -0
  28. package/{src → dist}/ChartList/ChartList.svelte +2 -16
  29. package/dist/ChartList/ChartList.svelte.d.ts +14 -0
  30. package/dist/ChartList/index.js +2 -0
  31. package/dist/Copy/Copy.stories.svelte.d.ts +27 -0
  32. package/dist/Copy/Copy.svelte +21 -0
  33. package/dist/Copy/Copy.svelte.d.ts +8 -0
  34. package/dist/Copy/index.js +2 -0
  35. package/dist/DesignTokens/DesignTokens.svelte +58 -0
  36. package/dist/DesignTokens/DesignTokens.svelte.d.ts +7 -0
  37. package/dist/DesignTokens/Tokens.d.ts +26 -0
  38. package/dist/DesignTokens/Tokens.js +171 -0
  39. package/dist/DesignTokens/index.d.ts +8 -0
  40. package/dist/FormLabel/FormLabel.stories.svelte.d.ts +27 -0
  41. package/{src → dist}/FormLabel/FormLabel.svelte +2 -9
  42. package/dist/FormLabel/FormLabel.svelte.d.ts +9 -0
  43. package/dist/FormLabel/index.js +2 -0
  44. package/dist/Headline/Headline.stories.svelte.d.ts +27 -0
  45. package/{src → dist}/Headline/Headline.svelte +2 -7
  46. package/dist/Headline/Headline.svelte.d.ts +7 -0
  47. package/dist/Headline/index.js +2 -0
  48. package/{src → dist}/HighlightCard/HighlightCard.stories.svelte +7 -9
  49. package/dist/HighlightCard/HighlightCard.stories.svelte.d.ts +19 -0
  50. package/dist/HighlightCard/HighlightCard.svelte +54 -0
  51. package/dist/HighlightCard/HighlightCard.svelte.d.ts +9 -0
  52. package/dist/HighlightCard/index.d.ts +2 -0
  53. package/dist/Input/Input.svelte +32 -0
  54. package/dist/Input/Input.svelte.d.ts +23 -0
  55. package/dist/Input/index.d.ts +2 -0
  56. package/dist/Logotype/Logotype.stories.svelte +14 -0
  57. package/dist/Logotype/Logotype.stories.svelte.d.ts +19 -0
  58. package/dist/Logotype/Logotype.svelte.d.ts +26 -0
  59. package/dist/Middot/Middot.stories.svelte +14 -0
  60. package/dist/Middot/Middot.stories.svelte.d.ts +19 -0
  61. package/dist/Middot/Middot.svelte.d.ts +26 -0
  62. package/dist/Middot/index.d.ts +2 -0
  63. package/dist/Note/Note.stories.svelte.d.ts +27 -0
  64. package/dist/Note/Note.svelte +28 -0
  65. package/dist/Note/Note.svelte.d.ts +7 -0
  66. package/dist/Note/index.js +2 -0
  67. package/{src → dist}/Select/Select.stories.svelte +12 -15
  68. package/dist/Select/Select.stories.svelte.d.ts +19 -0
  69. package/dist/Select/Select.svelte +39 -0
  70. package/dist/Select/Select.svelte.d.ts +4 -0
  71. package/{src/Select/Select.types.ts → dist/Select/Select.types.d.ts} +1 -2
  72. package/dist/Select/Select.types.js +1 -0
  73. package/dist/Select/SelectStoriesTemplate.svelte.d.ts +15 -0
  74. package/dist/Select/index.d.ts +2 -0
  75. package/dist/Switcher/Switcher.stories.svelte.d.ts +27 -0
  76. package/dist/Switcher/Switcher.svelte +111 -0
  77. package/dist/Switcher/Switcher.svelte.d.ts +21 -0
  78. package/dist/Switcher/index.d.ts +2 -0
  79. package/dist/assets/close-circle.svg.svelte.d.ts +26 -0
  80. package/dist/assets/grow.svg.svelte.d.ts +26 -0
  81. package/dist/assets/hand-pointer.svg.svelte.d.ts +26 -0
  82. package/dist/assets/shrink.svg.svelte.d.ts +26 -0
  83. package/dist/assets/tap.svg.svelte.d.ts +26 -0
  84. package/dist/assets/times-circle-solid.svg.svelte.d.ts +26 -0
  85. package/dist/index.d.ts +29 -0
  86. package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte +27 -0
  87. package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte.d.ts +19 -0
  88. package/dist/maplibre/AttributionControl/AttributionControl.svelte +15 -0
  89. package/dist/maplibre/AttributionControl/AttributionControl.svelte.d.ts +8 -0
  90. package/dist/maplibre/AttributionControl/index.d.ts +2 -0
  91. package/dist/maplibre/GeocoderControl/GeocoderAPIs.d.ts +6 -0
  92. package/dist/maplibre/GeocoderControl/GeocoderAPIs.js +40 -0
  93. package/{src → dist}/maplibre/GeocoderControl/GeocoderControl.stories.svelte +10 -14
  94. package/dist/maplibre/GeocoderControl/GeocoderControl.stories.svelte.d.ts +19 -0
  95. package/dist/maplibre/GeocoderControl/GeocoderControl.svelte +25 -0
  96. package/dist/maplibre/GeocoderControl/GeocoderControl.svelte.d.ts +27 -0
  97. package/dist/maplibre/GeocoderControl/index.d.ts +2 -0
  98. package/dist/maplibre/Map/FallbackStyle.d.ts +3 -0
  99. package/dist/maplibre/Map/FallbackStyle.js +15 -0
  100. package/{src → dist}/maplibre/Map/Map.stories.svelte +19 -24
  101. package/dist/maplibre/Map/Map.stories.svelte.d.ts +19 -0
  102. package/dist/maplibre/Map/Map.svelte +91 -0
  103. package/dist/maplibre/Map/Map.svelte.d.ts +23 -0
  104. package/dist/maplibre/Map/index.d.ts +2 -0
  105. package/dist/maplibre/MapControl/MapControl.stories.svelte +46 -0
  106. package/dist/maplibre/MapControl/MapControl.stories.svelte.d.ts +19 -0
  107. package/dist/maplibre/MapControl/MapControl.svelte +29 -0
  108. package/dist/maplibre/MapControl/MapControl.svelte.d.ts +11 -0
  109. package/dist/maplibre/MapControl/index.d.ts +2 -0
  110. package/dist/maplibre/MapStyle/SWRDataLabLight.d.ts +3 -0
  111. package/dist/maplibre/MapStyle/SWRDataLabLight.js +60 -0
  112. package/{src → dist}/maplibre/MapStyle/SWRDataLabLight.stories.svelte +10 -12
  113. package/dist/maplibre/MapStyle/SWRDataLabLight.stories.svelte.d.ts +18 -0
  114. package/dist/maplibre/MapStyle/components/Admin.d.ts +1 -0
  115. package/dist/maplibre/MapStyle/components/Admin.js +170 -0
  116. package/dist/maplibre/MapStyle/components/Buildings.d.ts +1 -0
  117. package/dist/maplibre/MapStyle/components/Buildings.js +21 -0
  118. package/dist/maplibre/MapStyle/components/Landuse.d.ts +1 -0
  119. package/dist/maplibre/MapStyle/components/Landuse.js +497 -0
  120. package/dist/maplibre/MapStyle/components/Natural.d.ts +1 -0
  121. package/dist/maplibre/MapStyle/components/Natural.js +1 -0
  122. package/dist/maplibre/MapStyle/components/PlaceLabels.d.ts +4 -0
  123. package/dist/maplibre/MapStyle/components/PlaceLabels.js +194 -0
  124. package/dist/maplibre/MapStyle/components/Roads.d.ts +8 -0
  125. package/dist/maplibre/MapStyle/components/Roads.js +2327 -0
  126. package/dist/maplibre/MapStyle/components/Transit.d.ts +7 -0
  127. package/dist/maplibre/MapStyle/components/Transit.js +499 -0
  128. package/dist/maplibre/MapStyle/components/Walking.d.ts +1 -0
  129. package/dist/maplibre/MapStyle/components/Walking.js +1530 -0
  130. package/dist/maplibre/MapStyle/index.d.ts +2 -0
  131. package/dist/maplibre/MapStyle/tokens.d.ts +20 -0
  132. package/dist/maplibre/MapStyle/tokens.js +20 -0
  133. package/{src → dist}/maplibre/NavigationControl/NavigationControl.stories.svelte +9 -11
  134. package/dist/maplibre/NavigationControl/NavigationControl.stories.svelte.d.ts +19 -0
  135. package/dist/maplibre/NavigationControl/NavigationControl.svelte +9 -0
  136. package/dist/maplibre/NavigationControl/NavigationControl.svelte.d.ts +12 -0
  137. package/dist/maplibre/NavigationControl/index.d.ts +2 -0
  138. package/{src → dist}/maplibre/ScaleControl/ScaleControl.stories.svelte +10 -13
  139. package/dist/maplibre/ScaleControl/ScaleControl.stories.svelte.d.ts +19 -0
  140. package/dist/maplibre/ScaleControl/ScaleControl.svelte +9 -0
  141. package/dist/maplibre/ScaleControl/ScaleControl.svelte.d.ts +9 -0
  142. package/dist/maplibre/ScaleControl/index.d.ts +2 -0
  143. package/dist/maplibre/Source/MapSource.stories.svelte +7 -0
  144. package/dist/maplibre/Source/MapSource.stories.svelte.d.ts +19 -0
  145. package/dist/maplibre/Source/MapSource.svelte +43 -0
  146. package/dist/maplibre/Source/MapSource.svelte.d.ts +13 -0
  147. package/dist/maplibre/Source/index.d.ts +2 -0
  148. package/dist/maplibre/Source/source.d.ts +28 -0
  149. package/dist/maplibre/Source/source.js +76 -0
  150. package/{src → dist}/maplibre/Tooltip/Tooltip.stories.svelte +17 -23
  151. package/dist/maplibre/Tooltip/Tooltip.stories.svelte.d.ts +19 -0
  152. package/dist/maplibre/Tooltip/Tooltip.svelte +46 -0
  153. package/dist/maplibre/Tooltip/Tooltip.svelte.d.ts +25 -0
  154. package/dist/maplibre/Tooltip/index.d.ts +2 -0
  155. package/{src → dist}/maplibre/VectorLayer/VectorLayer.stories.svelte +11 -14
  156. package/dist/maplibre/VectorLayer/VectorLayer.stories.svelte.d.ts +19 -0
  157. package/dist/maplibre/VectorLayer/VectorLayer.svelte +73 -0
  158. package/dist/maplibre/VectorLayer/VectorLayer.svelte.d.ts +21 -0
  159. package/dist/maplibre/VectorLayer/index.d.ts +2 -0
  160. package/{src → dist}/maplibre/VectorTileSource/VectorTileSource.stories.svelte +11 -13
  161. package/dist/maplibre/VectorTileSource/VectorTileSource.stories.svelte.d.ts +19 -0
  162. package/dist/maplibre/VectorTileSource/VectorTileSource.svelte +13 -0
  163. package/dist/maplibre/VectorTileSource/VectorTileSource.svelte.d.ts +11 -0
  164. package/dist/maplibre/VectorTileSource/index.d.ts +2 -0
  165. package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte +27 -0
  166. package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte.d.ts +19 -0
  167. package/dist/maplibre/WithLinkLocation/WithLinkLocation.svelte +44 -0
  168. package/dist/maplibre/WithLinkLocation/WithLinkLocation.svelte.d.ts +19 -0
  169. package/dist/maplibre/WithLinkLocation/index.d.ts +2 -0
  170. package/dist/maplibre/context.svelte.d.ts +33 -0
  171. package/dist/maplibre/context.svelte.js +73 -0
  172. package/{src/maplibre/types.ts → dist/maplibre/types.d.ts} +3 -5
  173. package/dist/maplibre/types.js +1 -0
  174. package/dist/maplibre/utils.d.ts +4 -0
  175. package/dist/maplibre/utils.js +34 -0
  176. package/dist/utils/formatDate.d.ts +5 -0
  177. package/dist/utils/formatNumber.d.ts +18 -0
  178. package/dist/utils/getColorsBetween.d.ts +9 -0
  179. package/dist/utils/getComparisonDiffs.d.ts +6 -0
  180. package/dist/utils/getEmbedContext.d.ts +7 -0
  181. package/dist/utils/getEmbedContext.js +27 -0
  182. package/dist/utils/getLaenderFromTopo.d.ts +10 -0
  183. package/dist/utils/getLaenderNicenameFromAgs.d.ts +7 -0
  184. package/dist/utils/isSvelteComponent.d.ts +7 -0
  185. package/dist/utils/prepareSophoraModel.d.ts +2 -0
  186. package/dist/utils/scrollIntoViewWithOffset.d.ts +7 -0
  187. package/dist/utils/slugify.d.ts +1 -0
  188. package/dist/utils/slugify.js +11 -0
  189. package/dist/utils/topoToGeo.d.ts +7 -0
  190. package/package.json +30 -7
  191. package/.storybook/blocks/Mermaid.jsx +0 -9
  192. package/.storybook/main.ts +0 -34
  193. package/.storybook/preview-head.html +0 -13
  194. package/.storybook/preview.ts +0 -47
  195. package/.storybook/vitest.setup.ts +0 -9
  196. package/src/Autocomplete/Autocomplete.svelte +0 -237
  197. package/src/Button/Button.stories.svelte +0 -21
  198. package/src/Button/Button.svelte +0 -52
  199. package/src/Caption/Caption.svelte +0 -29
  200. package/src/Card/Card.stories.svelte +0 -19
  201. package/src/Card/Card.svelte +0 -34
  202. package/src/ChartFooter/ChartFooter.svelte +0 -46
  203. package/src/Copy/Copy.svelte +0 -29
  204. package/src/DesignTokens/DesignTokens.svelte +0 -71
  205. package/src/DesignTokens/Tokens.ts +0 -186
  206. package/src/HighlightCard/HighlightCard.svelte +0 -65
  207. package/src/Input/Input.svelte +0 -21
  208. package/src/Logotype/Logotype.stories.svelte +0 -16
  209. package/src/Middot/Middot.stories.svelte +0 -16
  210. package/src/Note/Note.svelte +0 -38
  211. package/src/Select/Select.svelte +0 -76
  212. package/src/Switcher/Switcher.svelte +0 -130
  213. package/src/maplibre/AttributionControl/AttributionControl.stories.svelte +0 -29
  214. package/src/maplibre/AttributionControl/AttributionControl.svelte +0 -45
  215. package/src/maplibre/GeocoderControl/GeocoderAPIs.ts +0 -49
  216. package/src/maplibre/GeocoderControl/GeocoderControl.svelte +0 -211
  217. package/src/maplibre/Map/FallbackStyle.ts +0 -18
  218. package/src/maplibre/Map/Map.svelte +0 -287
  219. package/src/maplibre/MapControl/MapControl.stories.svelte +0 -56
  220. package/src/maplibre/MapControl/MapControl.svelte +0 -41
  221. package/src/maplibre/MapStyle/SWRDataLabLight.ts +0 -72
  222. package/src/maplibre/MapStyle/components/Admin.ts +0 -173
  223. package/src/maplibre/MapStyle/components/Buildings.ts +0 -23
  224. package/src/maplibre/MapStyle/components/Landuse.ts +0 -499
  225. package/src/maplibre/MapStyle/components/Natural.ts +0 -1
  226. package/src/maplibre/MapStyle/components/PlaceLabels.ts +0 -199
  227. package/src/maplibre/MapStyle/components/Roads.ts +0 -2345
  228. package/src/maplibre/MapStyle/components/Transit.ts +0 -507
  229. package/src/maplibre/MapStyle/components/Walking.ts +0 -1538
  230. package/src/maplibre/MapStyle/tokens.ts +0 -21
  231. package/src/maplibre/NavigationControl/NavigationControl.svelte +0 -36
  232. package/src/maplibre/ScaleControl/ScaleControl.svelte +0 -25
  233. package/src/maplibre/Source/MapSource.stories.svelte +0 -9
  234. package/src/maplibre/Source/MapSource.svelte +0 -61
  235. package/src/maplibre/Source/source.ts +0 -89
  236. package/src/maplibre/Tooltip/Tooltip.svelte +0 -183
  237. package/src/maplibre/VectorLayer/VectorLayer.svelte +0 -146
  238. package/src/maplibre/VectorTileSource/VectorTileSource.svelte +0 -24
  239. package/src/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte +0 -29
  240. package/src/maplibre/WithLinkLocation/WithLinkLocation.svelte +0 -83
  241. package/src/maplibre/context.svelte.ts +0 -89
  242. package/src/maplibre/utils.ts +0 -52
  243. package/src/utils/getEmbedContext.js +0 -28
  244. package/src/utils/slugify.ts +0 -12
  245. package/static/favicon.png +0 -0
  246. package/svelte.config.js +0 -18
  247. package/tsconfig.json +0 -19
  248. package/vite.config.ts +0 -6
  249. package/vitest.workspace.ts +0 -32
  250. /package/{src → dist}/Autocomplete/Autocomplete.stories.svelte +0 -0
  251. /package/{src → dist}/Autocomplete/index.js +0 -0
  252. /package/{src → dist}/Button/index.js +0 -0
  253. /package/{src → dist}/Caption/Caption.stories.svelte +0 -0
  254. /package/{src/Caption/index.ts → dist/Caption/index.d.ts} +0 -0
  255. /package/{src → dist}/Card/index.js +0 -0
  256. /package/{src → dist}/ChartFooter/ChartFooter.mdx +0 -0
  257. /package/{src → dist}/ChartFooter/ChartFooter.stories.svelte +0 -0
  258. /package/{src → dist}/ChartFooter/index.js +0 -0
  259. /package/{src → dist}/ChartHeader/ChartHeader.mdx +0 -0
  260. /package/{src → dist}/ChartHeader/ChartHeader.stories.svelte +0 -0
  261. /package/{src → dist}/ChartHeader/index.js +0 -0
  262. /package/{src → dist}/ChartList/ChartList.mdx +0 -0
  263. /package/{src → dist}/ChartList/ChartList.stories.svelte +0 -0
  264. /package/{src/ChartList/index.ts → dist/ChartList/index.d.ts} +0 -0
  265. /package/{src → dist}/Copy/Copy.stories.svelte +0 -0
  266. /package/{src/Copy/index.ts → dist/Copy/index.d.ts} +0 -0
  267. /package/{src → dist}/DesignTokens/DesignTokens.mdx +0 -0
  268. /package/{src → dist}/DesignTokens/index.js +0 -0
  269. /package/{src → dist}/FormLabel/FormLabel.mdx +0 -0
  270. /package/{src → dist}/FormLabel/FormLabel.stories.svelte +0 -0
  271. /package/{src/FormLabel/index.ts → dist/FormLabel/index.d.ts} +0 -0
  272. /package/{src → dist}/Headline/Headline.stories.svelte +0 -0
  273. /package/{src/Headline/index.ts → dist/Headline/index.d.ts} +0 -0
  274. /package/{src → dist}/HighlightCard/index.js +0 -0
  275. /package/{src → dist}/Input/index.js +0 -0
  276. /package/{src → dist}/Intro.mdx +0 -0
  277. /package/{src → dist}/Logotype/Logotype.svelte +0 -0
  278. /package/{src → dist}/Middot/Middot.svelte +0 -0
  279. /package/{src → dist}/Middot/index.js +0 -0
  280. /package/{src → dist}/Note/Note.stories.svelte +0 -0
  281. /package/{src/Note/index.ts → dist/Note/index.d.ts} +0 -0
  282. /package/{src → dist}/Select/Select.mdx +0 -0
  283. /package/{src → dist}/Select/SelectStoriesTemplate.svelte +0 -0
  284. /package/{src → dist}/Select/index.js +0 -0
  285. /package/{src → dist}/Select/mock_data/jobs.json +0 -0
  286. /package/{src → dist}/Switcher/Switcher.mdx +0 -0
  287. /package/{src → dist}/Switcher/Switcher.stories.svelte +0 -0
  288. /package/{src → dist}/Switcher/index.js +0 -0
  289. /package/{src → dist}/app.d.ts +0 -0
  290. /package/{src → dist}/app.html +0 -0
  291. /package/{src → dist}/assets/close-circle.svg.svelte +0 -0
  292. /package/{src → dist}/assets/grow.svg.svelte +0 -0
  293. /package/{src → dist}/assets/hand-pointer.svg.svelte +0 -0
  294. /package/{src → dist}/assets/shrink.svg.svelte +0 -0
  295. /package/{src → dist}/assets/tap.svg.svelte +0 -0
  296. /package/{src → dist}/assets/times-circle-solid.svg.svelte +0 -0
  297. /package/{src → dist}/index.js +0 -0
  298. /package/{src → dist}/maplibre/AttributionControl/index.js +0 -0
  299. /package/{src → dist}/maplibre/GeocoderControl/index.js +0 -0
  300. /package/{src → dist}/maplibre/Map/index.js +0 -0
  301. /package/{src → dist}/maplibre/MapControl/MapControl.mdx +0 -0
  302. /package/{src → dist}/maplibre/MapControl/index.js +0 -0
  303. /package/{src → dist}/maplibre/MapStyle/SWRDataLabLight.mdx +0 -0
  304. /package/{src → dist}/maplibre/MapStyle/index.js +0 -0
  305. /package/{src → dist}/maplibre/Maplibre.mdx +0 -0
  306. /package/{src → dist}/maplibre/NavigationControl/index.js +0 -0
  307. /package/{src → dist}/maplibre/ScaleControl/index.js +0 -0
  308. /package/{src → dist}/maplibre/Source/index.js +0 -0
  309. /package/{src → dist}/maplibre/Tooltip/index.js +0 -0
  310. /package/{src → dist}/maplibre/VectorLayer/index.js +0 -0
  311. /package/{src → dist}/maplibre/VectorTileSource/VectorTileSource.mdx +0 -0
  312. /package/{src → dist}/maplibre/VectorTileSource/index.js +0 -0
  313. /package/{src → dist}/maplibre/WithLinkLocation/WithLinkLocation.mdx +0 -0
  314. /package/{src → dist}/maplibre/WithLinkLocation/index.js +0 -0
  315. /package/{src → dist}/styles/base.scss +0 -0
  316. /package/{src → dist}/utils/formatDate.js +0 -0
  317. /package/{src → dist}/utils/formatNumber.js +0 -0
  318. /package/{src → dist}/utils/getColorsBetween.js +0 -0
  319. /package/{src → dist}/utils/getComparisonDiffs.js +0 -0
  320. /package/{src → dist}/utils/getLaenderFromTopo.js +0 -0
  321. /package/{src → dist}/utils/getLaenderNicenameFromAgs.js +0 -0
  322. /package/{src → dist}/utils/isSvelteComponent.js +0 -0
  323. /package/{src → dist}/utils/prepareSophoraModel.js +0 -0
  324. /package/{src → dist}/utils/scrollIntoViewWithOffset.js +0 -0
  325. /package/{src → dist}/utils/topoToGeo.js +0 -0
@@ -0,0 +1,1530 @@
1
+ import {} from '../../types';
2
+ import tokens from '../tokens';
3
+ const street_layout = {
4
+ 'line-join': 'round',
5
+ 'line-cap': 'butt'
6
+ };
7
+ const street_residential = {
8
+ line_color: tokens.street_tertiary,
9
+ line_width: {
10
+ stops: [
11
+ [13, 1],
12
+ [14, 2],
13
+ [16, 5],
14
+ [18, 24],
15
+ [19, 60],
16
+ [20, 120]
17
+ ]
18
+ },
19
+ line_opacity: {
20
+ stops: [
21
+ [12, 0],
22
+ [13, 1]
23
+ ]
24
+ }
25
+ };
26
+ export default function makeWalking() {
27
+ const walkingTunnels = [
28
+ {
29
+ id: 'tunnel-street-pedestrian-zone',
30
+ type: 'fill',
31
+ 'source-layer': 'street_polygons',
32
+ filter: ['all', ['==', 'tunnel', true], ['==', 'kind', 'pedestrian']],
33
+ paint: {
34
+ 'fill-color': 'rgb(247,247,247)',
35
+ 'fill-opacity': {
36
+ stops: [
37
+ [12, 0],
38
+ [13, 1]
39
+ ]
40
+ }
41
+ }
42
+ },
43
+ {
44
+ id: 'tunnel-way-footway:outline',
45
+ type: 'line',
46
+ 'source-layer': 'streets',
47
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'footway']],
48
+ layout: {
49
+ 'line-cap': 'round'
50
+ },
51
+ paint: {
52
+ 'line-width': {
53
+ stops: [
54
+ [15, 0],
55
+ [16, 5],
56
+ [18, 7],
57
+ [19, 12],
58
+ [20, 22]
59
+ ]
60
+ },
61
+ 'line-color': 'hsl(0,0%,86%)'
62
+ },
63
+ minzoom: 15
64
+ },
65
+ {
66
+ id: 'tunnel-way-steps:outline',
67
+ type: 'line',
68
+ 'source-layer': 'streets',
69
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'steps']],
70
+ layout: {
71
+ 'line-cap': 'round'
72
+ },
73
+ paint: {
74
+ 'line-width': {
75
+ stops: [
76
+ [15, 0],
77
+ [16, 5],
78
+ [18, 7],
79
+ [19, 12],
80
+ [20, 22]
81
+ ]
82
+ },
83
+ 'line-color': 'hsl(0,0%,86%)'
84
+ },
85
+ minzoom: 15
86
+ },
87
+ {
88
+ id: 'tunnel-way-path:outline',
89
+ type: 'line',
90
+ 'source-layer': 'streets',
91
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'path']],
92
+ layout: {
93
+ 'line-cap': 'round'
94
+ },
95
+ paint: {
96
+ 'line-width': {
97
+ stops: [
98
+ [15, 0],
99
+ [16, 5],
100
+ [18, 7],
101
+ [19, 12],
102
+ [20, 22]
103
+ ]
104
+ },
105
+ 'line-color': 'hsl(0,0%,86%)'
106
+ },
107
+ minzoom: 15
108
+ },
109
+ {
110
+ id: 'tunnel-way-cycleway:outline',
111
+ type: 'line',
112
+ 'source-layer': 'streets',
113
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'cycleway']],
114
+ layout: {
115
+ 'line-cap': 'round'
116
+ },
117
+ paint: {
118
+ 'line-width': {
119
+ stops: [
120
+ [15, 0],
121
+ [16, 5],
122
+ [18, 7],
123
+ [19, 12],
124
+ [20, 22]
125
+ ]
126
+ },
127
+ 'line-color': 'hsl(0,0%,87%)'
128
+ },
129
+ minzoom: 15
130
+ },
131
+ {
132
+ // See: https://wiki.openstreetmap.org/wiki/Tag:highway%3Dtrack
133
+ id: 'tunnel-street-track:outline',
134
+ type: 'line',
135
+ 'source-layer': 'streets',
136
+ filter: ['all', ['==', 'kind', 'track'], ['==', 'tunnel', true]],
137
+ paint: {
138
+ 'line-color': 'rgb(222,222,222)',
139
+ 'line-width': {
140
+ stops: [
141
+ [14, 2],
142
+ [16, 4],
143
+ [18, 18],
144
+ [19, 48],
145
+ [20, 96]
146
+ ]
147
+ },
148
+ 'line-opacity': {
149
+ stops: [
150
+ [14, 0],
151
+ [15, 1]
152
+ ]
153
+ }
154
+ },
155
+ layout: {
156
+ 'line-join': 'round',
157
+ 'line-cap': 'round'
158
+ }
159
+ },
160
+ {
161
+ id: 'tunnel-street-pedestrian:outline',
162
+ type: 'line',
163
+ 'source-layer': 'streets',
164
+ filter: ['all', ['==', 'kind', 'pedestrian'], ['==', 'tunnel', true]],
165
+ paint: {
166
+ 'line-color': 'rgb(222,222,222)',
167
+ 'line-width': {
168
+ stops: [
169
+ [12, 2],
170
+ [14, 3],
171
+ [16, 6],
172
+ [18, 26],
173
+ [19, 64],
174
+ [20, 128]
175
+ ]
176
+ },
177
+ 'line-opacity': {
178
+ stops: [
179
+ [12, 0],
180
+ [13, 1]
181
+ ]
182
+ }
183
+ },
184
+ layout: {
185
+ 'line-join': 'round',
186
+ 'line-cap': 'round'
187
+ }
188
+ },
189
+ {
190
+ id: 'tunnel-way-footway', // See: https://wiki.openstreetmap.org/wiki/Tag:highway%3Dfootway
191
+ type: 'line',
192
+ 'source-layer': 'streets',
193
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'footway']],
194
+ layout: {
195
+ 'line-cap': 'round'
196
+ },
197
+ paint: {
198
+ 'line-width': {
199
+ stops: [
200
+ [15, 0],
201
+ [16, 4],
202
+ [18, 6],
203
+ [19, 10],
204
+ [20, 20]
205
+ ]
206
+ },
207
+ 'line-color': 'hsl(0,0%,94%)',
208
+ 'line-dasharray': [1, 0.2]
209
+ },
210
+ minzoom: 15
211
+ },
212
+ {
213
+ id: 'tunnel-way-steps',
214
+ type: 'line',
215
+ 'source-layer': 'streets',
216
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'steps']],
217
+ layout: {
218
+ 'line-cap': 'round'
219
+ },
220
+ paint: {
221
+ 'line-width': {
222
+ stops: [
223
+ [15, 0],
224
+ [16, 4],
225
+ [18, 6],
226
+ [19, 10],
227
+ [20, 20]
228
+ ]
229
+ },
230
+ 'line-color': 'hsl(0,0%,94%)',
231
+ 'line-dasharray': [1, 0.2]
232
+ },
233
+ minzoom: 15
234
+ },
235
+ {
236
+ id: 'tunnel-way-path',
237
+ type: 'line',
238
+ 'source-layer': 'streets',
239
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'path']],
240
+ layout: {
241
+ 'line-cap': 'round'
242
+ },
243
+ paint: {
244
+ 'line-width': {
245
+ stops: [
246
+ [15, 0],
247
+ [16, 4],
248
+ [18, 6],
249
+ [19, 10],
250
+ [20, 20]
251
+ ]
252
+ },
253
+ 'line-color': 'hsl(0,0%,94%)',
254
+ 'line-dasharray': [1, 0.2]
255
+ },
256
+ minzoom: 15
257
+ },
258
+ {
259
+ id: 'tunnel-way-cycleway',
260
+ type: 'line',
261
+ 'source-layer': 'streets',
262
+ filter: ['all', ['==', 'tunnel', true], ['in', 'kind', 'cycleway']],
263
+ layout: {
264
+ 'line-cap': 'round'
265
+ },
266
+ paint: {
267
+ 'line-width': {
268
+ stops: [
269
+ [15, 0],
270
+ [16, 4],
271
+ [18, 6],
272
+ [19, 10],
273
+ [20, 20]
274
+ ]
275
+ },
276
+ 'line-color': 'hsl(0,0%,95%)',
277
+ 'line-dasharray': [1, 0.2]
278
+ },
279
+ minzoom: 15
280
+ },
281
+ {
282
+ id: 'tunnel-street-track',
283
+ type: 'line',
284
+ 'source-layer': 'streets',
285
+ filter: ['all', ['==', 'kind', 'track'], ['==', 'tunnel', true]],
286
+ paint: {
287
+ 'line-color': 'rgb(247,247,247)',
288
+ 'line-width': {
289
+ stops: [
290
+ [14, 1],
291
+ [16, 3],
292
+ [18, 16],
293
+ [19, 44],
294
+ [20, 88]
295
+ ]
296
+ },
297
+ 'line-opacity': {
298
+ stops: [
299
+ [14, 0],
300
+ [15, 1]
301
+ ]
302
+ }
303
+ },
304
+ layout: {
305
+ 'line-join': 'round',
306
+ 'line-cap': 'round'
307
+ }
308
+ },
309
+ {
310
+ id: 'tunnel-street-pedestrian',
311
+ type: 'line',
312
+ 'source-layer': 'streets',
313
+ filter: ['all', ['==', 'kind', 'pedestrian'], ['==', 'tunnel', true]],
314
+ paint: {
315
+ 'line-color': 'rgb(247,247,247)',
316
+ 'line-width': {
317
+ stops: [
318
+ [12, 1],
319
+ [14, 2],
320
+ [16, 5],
321
+ [18, 24],
322
+ [19, 60],
323
+ [20, 120]
324
+ ]
325
+ },
326
+ 'line-opacity': {
327
+ stops: [
328
+ [12, 0],
329
+ [13, 1]
330
+ ]
331
+ }
332
+ },
333
+ layout: {
334
+ 'line-join': 'round',
335
+ 'line-cap': 'round'
336
+ }
337
+ },
338
+ {
339
+ id: 'tunnel-street-livingstreet-bicycle',
340
+ type: 'line',
341
+ 'source-layer': 'streets',
342
+ filter: [
343
+ 'all',
344
+ ['==', 'kind', 'living_street'],
345
+ ['==', 'bicycle', 'designated'],
346
+ ['==', 'tunnel', true]
347
+ ],
348
+ paint: {
349
+ 'line-color': 'hsl(203,0%,97%)',
350
+ 'line-width': {
351
+ stops: [
352
+ [12, 1],
353
+ [14, 2],
354
+ [16, 5],
355
+ [18, 24],
356
+ [19, 60],
357
+ [20, 120]
358
+ ]
359
+ },
360
+ 'line-opacity': {
361
+ stops: [
362
+ [12, 0],
363
+ [13, 1]
364
+ ]
365
+ }
366
+ },
367
+ layout: street_layout
368
+ },
369
+ {
370
+ id: 'tunnel-street-residential-bicycle',
371
+ type: 'line',
372
+ 'source-layer': 'streets',
373
+ filter: [
374
+ 'all',
375
+ ['==', 'kind', 'residential'],
376
+ ['==', 'bicycle', 'designated'],
377
+ ['==', 'tunnel', true]
378
+ ],
379
+ paint: {
380
+ 'line-color': street_residential.line_color,
381
+ 'line-width': street_residential.line_width,
382
+ 'line-opacity': street_residential.line_opacity
383
+ },
384
+ layout: street_layout
385
+ },
386
+ {
387
+ id: 'tunnel-street-unclassified-bicycle',
388
+ type: 'line',
389
+ 'source-layer': 'streets',
390
+ filter: [
391
+ 'all',
392
+ ['==', 'kind', 'unclassified'],
393
+ ['==', 'bicycle', 'designated'],
394
+ ['==', 'tunnel', true]
395
+ ],
396
+ paint: {
397
+ 'line-color': 'hsl(203,0%,97%)',
398
+ 'line-width': {
399
+ stops: [
400
+ [12, 1],
401
+ [14, 2],
402
+ [16, 5],
403
+ [18, 24],
404
+ [19, 60],
405
+ [20, 120]
406
+ ]
407
+ },
408
+ 'line-opacity': {
409
+ stops: [
410
+ [12, 0],
411
+ [13, 1]
412
+ ]
413
+ }
414
+ },
415
+ layout: street_layout
416
+ },
417
+ {
418
+ id: 'tunnel-street-track-bicycle',
419
+ type: 'line',
420
+ 'source-layer': 'streets',
421
+ filter: [
422
+ 'all',
423
+ ['==', 'kind', 'track'],
424
+ ['==', 'bicycle', 'designated'],
425
+ ['==', 'tunnel', true]
426
+ ],
427
+ paint: {
428
+ 'line-color': 'rgb(247,247,247)'
429
+ },
430
+ layout: {
431
+ 'line-join': 'round',
432
+ 'line-cap': 'round'
433
+ }
434
+ },
435
+ {
436
+ id: 'tunnel-street-pedestrian-bicycle',
437
+ type: 'line',
438
+ 'source-layer': 'streets',
439
+ filter: [
440
+ 'all',
441
+ ['==', 'kind', 'pedestrian'],
442
+ ['==', 'bicycle', 'designated'],
443
+ ['==', 'tunnel', true]
444
+ ],
445
+ paint: {
446
+ 'line-color': 'hsl(203,0%,97%)',
447
+ 'line-width': {
448
+ stops: [
449
+ [12, 1],
450
+ [14, 2],
451
+ [16, 5],
452
+ [18, 24],
453
+ [19, 60],
454
+ [20, 120]
455
+ ]
456
+ },
457
+ 'line-opacity': {
458
+ stops: [
459
+ [12, 0],
460
+ [13, 1]
461
+ ]
462
+ }
463
+ },
464
+ layout: street_layout
465
+ },
466
+ {
467
+ id: 'tunnel-street-service-bicycle',
468
+ type: 'line',
469
+ 'source-layer': 'streets',
470
+ filter: [
471
+ 'all',
472
+ ['==', 'kind', 'service'],
473
+ ['==', 'bicycle', 'designated'],
474
+ ['==', 'tunnel', true],
475
+ ['!=', 'service', 'driveway']
476
+ ],
477
+ paint: {
478
+ 'line-color': 'rgb(247,247,247)'
479
+ },
480
+ layout: {
481
+ 'line-join': 'round',
482
+ 'line-cap': 'round'
483
+ }
484
+ }
485
+ ].map((el) => {
486
+ return { source: 'versatiles-osm', ...el };
487
+ });
488
+ const walkingSurface = [
489
+ {
490
+ id: 'street-pedestrian-zone',
491
+ type: 'fill',
492
+ 'source-layer': 'street_polygons',
493
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['==', 'kind', 'pedestrian']],
494
+ paint: {
495
+ 'fill-color': 'rgba(245,245,245,0.25)',
496
+ 'fill-opacity': {
497
+ stops: [
498
+ [12, 0],
499
+ [13, 1],
500
+ [14, 0],
501
+ [15, 1]
502
+ ]
503
+ }
504
+ }
505
+ },
506
+ {
507
+ id: 'way-footway:outline',
508
+ type: 'line',
509
+ 'source-layer': 'streets',
510
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'footway']],
511
+ layout: {
512
+ 'line-cap': 'round'
513
+ },
514
+ paint: {
515
+ 'line-width': {
516
+ stops: [
517
+ [15, 0],
518
+ [16, 5],
519
+ [18, 7],
520
+ [19, 12],
521
+ [20, 22]
522
+ ]
523
+ },
524
+ 'line-color': 'rgb(220,220,220)'
525
+ },
526
+ minzoom: 15
527
+ },
528
+ {
529
+ id: 'way-steps:outline',
530
+ type: 'line',
531
+ 'source-layer': 'streets',
532
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'steps']],
533
+ minzoom: 15,
534
+ layout: {
535
+ 'line-cap': 'round'
536
+ },
537
+ paint: {
538
+ 'line-width': {
539
+ stops: [
540
+ [15, 0],
541
+ [16, 5],
542
+ [18, 7],
543
+ [19, 12],
544
+ [20, 22]
545
+ ]
546
+ },
547
+ 'line-color': 'rgb(220,220,220)'
548
+ }
549
+ },
550
+ {
551
+ id: 'way-path:outline',
552
+ type: 'line',
553
+ 'source-layer': 'streets',
554
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'path']],
555
+ minzoom: 15,
556
+ layout: {
557
+ 'line-cap': 'round'
558
+ },
559
+ paint: {
560
+ 'line-width': {
561
+ stops: [
562
+ [15, 0],
563
+ [16, 5],
564
+ [18, 7],
565
+ [19, 12],
566
+ [20, 22]
567
+ ]
568
+ },
569
+ 'line-color': 'rgb(220,220,220)'
570
+ }
571
+ },
572
+ {
573
+ id: 'way-cycleway:outline',
574
+ type: 'line',
575
+ 'source-layer': 'streets',
576
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'cycleway']],
577
+ layout: {
578
+ 'line-cap': 'round'
579
+ },
580
+ paint: {
581
+ 'line-width': {
582
+ stops: [
583
+ [15, 0],
584
+ [16, 5],
585
+ [18, 7],
586
+ [19, 12],
587
+ [20, 22]
588
+ ]
589
+ },
590
+ 'line-color': 'rgb(222,222,222)'
591
+ },
592
+ minzoom: 15
593
+ },
594
+ {
595
+ id: 'street-track:outline',
596
+ type: 'line',
597
+ 'source-layer': 'streets',
598
+ filter: ['all', ['==', 'kind', 'track'], ['!=', 'bridge', true], ['!=', 'tunnel', true]],
599
+ paint: {
600
+ 'line-color': 'hsl(36,0%,80%)',
601
+ 'line-width': {
602
+ stops: [
603
+ [14, 2],
604
+ [16, 4],
605
+ [18, 18],
606
+ [19, 48],
607
+ [20, 96]
608
+ ]
609
+ },
610
+ 'line-opacity': {
611
+ stops: [
612
+ [14, 0],
613
+ [15, 1]
614
+ ]
615
+ }
616
+ },
617
+ layout: {
618
+ 'line-join': 'round',
619
+ 'line-cap': 'round'
620
+ }
621
+ },
622
+ {
623
+ id: 'street-pedestrian:outline',
624
+ type: 'line',
625
+ 'source-layer': 'streets',
626
+ filter: ['all', ['==', 'kind', 'pedestrian'], ['!=', 'bridge', true], ['!=', 'tunnel', true]],
627
+ paint: {
628
+ 'line-color': 'hsl(36,0%,80%)',
629
+ 'line-width': {
630
+ stops: [
631
+ [12, 2],
632
+ [14, 3],
633
+ [16, 6],
634
+ [18, 26],
635
+ [19, 64],
636
+ [20, 128]
637
+ ]
638
+ },
639
+ 'line-opacity': {
640
+ stops: [
641
+ [12, 0],
642
+ [13, 1]
643
+ ]
644
+ }
645
+ },
646
+ layout: {
647
+ 'line-join': 'round',
648
+ 'line-cap': 'round'
649
+ }
650
+ },
651
+ {
652
+ id: 'way-footway',
653
+ type: 'line',
654
+ 'source-layer': 'streets',
655
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'footway']],
656
+ layout: {
657
+ 'line-cap': 'round'
658
+ },
659
+ paint: {
660
+ 'line-width': {
661
+ stops: [
662
+ [15, 0],
663
+ [16, 4],
664
+ [18, 6],
665
+ [19, 10],
666
+ [20, 20]
667
+ ]
668
+ },
669
+ 'line-color': 'rgb(245,245,245)'
670
+ },
671
+ minzoom: 15
672
+ },
673
+ {
674
+ id: 'way-steps',
675
+ type: 'line',
676
+ 'source-layer': 'streets',
677
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'steps']],
678
+ layout: {
679
+ 'line-cap': 'round'
680
+ },
681
+ paint: {
682
+ 'line-width': {
683
+ stops: [
684
+ [15, 0],
685
+ [16, 4],
686
+ [18, 6],
687
+ [19, 10],
688
+ [20, 20]
689
+ ]
690
+ },
691
+ 'line-color': 'rgb(245,245,245)'
692
+ },
693
+ minzoom: 15
694
+ },
695
+ {
696
+ id: 'way-path',
697
+ type: 'line',
698
+ 'source-layer': 'streets',
699
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'path']],
700
+ layout: {
701
+ 'line-cap': 'round'
702
+ },
703
+ paint: {
704
+ 'line-width': {
705
+ stops: [
706
+ [15, 0],
707
+ [16, 4],
708
+ [18, 6],
709
+ [19, 10],
710
+ [20, 20]
711
+ ]
712
+ },
713
+ 'line-color': 'rgb(245,245,245)'
714
+ },
715
+ minzoom: 15
716
+ },
717
+ {
718
+ id: 'way-cycleway',
719
+ type: 'line',
720
+ 'source-layer': 'streets',
721
+ filter: ['all', ['!=', 'bridge', true], ['!=', 'tunnel', true], ['in', 'kind', 'cycleway']],
722
+ layout: {
723
+ 'line-cap': 'round'
724
+ },
725
+ paint: {
726
+ 'line-width': {
727
+ stops: [
728
+ [15, 0],
729
+ [16, 4],
730
+ [18, 6],
731
+ [19, 10],
732
+ [20, 20]
733
+ ]
734
+ },
735
+ 'line-color': 'hsl(203,0%,97%)'
736
+ },
737
+ minzoom: 15
738
+ },
739
+ {
740
+ id: 'street-track',
741
+ type: 'line',
742
+ 'source-layer': 'streets',
743
+ filter: ['all', ['==', 'kind', 'track'], ['!=', 'bridge', true], ['!=', 'tunnel', true]],
744
+ paint: {
745
+ 'line-color': 'hsl(0,0%,100%)',
746
+ 'line-width': {
747
+ stops: [
748
+ [14, 1],
749
+ [16, 3],
750
+ [18, 16],
751
+ [19, 44],
752
+ [20, 88]
753
+ ]
754
+ },
755
+ 'line-opacity': {
756
+ stops: [
757
+ [14, 0],
758
+ [15, 1]
759
+ ]
760
+ }
761
+ },
762
+ layout: {
763
+ 'line-join': 'round',
764
+ 'line-cap': 'round'
765
+ }
766
+ },
767
+ {
768
+ id: 'street-pedestrian',
769
+ type: 'line',
770
+ 'source-layer': 'streets',
771
+ filter: ['all', ['==', 'kind', 'pedestrian'], ['!=', 'bridge', true], ['!=', 'tunnel', true]],
772
+ paint: {
773
+ 'line-color': tokens.street_tertiary,
774
+ 'line-width': {
775
+ stops: [
776
+ [12, 1],
777
+ [14, 2],
778
+ [16, 5],
779
+ [18, 24],
780
+ [19, 60],
781
+ [20, 120]
782
+ ]
783
+ },
784
+ 'line-opacity': {
785
+ stops: [
786
+ [12, 0],
787
+ [13, 0],
788
+ [14, 1]
789
+ ]
790
+ }
791
+ },
792
+ layout: {
793
+ 'line-join': 'round',
794
+ 'line-cap': 'round'
795
+ }
796
+ },
797
+ {
798
+ id: 'street-track-bicycle',
799
+ type: 'line',
800
+ 'source-layer': 'streets',
801
+ filter: [
802
+ 'all',
803
+ ['==', 'kind', 'track'],
804
+ ['==', 'bicycle', 'designated'],
805
+ ['!=', 'bridge', true],
806
+ ['!=', 'tunnel', true]
807
+ ],
808
+ paint: {
809
+ 'line-color': 'hsl(0,0%,100%)'
810
+ },
811
+ layout: {
812
+ 'line-join': 'round',
813
+ 'line-cap': 'round'
814
+ }
815
+ },
816
+ {
817
+ id: 'street-pedestrian-bicycle',
818
+ type: 'line',
819
+ 'source-layer': 'streets',
820
+ filter: [
821
+ 'all',
822
+ ['==', 'kind', 'pedestrian'],
823
+ ['==', 'bicycle', 'designated'],
824
+ ['!=', 'bridge', true],
825
+ ['!=', 'tunnel', true]
826
+ ],
827
+ paint: {
828
+ 'line-color': 'hsl(203,0%,97%)',
829
+ 'line-width': {
830
+ stops: [
831
+ [12, 1],
832
+ [14, 2],
833
+ [16, 5],
834
+ [18, 24],
835
+ [19, 60],
836
+ [20, 120]
837
+ ]
838
+ },
839
+ 'line-opacity': {
840
+ stops: [
841
+ [12, 0],
842
+ [13, 1]
843
+ ]
844
+ }
845
+ },
846
+ layout: street_layout
847
+ },
848
+ {
849
+ id: 'street-service-bicycle',
850
+ type: 'line',
851
+ 'source-layer': 'streets',
852
+ filter: [
853
+ 'all',
854
+ ['==', 'kind', 'service'],
855
+ ['==', 'bicycle', 'designated'],
856
+ ['!=', 'bridge', true],
857
+ ['!=', 'tunnel', true],
858
+ ['!=', 'service', 'driveway']
859
+ ],
860
+ paint: {
861
+ 'line-color': 'hsl(0,0%,100%)'
862
+ },
863
+ layout: {
864
+ 'line-join': 'round',
865
+ 'line-cap': 'round'
866
+ }
867
+ },
868
+ {
869
+ id: 'street-livingstreet-bicycle',
870
+ type: 'line',
871
+ 'source-layer': 'streets',
872
+ filter: [
873
+ 'all',
874
+ ['==', 'kind', 'living_street'],
875
+ ['==', 'bicycle', 'designated'],
876
+ ['!=', 'bridge', true],
877
+ ['!=', 'tunnel', true]
878
+ ],
879
+ paint: {
880
+ 'line-color': 'hsl(203,0%,97%)',
881
+ 'line-width': {
882
+ stops: [
883
+ [12, 1],
884
+ [14, 2],
885
+ [16, 5],
886
+ [18, 24],
887
+ [19, 60],
888
+ [20, 120]
889
+ ]
890
+ },
891
+ 'line-opacity': {
892
+ stops: [
893
+ [12, 0],
894
+ [13, 1]
895
+ ]
896
+ }
897
+ },
898
+ layout: street_layout
899
+ },
900
+ {
901
+ id: 'street-residential-bicycle',
902
+ type: 'line',
903
+ 'source-layer': 'streets',
904
+ filter: [
905
+ 'all',
906
+ ['==', 'kind', 'residential'],
907
+ ['==', 'bicycle', 'designated'],
908
+ ['!=', 'bridge', true],
909
+ ['!=', 'tunnel', true]
910
+ ],
911
+ paint: {
912
+ 'line-color': street_residential.line_color,
913
+ 'line-width': street_residential.line_width,
914
+ 'line-opacity': street_residential.line_opacity
915
+ },
916
+ layout: street_layout
917
+ },
918
+ {
919
+ id: 'street-unclassified-bicycle',
920
+ type: 'line',
921
+ 'source-layer': 'streets',
922
+ filter: [
923
+ 'all',
924
+ ['==', 'kind', 'unclassified'],
925
+ ['==', 'bicycle', 'designated'],
926
+ ['!=', 'bridge', true],
927
+ ['!=', 'tunnel', true]
928
+ ],
929
+ paint: {
930
+ 'line-color': 'hsl(203,0%,97%)',
931
+ 'line-width': {
932
+ stops: [
933
+ [12, 1],
934
+ [14, 2],
935
+ [16, 5],
936
+ [18, 24],
937
+ [19, 60],
938
+ [20, 120]
939
+ ]
940
+ },
941
+ 'line-opacity': {
942
+ stops: [
943
+ [12, 0],
944
+ [13, 1]
945
+ ]
946
+ }
947
+ },
948
+ layout: street_layout
949
+ }
950
+ ].map((el) => {
951
+ return { source: 'versatiles-osm', ...el };
952
+ });
953
+ const walkingBridges = [
954
+ {
955
+ id: 'bridge-way-footway:bridge',
956
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'footway']],
957
+ layout: {
958
+ 'line-cap': 'butt',
959
+ 'line-join': 'round'
960
+ },
961
+ paint: {
962
+ 'line-color': 'rgb(239,239,239)',
963
+ 'line-opacity': 0.5,
964
+ 'line-width': {
965
+ stops: [
966
+ [15, 0],
967
+ [16, 7],
968
+ [18, 10],
969
+ [19, 17],
970
+ [20, 31]
971
+ ]
972
+ }
973
+ },
974
+ minzoom: 15
975
+ },
976
+ {
977
+ id: 'bridge-way-steps:bridge',
978
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'steps']],
979
+ layout: {
980
+ 'line-cap': 'butt',
981
+ 'line-join': 'round'
982
+ },
983
+ paint: {
984
+ 'line-color': 'rgb(239,239,239)',
985
+ 'line-opacity': 0.5,
986
+ 'line-width': {
987
+ stops: [
988
+ [15, 0],
989
+ [16, 7],
990
+ [18, 10],
991
+ [19, 17],
992
+ [20, 31]
993
+ ]
994
+ }
995
+ },
996
+ minzoom: 15
997
+ },
998
+ {
999
+ id: 'bridge-way-path:bridge',
1000
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'path']],
1001
+ layout: {
1002
+ 'line-cap': 'butt',
1003
+ 'line-join': 'round'
1004
+ },
1005
+ paint: {
1006
+ 'line-color': 'rgb(239,239,239)',
1007
+ 'line-opacity': 0.5,
1008
+ 'line-width': {
1009
+ stops: [
1010
+ [15, 0],
1011
+ [16, 7],
1012
+ [18, 10],
1013
+ [19, 17],
1014
+ [20, 31]
1015
+ ]
1016
+ }
1017
+ },
1018
+ minzoom: 15
1019
+ },
1020
+ {
1021
+ id: 'bridge-way-cycleway:bridge',
1022
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'cycleway']],
1023
+ layout: {
1024
+ 'line-cap': 'butt',
1025
+ 'line-join': 'round'
1026
+ },
1027
+ paint: {
1028
+ 'line-color': 'rgb(239,239,239)',
1029
+ 'line-opacity': 0.5,
1030
+ 'line-width': {
1031
+ stops: [
1032
+ [15, 0],
1033
+ [16, 7],
1034
+ [18, 10],
1035
+ [19, 17],
1036
+ [20, 31]
1037
+ ]
1038
+ }
1039
+ },
1040
+ minzoom: 15
1041
+ },
1042
+ {
1043
+ id: 'bridge-street-track:bridge',
1044
+ filter: ['all', ['==', 'kind', 'track'], ['==', 'bridge', true]],
1045
+ layout: {
1046
+ 'line-cap': 'butt',
1047
+ 'line-join': 'round'
1048
+ },
1049
+ paint: {
1050
+ 'line-color': 'rgb(239,239,239)',
1051
+ 'line-opacity': {
1052
+ stops: [
1053
+ [14, 0],
1054
+ [15, 1]
1055
+ ]
1056
+ },
1057
+ 'line-width': {
1058
+ stops: [
1059
+ [14, 3],
1060
+ [16, 6],
1061
+ [18, 25],
1062
+ [19, 67],
1063
+ [20, 134]
1064
+ ]
1065
+ }
1066
+ }
1067
+ },
1068
+ {
1069
+ id: 'bridge-street-pedestrian:bridge',
1070
+ filter: ['all', ['==', 'kind', 'pedestrian'], ['==', 'bridge', true]],
1071
+ layout: {
1072
+ 'line-cap': 'butt',
1073
+ 'line-join': 'round'
1074
+ },
1075
+ paint: {
1076
+ 'line-color': 'rgb(239,239,239)',
1077
+ 'line-opacity': {
1078
+ stops: [
1079
+ [12, 0],
1080
+ [13, 1]
1081
+ ]
1082
+ },
1083
+ 'line-width': {
1084
+ stops: [
1085
+ [12, 3],
1086
+ [14, 4],
1087
+ [16, 8],
1088
+ [18, 36],
1089
+ [19, 90],
1090
+ [20, 179]
1091
+ ]
1092
+ }
1093
+ }
1094
+ },
1095
+ {
1096
+ id: 'bridge-street-pedestrian-zone',
1097
+ type: 'fill',
1098
+ 'source-layer': 'street_polygons',
1099
+ filter: ['all', ['==', 'bridge', true], ['==', 'kind', 'pedestrian']],
1100
+ paint: {
1101
+ 'fill-color': 'hsl(0,0%,100%)',
1102
+ 'fill-opacity': {
1103
+ stops: [
1104
+ [12, 0],
1105
+ [13, 1]
1106
+ ]
1107
+ }
1108
+ }
1109
+ },
1110
+ {
1111
+ id: 'bridge-way-footway:outline',
1112
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'footway']],
1113
+ minzoom: 15,
1114
+ layout: {
1115
+ 'line-cap': 'butt'
1116
+ },
1117
+ paint: {
1118
+ 'line-width': {
1119
+ stops: [
1120
+ [15, 0],
1121
+ [16, 5],
1122
+ [18, 7],
1123
+ [19, 12],
1124
+ [20, 22]
1125
+ ]
1126
+ },
1127
+ 'line-color': 'rgb(220,220,220)'
1128
+ }
1129
+ },
1130
+ {
1131
+ id: 'bridge-way-steps:outline',
1132
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'steps']],
1133
+ minzoom: 15,
1134
+ layout: {
1135
+ 'line-cap': 'butt'
1136
+ },
1137
+ paint: {
1138
+ 'line-width': {
1139
+ stops: [
1140
+ [15, 0],
1141
+ [16, 5],
1142
+ [18, 7],
1143
+ [19, 12],
1144
+ [20, 22]
1145
+ ]
1146
+ },
1147
+ 'line-color': 'rgb(220,220,220)'
1148
+ }
1149
+ },
1150
+ {
1151
+ id: 'bridge-way-path:outline',
1152
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'path']],
1153
+ layout: {
1154
+ 'line-cap': 'butt'
1155
+ },
1156
+ paint: {
1157
+ 'line-width': {
1158
+ stops: [
1159
+ [15, 0],
1160
+ [16, 5],
1161
+ [18, 7],
1162
+ [19, 12],
1163
+ [20, 22]
1164
+ ]
1165
+ },
1166
+ 'line-color': 'rgb(220,220,220)'
1167
+ },
1168
+ minzoom: 15
1169
+ },
1170
+ {
1171
+ id: 'bridge-way-cycleway:outline',
1172
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'cycleway']],
1173
+ layout: {
1174
+ 'line-cap': 'butt'
1175
+ },
1176
+ paint: {
1177
+ 'line-width': {
1178
+ stops: [
1179
+ [15, 0],
1180
+ [16, 5],
1181
+ [18, 7],
1182
+ [19, 12],
1183
+ [20, 22]
1184
+ ]
1185
+ },
1186
+ 'line-color': 'rgb(222,222,222)'
1187
+ },
1188
+ minzoom: 15
1189
+ },
1190
+ {
1191
+ id: 'bridge-street-track:outline',
1192
+ filter: ['all', ['==', 'kind', 'track'], ['==', 'bridge', true]],
1193
+ paint: {
1194
+ 'line-color': 'rgb(217,217,217)',
1195
+ 'line-width': {
1196
+ stops: [
1197
+ [14, 2],
1198
+ [16, 4],
1199
+ [18, 18],
1200
+ [19, 48],
1201
+ [20, 96]
1202
+ ]
1203
+ },
1204
+ 'line-opacity': {
1205
+ stops: [
1206
+ [14, 0],
1207
+ [15, 1]
1208
+ ]
1209
+ }
1210
+ },
1211
+ layout: street_layout
1212
+ },
1213
+ {
1214
+ id: 'bridge-street-pedestrian:outline',
1215
+ filter: ['all', ['==', 'kind', 'pedestrian'], ['==', 'bridge', true]],
1216
+ paint: {
1217
+ 'line-color': 'rgb(217,217,217)',
1218
+ 'line-width': {
1219
+ stops: [
1220
+ [12, 2],
1221
+ [14, 3],
1222
+ [16, 6],
1223
+ [18, 26],
1224
+ [19, 64],
1225
+ [20, 128]
1226
+ ]
1227
+ },
1228
+ 'line-opacity': {
1229
+ stops: [
1230
+ [12, 0],
1231
+ [13, 1]
1232
+ ]
1233
+ }
1234
+ },
1235
+ layout: street_layout
1236
+ },
1237
+ {
1238
+ id: 'bridge-way-footway',
1239
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'footway']],
1240
+ layout: {
1241
+ 'line-cap': 'butt'
1242
+ },
1243
+ paint: {
1244
+ 'line-width': {
1245
+ stops: [
1246
+ [15, 0],
1247
+ [16, 4],
1248
+ [18, 6],
1249
+ [19, 10],
1250
+ [20, 20]
1251
+ ]
1252
+ },
1253
+ 'line-color': 'rgb(245,245,245)'
1254
+ },
1255
+ minzoom: 15
1256
+ },
1257
+ {
1258
+ id: 'bridge-way-steps',
1259
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'steps']],
1260
+ layout: {
1261
+ 'line-cap': 'butt'
1262
+ },
1263
+ paint: {
1264
+ 'line-width': {
1265
+ stops: [
1266
+ [15, 0],
1267
+ [16, 4],
1268
+ [18, 6],
1269
+ [19, 10],
1270
+ [20, 20]
1271
+ ]
1272
+ },
1273
+ 'line-color': 'rgb(245,245,245)'
1274
+ },
1275
+ minzoom: 15
1276
+ },
1277
+ {
1278
+ id: 'bridge-way-path',
1279
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'path']],
1280
+ layout: {
1281
+ 'line-cap': 'butt'
1282
+ },
1283
+ paint: {
1284
+ 'line-width': {
1285
+ stops: [
1286
+ [15, 0],
1287
+ [16, 4],
1288
+ [18, 6],
1289
+ [19, 10],
1290
+ [20, 20]
1291
+ ]
1292
+ },
1293
+ 'line-color': 'rgb(245,245,245)'
1294
+ },
1295
+ minzoom: 15
1296
+ },
1297
+ {
1298
+ id: 'bridge-way-cycleway',
1299
+ filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'cycleway']],
1300
+ layout: {
1301
+ 'line-cap': 'butt'
1302
+ },
1303
+ paint: {
1304
+ 'line-width': {
1305
+ stops: [
1306
+ [15, 0],
1307
+ [16, 4],
1308
+ [18, 6],
1309
+ [19, 10],
1310
+ [20, 20]
1311
+ ]
1312
+ },
1313
+ 'line-color': 'hsl(203,0%,97%)'
1314
+ },
1315
+ minzoom: 15
1316
+ },
1317
+ {
1318
+ id: 'bridge-street-track',
1319
+ filter: ['all', ['==', 'kind', 'track'], ['==', 'bridge', true]],
1320
+ paint: {
1321
+ 'line-color': 'hsl(0,0%,100%)',
1322
+ 'line-width': {
1323
+ stops: [
1324
+ [14, 1],
1325
+ [16, 3],
1326
+ [18, 16],
1327
+ [19, 44],
1328
+ [20, 88]
1329
+ ]
1330
+ },
1331
+ 'line-opacity': {
1332
+ stops: [
1333
+ [14, 0],
1334
+ [15, 1]
1335
+ ]
1336
+ }
1337
+ },
1338
+ layout: street_layout
1339
+ },
1340
+ {
1341
+ id: 'bridge-street-pedestrian',
1342
+ filter: ['all', ['==', 'kind', 'pedestrian'], ['==', 'bridge', true]],
1343
+ paint: {
1344
+ 'line-color': 'hsl(0,0%,100%)',
1345
+ 'line-width': {
1346
+ stops: [
1347
+ [12, 1],
1348
+ [14, 2],
1349
+ [16, 5],
1350
+ [18, 24],
1351
+ [19, 60],
1352
+ [20, 120]
1353
+ ]
1354
+ },
1355
+ 'line-opacity': {
1356
+ stops: [
1357
+ [12, 0],
1358
+ [13, 1]
1359
+ ]
1360
+ }
1361
+ },
1362
+ layout: street_layout
1363
+ },
1364
+ {
1365
+ id: 'bridge-street-track-bicycle',
1366
+ filter: [
1367
+ 'all',
1368
+ ['==', 'kind', 'track'],
1369
+ ['==', 'bicycle', 'designated'],
1370
+ ['==', 'bridge', true]
1371
+ ],
1372
+ paint: {
1373
+ 'line-color': 'hsl(0,0%,100%)'
1374
+ },
1375
+ layout: street_layout
1376
+ },
1377
+ {
1378
+ id: 'bridge-street-pedestrian-bicycle',
1379
+ filter: [
1380
+ 'all',
1381
+ ['==', 'kind', 'pedestrian'],
1382
+ ['==', 'bicycle', 'designated'],
1383
+ ['==', 'bridge', true]
1384
+ ],
1385
+ paint: {
1386
+ 'line-color': 'hsl(203,0%,97%)',
1387
+ 'line-width': {
1388
+ stops: [
1389
+ [12, 1],
1390
+ [14, 2],
1391
+ [16, 5],
1392
+ [18, 24],
1393
+ [19, 60],
1394
+ [20, 120]
1395
+ ]
1396
+ },
1397
+ 'line-opacity': {
1398
+ stops: [
1399
+ [12, 0],
1400
+ [13, 1]
1401
+ ]
1402
+ }
1403
+ },
1404
+ layout: street_layout
1405
+ },
1406
+ {
1407
+ id: 'bridge-street-service-bicycle',
1408
+ filter: [
1409
+ 'all',
1410
+ ['==', 'kind', 'service'],
1411
+ ['==', 'bicycle', 'designated'],
1412
+ ['==', 'bridge', true],
1413
+ ['!=', 'service', 'driveway']
1414
+ ],
1415
+ paint: {
1416
+ 'line-color': 'hsl(0,0%,100%)'
1417
+ },
1418
+ layout: street_layout
1419
+ },
1420
+ {
1421
+ id: 'bridge-street-livingstreet-bicycle',
1422
+ filter: [
1423
+ 'all',
1424
+ ['==', 'kind', 'living_street'],
1425
+ ['==', 'bicycle', 'designated'],
1426
+ ['==', 'bridge', true]
1427
+ ],
1428
+ paint: {
1429
+ 'line-color': 'hsl(203,0%,97%)',
1430
+ 'line-width': {
1431
+ stops: [
1432
+ [12, 1],
1433
+ [14, 2],
1434
+ [16, 5],
1435
+ [18, 24],
1436
+ [19, 60],
1437
+ [20, 120]
1438
+ ]
1439
+ },
1440
+ 'line-opacity': {
1441
+ stops: [
1442
+ [12, 0],
1443
+ [13, 1]
1444
+ ]
1445
+ }
1446
+ },
1447
+ layout: street_layout
1448
+ },
1449
+ {
1450
+ id: 'bridge-street-residential-bicycle',
1451
+ filter: [
1452
+ 'all',
1453
+ ['==', 'kind', 'residential'],
1454
+ ['==', 'bicycle', 'designated'],
1455
+ ['==', 'bridge', true]
1456
+ ],
1457
+ paint: {
1458
+ 'line-color': street_residential.line_color,
1459
+ 'line-width': street_residential.line_width,
1460
+ 'line-opacity': street_residential.line_opacity
1461
+ },
1462
+ layout: street_layout
1463
+ },
1464
+ {
1465
+ id: 'bridge-street-unclassified-bicycle',
1466
+ filter: [
1467
+ 'all',
1468
+ ['==', 'kind', 'unclassified'],
1469
+ ['==', 'bicycle', 'designated'],
1470
+ ['==', 'bridge', true]
1471
+ ],
1472
+ paint: {
1473
+ 'line-color': 'hsl(203,0%,97%)',
1474
+ 'line-width': {
1475
+ stops: [
1476
+ [12, 1],
1477
+ [14, 2],
1478
+ [16, 5],
1479
+ [18, 24],
1480
+ [19, 60],
1481
+ [20, 120]
1482
+ ]
1483
+ },
1484
+ 'line-opacity': {
1485
+ stops: [
1486
+ [12, 0],
1487
+ [13, 1]
1488
+ ]
1489
+ }
1490
+ },
1491
+ layout: street_layout
1492
+ }
1493
+ ].map((el) => {
1494
+ return {
1495
+ type: 'line',
1496
+ 'source-layer': 'streets',
1497
+ source: 'versatiles-osm',
1498
+ ...el
1499
+ };
1500
+ });
1501
+ const walkingLabels = [
1502
+ {
1503
+ source: 'versatiles-osm',
1504
+ id: 'label-street-pedestrian',
1505
+ type: 'symbol',
1506
+ 'source-layer': 'street_labels',
1507
+ filter: ['==', 'kind', 'pedestrian'],
1508
+ minzoom: 14,
1509
+ layout: {
1510
+ 'text-field': '{name_de}',
1511
+ 'text-font': tokens.sans_regular,
1512
+ 'symbol-placement': 'line',
1513
+ 'text-anchor': 'center',
1514
+ 'text-size': {
1515
+ stops: [
1516
+ [12, 10],
1517
+ [15, 13]
1518
+ ]
1519
+ }
1520
+ },
1521
+ paint: {
1522
+ 'text-color': 'hsl(240,0%,23%)',
1523
+ 'text-halo-color': 'hsla(0,0%,100%,0.8)',
1524
+ 'text-halo-width': 2,
1525
+ 'text-halo-blur': 1
1526
+ }
1527
+ }
1528
+ ];
1529
+ return { walkingTunnels, walkingSurface, walkingBridges, walkingLabels };
1530
+ }