@panoramax/web-viewer 4.4.0-develop-3839b5a4 → 4.4.0-develop-f91f6758

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 (341) hide show
  1. package/{src → build}/components/core/Basic.js +22 -16
  2. package/{src → build}/components/core/CoverageMap.js +19 -14
  3. package/{src → build}/components/core/Editor.js +16 -16
  4. package/{src → build}/components/core/PhotoViewer.js +30 -29
  5. package/{src → build}/components/core/Viewer.js +21 -20
  6. package/build/components/core/index.js +10 -0
  7. package/build/components/index.js +11 -0
  8. package/build/components/index_photoviewer.js +6 -0
  9. package/{src → build}/components/layout/BottomDrawer.js +4 -4
  10. package/{src → build}/components/layout/CorneredGrid.js +1 -1
  11. package/{src → build}/components/layout/Mini.js +5 -4
  12. package/{src → build}/components/layout/Tabs.js +1 -1
  13. package/build/components/layout/index.js +9 -0
  14. package/{src → build}/components/menus/LocationPrecisionDoc.js +4 -6
  15. package/{src → build}/components/menus/MapBackground.js +4 -6
  16. package/{src → build}/components/menus/MapFilters.js +16 -21
  17. package/{src → build}/components/menus/MapLayers.js +20 -24
  18. package/{src → build}/components/menus/MapLegend.js +3 -4
  19. package/{src → build}/components/menus/MiniPictureLegend.js +3 -4
  20. package/{src → build}/components/menus/PictureLegend.js +10 -15
  21. package/{src → build}/components/menus/PictureMetadata.js +12 -19
  22. package/{src → build}/components/menus/PlayerOptions.js +5 -7
  23. package/{src → build}/components/menus/QualityScoreDoc.js +3 -4
  24. package/{src → build}/components/menus/ReportForm.js +8 -9
  25. package/{src → build}/components/menus/SemanticsDoc.js +3 -4
  26. package/{src → build}/components/menus/SemanticsDownload.js +3 -3
  27. package/{src → build}/components/menus/SemanticsFilters.js +7 -8
  28. package/{src → build}/components/menus/SemanticsList.js +11 -18
  29. package/{src → build}/components/menus/SemanticsMetadata.js +8 -11
  30. package/{src → build}/components/menus/Share.js +6 -7
  31. package/build/components/menus/index.js +22 -0
  32. package/build/components/menus/index_photoviewer.js +11 -0
  33. package/{src → build}/components/styles.js +0 -2
  34. package/{src → build}/components/ui/AnnotationsSwitch.js +6 -8
  35. package/{src → build}/components/ui/Button.js +1 -1
  36. package/{src → build}/components/ui/ButtonGroup.js +2 -1
  37. package/{src → build}/components/ui/CopyButton.js +4 -6
  38. package/{src → build}/components/ui/Grade.js +5 -5
  39. package/{src → build}/components/ui/GradeFilter.js +3 -3
  40. package/{src → build}/components/ui/IconSwitch.js +1 -1
  41. package/{src → build}/components/ui/LinkButton.js +1 -1
  42. package/{src → build}/components/ui/ListGroup.js +3 -3
  43. package/{src → build}/components/ui/ListItem.js +1 -1
  44. package/{src → build}/components/ui/Loader.js +8 -7
  45. package/{src → build}/components/ui/Map.js +38 -26
  46. package/{src → build}/components/ui/MapMore.js +7 -7
  47. package/{src → build}/components/ui/Photo.js +29 -27
  48. package/{src → build}/components/ui/Popup.js +4 -4
  49. package/{src → build}/components/ui/QualityScore.js +4 -4
  50. package/{src → build}/components/ui/SearchBar.js +6 -7
  51. package/{src → build}/components/ui/SemanticsEditor.js +14 -15
  52. package/{src → build}/components/ui/SemanticsTable.js +4 -5
  53. package/{src → build}/components/ui/Switch.js +1 -1
  54. package/{src → build}/components/ui/TogglableGroup.js +4 -4
  55. package/build/components/ui/index.js +29 -0
  56. package/build/components/ui/index_photoviewer.js +21 -0
  57. package/{src → build}/components/ui/widgets/CopyCoordinates.js +5 -5
  58. package/{src → build}/components/ui/widgets/GeoSearch.js +10 -10
  59. package/{src → build}/components/ui/widgets/Legend.js +9 -8
  60. package/{src → build}/components/ui/widgets/LevelSelect.js +9 -7
  61. package/{src → build}/components/ui/widgets/MapFiltersButton.js +5 -5
  62. package/{src → build}/components/ui/widgets/MapLayersButton.js +5 -5
  63. package/{src → build}/components/ui/widgets/OSMEditors.js +8 -8
  64. package/{src → build}/components/ui/widgets/PictureLegendActions.js +4 -4
  65. package/{src → build}/components/ui/widgets/Player.js +6 -7
  66. package/{src → build}/components/ui/widgets/SemanticsFiltersButton.js +6 -7
  67. package/{src → build}/components/ui/widgets/Zoom.js +6 -6
  68. package/build/components/ui/widgets/index.js +16 -0
  69. package/build/components/ui/widgets/index_photoviewer.js +7 -0
  70. package/build/editor.html +94 -10
  71. package/{src → build}/img/arrow_triangle.svg +0 -1
  72. package/{src → build}/img/arrow_turn.svg +0 -1
  73. package/build/index.html +111 -1
  74. package/build/index.js +6 -95
  75. package/build/index_photoviewer.js +4 -0
  76. package/build/map.html +97 -1
  77. package/build/package.json +141 -0
  78. package/build/photo.html +85 -1
  79. package/build/servers.js +3 -4
  80. package/{src → build}/utils/API.js +33 -33
  81. package/{src → build}/utils/InitParameters.js +11 -9
  82. package/{src → build}/utils/MapStyleComposer.js +39 -37
  83. package/{src → build}/utils/PhotoAdapter.js +1 -0
  84. package/{src → build}/utils/PresetsManager.js +4 -4
  85. package/{src → build}/utils/SemanticsMapProtocol.js +3 -4
  86. package/{src → build}/utils/URLHandler.js +16 -14
  87. package/{src → build}/utils/geocoder.js +5 -5
  88. package/{src → build}/utils/i18n.js +21 -20
  89. package/build/utils/index.js +17 -0
  90. package/build/utils/index_photoviewer.js +14 -0
  91. package/{src → build}/utils/indoor.js +9 -5
  92. package/{src → build}/utils/map.js +15 -11
  93. package/{src → build}/utils/picture.js +22 -17
  94. package/{src → build}/utils/semantics.js +9 -5
  95. package/{src → build}/utils/utils.js +8 -4
  96. package/{src → build}/utils/widgets.js +2 -2
  97. package/build/viewer.html +120 -35
  98. package/build/viewer_indoor.html +90 -8
  99. package/build/widgets.html +410 -1
  100. package/package.json +81 -204
  101. package/.dockerignore +0 -7
  102. package/.gitlab-ci.yml +0 -78
  103. package/CHANGELOG.md +0 -853
  104. package/CODE_OF_CONDUCT.md +0 -134
  105. package/Dockerfile +0 -14
  106. package/build/index.css +0 -36
  107. package/build/index.css.map +0 -1
  108. package/build/index.js.map +0 -1
  109. package/build/photoviewer.css +0 -36
  110. package/build/photoviewer.css.map +0 -1
  111. package/build/photoviewer.js +0 -86
  112. package/build/photoviewer.js.map +0 -1
  113. package/build/static/media/atkinson-hyperlegible-next-latin-400-normal..woff +0 -0
  114. package/build/static/media/atkinson-hyperlegible-next-latin-400-normal..woff2 +0 -0
  115. package/build/static/media/atkinson-hyperlegible-next-latin-ext-400-normal..woff +0 -0
  116. package/build/static/media/atkinson-hyperlegible-next-latin-ext-400-normal..woff2 +0 -0
  117. package/config/env.js +0 -104
  118. package/config/getHttpsConfig.js +0 -69
  119. package/config/getPackageJson.js +0 -25
  120. package/config/jest/babelTransform.js +0 -29
  121. package/config/jest/cssTransform.js +0 -14
  122. package/config/jest/fileTransform.js +0 -40
  123. package/config/jest/mocks.js +0 -230
  124. package/config/modules.js +0 -134
  125. package/config/paths.js +0 -76
  126. package/config/pnpTs.js +0 -35
  127. package/config/webpack/persistentCache/createEnvironmentHash.js +0 -9
  128. package/config/webpack.config.js +0 -825
  129. package/config/webpackDevServer.config.js +0 -131
  130. package/docs/03_URL_settings.md +0 -218
  131. package/docs/05_Compatibility.md +0 -83
  132. package/docs/09_Develop.md +0 -141
  133. package/docs/90_Releases.md +0 -27
  134. package/docs/images/class_diagram.drawio +0 -144
  135. package/docs/images/class_diagram.jpg +0 -0
  136. package/docs/images/comparative_3drender.jpg +0 -0
  137. package/docs/images/indoor_level.png +0 -0
  138. package/docs/images/screenshot.jpg +0 -0
  139. package/docs/index.md +0 -159
  140. package/docs/reference/components/core/Basic.md +0 -211
  141. package/docs/reference/components/core/CoverageMap.md +0 -220
  142. package/docs/reference/components/core/Editor.md +0 -252
  143. package/docs/reference/components/core/PhotoViewer.md +0 -320
  144. package/docs/reference/components/core/Viewer.md +0 -398
  145. package/docs/reference/components/layout/BottomDrawer.md +0 -35
  146. package/docs/reference/components/layout/CorneredGrid.md +0 -29
  147. package/docs/reference/components/layout/Mini.md +0 -45
  148. package/docs/reference/components/layout/Tabs.md +0 -46
  149. package/docs/reference/components/menus/LocationPrecisionDoc.md +0 -15
  150. package/docs/reference/components/menus/MapBackground.md +0 -32
  151. package/docs/reference/components/menus/MapFilters.md +0 -37
  152. package/docs/reference/components/menus/MapLayers.md +0 -15
  153. package/docs/reference/components/menus/MapLegend.md +0 -32
  154. package/docs/reference/components/menus/MiniPictureLegend.md +0 -15
  155. package/docs/reference/components/menus/PictureLegend.md +0 -45
  156. package/docs/reference/components/menus/PictureMetadata.md +0 -32
  157. package/docs/reference/components/menus/PlayerOptions.md +0 -15
  158. package/docs/reference/components/menus/QualityScoreDoc.md +0 -15
  159. package/docs/reference/components/menus/ReportForm.md +0 -15
  160. package/docs/reference/components/menus/SemanticsDoc.md +0 -15
  161. package/docs/reference/components/menus/SemanticsDownload.md +0 -15
  162. package/docs/reference/components/menus/SemanticsFilters.md +0 -33
  163. package/docs/reference/components/menus/SemanticsList.md +0 -97
  164. package/docs/reference/components/menus/SemanticsMetadata.md +0 -15
  165. package/docs/reference/components/menus/ShareMenu.md +0 -32
  166. package/docs/reference/components/ui/AnnotationsSwitch.md +0 -32
  167. package/docs/reference/components/ui/Button.md +0 -40
  168. package/docs/reference/components/ui/ButtonGroup.md +0 -36
  169. package/docs/reference/components/ui/CopyButton.md +0 -41
  170. package/docs/reference/components/ui/Grade.md +0 -32
  171. package/docs/reference/components/ui/GradeFilter.md +0 -42
  172. package/docs/reference/components/ui/IconSwitch.md +0 -53
  173. package/docs/reference/components/ui/LinkButton.md +0 -45
  174. package/docs/reference/components/ui/ListGroup.md +0 -22
  175. package/docs/reference/components/ui/ListItem.md +0 -39
  176. package/docs/reference/components/ui/Loader.md +0 -56
  177. package/docs/reference/components/ui/Map.md +0 -150
  178. package/docs/reference/components/ui/MapMore.md +0 -150
  179. package/docs/reference/components/ui/Photo.md +0 -495
  180. package/docs/reference/components/ui/Popup.md +0 -56
  181. package/docs/reference/components/ui/ProgressBar.md +0 -32
  182. package/docs/reference/components/ui/QualityScore.md +0 -45
  183. package/docs/reference/components/ui/SearchBar.md +0 -63
  184. package/docs/reference/components/ui/SemanticsEditor.md +0 -113
  185. package/docs/reference/components/ui/SemanticsTable.md +0 -32
  186. package/docs/reference/components/ui/Switch.md +0 -49
  187. package/docs/reference/components/ui/TogglableGroup.md +0 -39
  188. package/docs/reference/components/ui/widgets/CopyCoordinates.md +0 -32
  189. package/docs/reference/components/ui/widgets/GeoSearch.md +0 -36
  190. package/docs/reference/components/ui/widgets/Legend.md +0 -58
  191. package/docs/reference/components/ui/widgets/LevelSelect.md +0 -16
  192. package/docs/reference/components/ui/widgets/MapFiltersButton.md +0 -37
  193. package/docs/reference/components/ui/widgets/MapLayersButton.md +0 -15
  194. package/docs/reference/components/ui/widgets/OSMEditors.md +0 -15
  195. package/docs/reference/components/ui/widgets/PictureLegendActions.md +0 -32
  196. package/docs/reference/components/ui/widgets/Player.md +0 -34
  197. package/docs/reference/components/ui/widgets/SemanticsFiltersButton.md +0 -15
  198. package/docs/reference/components/ui/widgets/Zoom.md +0 -15
  199. package/docs/reference/utils/API.md +0 -389
  200. package/docs/reference/utils/InitParameters.md +0 -68
  201. package/docs/reference/utils/MapStyleComposer.md +0 -408
  202. package/docs/reference/utils/PanoraMapProtocol.md +0 -28
  203. package/docs/reference/utils/PresetsManager.md +0 -43
  204. package/docs/reference/utils/SemanticsMapProtocol.md +0 -43
  205. package/docs/reference/utils/URLHandler.md +0 -114
  206. package/docs/reference.md +0 -99
  207. package/docs/shortcuts.md +0 -11
  208. package/docs/tutorials/aerial_imagery.md +0 -21
  209. package/docs/tutorials/authentication.md +0 -10
  210. package/docs/tutorials/custom_widgets.md +0 -59
  211. package/docs/tutorials/indoor_maps.md +0 -50
  212. package/docs/tutorials/map_style.md +0 -83
  213. package/docs/tutorials/migrate_v4.md +0 -153
  214. package/docs/tutorials/migrate_v5.md +0 -103
  215. package/docs/tutorials/semantics_overlays.md +0 -74
  216. package/docs/tutorials/synced_coverage.md +0 -43
  217. package/mkdocs.yml +0 -131
  218. package/public/editor.html +0 -53
  219. package/public/index.html +0 -70
  220. package/public/map.html +0 -55
  221. package/public/photo.html +0 -43
  222. package/public/servers.js +0 -15
  223. package/public/viewer.html +0 -79
  224. package/public/viewer_indoor.html +0 -48
  225. package/public/widgets.html +0 -366
  226. package/scripts/build.js +0 -217
  227. package/scripts/doc.js +0 -79
  228. package/scripts/start.js +0 -172
  229. package/scripts/test.js +0 -52
  230. package/src/components/core/index.js +0 -12
  231. package/src/components/index.js +0 -13
  232. package/src/components/index_photoviewer.js +0 -8
  233. package/src/components/layout/index.js +0 -9
  234. package/src/components/menus/index.js +0 -22
  235. package/src/components/menus/index_photoviewer.js +0 -13
  236. package/src/components/ui/index.js +0 -29
  237. package/src/components/ui/index_photoviewer.js +0 -23
  238. package/src/components/ui/widgets/index.js +0 -16
  239. package/src/components/ui/widgets/index_photoviewer.js +0 -9
  240. package/src/index.js +0 -8
  241. package/src/index_photoviewer.js +0 -6
  242. package/src/utils/index.js +0 -17
  243. package/src/utils/index_photoviewer.js +0 -16
  244. package/tests/components/core/Basic.test.js +0 -168
  245. package/tests/components/core/BasicMock.js +0 -25
  246. package/tests/components/core/CoverageMap.test.js +0 -20
  247. package/tests/components/core/Editor.test.js +0 -20
  248. package/tests/components/core/PhotoViewer.test.js +0 -57
  249. package/tests/components/core/Viewer.test.js +0 -85
  250. package/tests/components/core/__snapshots__/PhotoViewer.test.js.snap +0 -96
  251. package/tests/components/core/__snapshots__/Viewer.test.js.snap +0 -188
  252. package/tests/components/ui/CopyButton.test.js +0 -52
  253. package/tests/components/ui/Loader.test.js +0 -55
  254. package/tests/components/ui/Map.test.js +0 -145
  255. package/tests/components/ui/Photo.test.js +0 -437
  256. package/tests/components/ui/Popup.test.js +0 -26
  257. package/tests/components/ui/QualityScore.test.js +0 -18
  258. package/tests/components/ui/SearchBar.test.js +0 -110
  259. package/tests/components/ui/__snapshots__/CopyButton.test.js.snap +0 -33
  260. package/tests/components/ui/__snapshots__/Loader.test.js.snap +0 -56
  261. package/tests/components/ui/__snapshots__/Map.test.js.snap +0 -16
  262. package/tests/components/ui/__snapshots__/Photo.test.js.snap +0 -263
  263. package/tests/components/ui/__snapshots__/Popup.test.js.snap +0 -29
  264. package/tests/components/ui/__snapshots__/QualityScore.test.js.snap +0 -11
  265. package/tests/components/ui/__snapshots__/SearchBar.test.js.snap +0 -65
  266. package/tests/data/Map_geocoder_ban.json +0 -36
  267. package/tests/data/Map_geocoder_nominatim.json +0 -41
  268. package/tests/data/Viewer_pictures_1.json +0 -148
  269. package/tests/setupTests.js +0 -5
  270. package/tests/utils/API.test.js +0 -752
  271. package/tests/utils/InitParameters.test.js +0 -599
  272. package/tests/utils/MapStyleComposer.test.js +0 -697
  273. package/tests/utils/PresetsManager.test.js +0 -123
  274. package/tests/utils/URLHandler.test.js +0 -587
  275. package/tests/utils/__snapshots__/API.test.js.snap +0 -40
  276. package/tests/utils/__snapshots__/MapStyleComposer.test.js.snap +0 -767
  277. package/tests/utils/__snapshots__/URLHandler.test.js.snap +0 -21
  278. package/tests/utils/__snapshots__/geocoder.test.js.snap +0 -37
  279. package/tests/utils/__snapshots__/map.test.js.snap +0 -1249
  280. package/tests/utils/__snapshots__/picture.test.js.snap +0 -327
  281. package/tests/utils/__snapshots__/widgets.test.js.snap +0 -19
  282. package/tests/utils/geocoder.test.js +0 -37
  283. package/tests/utils/i18n.test.js +0 -111
  284. package/tests/utils/map.test.js +0 -200
  285. package/tests/utils/picture.test.js +0 -745
  286. package/tests/utils/semantics.test.js +0 -174
  287. package/tests/utils/utils.test.js +0 -358
  288. package/tests/utils/widgets.test.js +0 -31
  289. /package/{src → build}/components/core/Basic.css +0 -0
  290. /package/{src → build}/components/core/CoverageMap.css +0 -0
  291. /package/{src → build}/components/core/Editor.css +0 -0
  292. /package/{src → build}/components/core/PhotoViewer.css +0 -0
  293. /package/{src → build}/components/core/Viewer.css +0 -0
  294. /package/{src → build}/components/ui/ButtonGroup.css +0 -0
  295. /package/{src → build}/components/ui/Map.css +0 -0
  296. /package/{src → build}/components/ui/Photo.css +0 -0
  297. /package/{src → build}/components/ui/ProgressBar.js +0 -0
  298. /package/{src → build}/components/ui/widgets/GeoSearch.css +0 -0
  299. /package/{src → build}/components/ui/widgets/LevelSelect.css +0 -0
  300. /package/{src → build}/components/ui/widgets/Player.css +0 -0
  301. /package/{public → build}/favicon.ico +0 -0
  302. /package/{src → build}/img/arrow_360.svg +0 -0
  303. /package/{src → build}/img/arrow_flat.svg +0 -0
  304. /package/{src → build}/img/bg_aerial.jpg +0 -0
  305. /package/{src → build}/img/bg_streets.jpg +0 -0
  306. /package/{src → build}/img/loader_base.jpg +0 -0
  307. /package/{src → build}/img/logo_dead.svg +0 -0
  308. /package/{src → build}/img/marker.svg +0 -0
  309. /package/{src → build}/img/marker_blue.svg +0 -0
  310. /package/{src → build}/img/osm.svg +0 -0
  311. /package/{src → build}/img/panoramax.svg +0 -0
  312. /package/{src → build}/img/switch_big.svg +0 -0
  313. /package/{src → build}/img/switch_mini.svg +0 -0
  314. /package/{src → build}/img/wd.svg +0 -0
  315. /package/{src → build}/translations/ar.json +0 -0
  316. /package/{src → build}/translations/be.json +0 -0
  317. /package/{src → build}/translations/br.json +0 -0
  318. /package/{src → build}/translations/cy.json +0 -0
  319. /package/{src → build}/translations/da.json +0 -0
  320. /package/{src → build}/translations/de.json +0 -0
  321. /package/{src → build}/translations/en.json +0 -0
  322. /package/{src → build}/translations/eo.json +0 -0
  323. /package/{src → build}/translations/es.json +0 -0
  324. /package/{src → build}/translations/fi.json +0 -0
  325. /package/{src → build}/translations/fr.json +0 -0
  326. /package/{src → build}/translations/hu.json +0 -0
  327. /package/{src → build}/translations/it.json +0 -0
  328. /package/{src → build}/translations/ja.json +0 -0
  329. /package/{src → build}/translations/ko.json +0 -0
  330. /package/{src → build}/translations/nl.json +0 -0
  331. /package/{src → build}/translations/nn.json +0 -0
  332. /package/{src → build}/translations/pl.json +0 -0
  333. /package/{src → build}/translations/pt.json +0 -0
  334. /package/{src → build}/translations/pt_BR.json +0 -0
  335. /package/{src → build}/translations/sv.json +0 -0
  336. /package/{src → build}/translations/ti.json +0 -0
  337. /package/{src → build}/translations/tr.json +0 -0
  338. /package/{src → build}/translations/uk.json +0 -0
  339. /package/{src → build}/translations/zh_Hant.json +0 -0
  340. /package/{src → build}/utils/PanoraMapProtocol.js +0 -0
  341. /package/{src → build}/utils/services.js +0 -0
@@ -1,767 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`_createManyBasemaps handles classic TMS shorthand 1`] = `
4
- Array [
5
- Array [
6
- "mybasemap",
7
- Object {
8
- "layers": Array [
9
- Object {
10
- "id": "mybasemap",
11
- "source": "mybasemap",
12
- "type": "raster",
13
- },
14
- ],
15
- "sources": Object {
16
- "mybasemap": Object {
17
- "attribution": undefined,
18
- "maxzoom": undefined,
19
- "tileSize": 256,
20
- "tiles": Array [
21
- "https://path.to/tms/{z}/{x}/{y}.png",
22
- ],
23
- "type": "raster",
24
- },
25
- },
26
- },
27
- false,
28
- ],
29
- ]
30
- `;
31
-
32
- exports[`_createManyBasemaps handles classic TMS shorthand with OSM attribution 1`] = `
33
- Array [
34
- Array [
35
- "mybasemap",
36
- Object {
37
- "layers": Array [
38
- Object {
39
- "id": "mybasemap",
40
- "source": "mybasemap",
41
- "type": "raster",
42
- },
43
- ],
44
- "sources": Object {
45
- "mybasemap": Object {
46
- "attribution": "&copy; <a href=\\"https://www.openstreetmap.org/copyright\\">OpenStreetMap</a>",
47
- "maxzoom": undefined,
48
- "tileSize": 256,
49
- "tiles": Array [
50
- "https://tile.openstreetmap.fr/tms/{z}/{x}/{y}.png",
51
- ],
52
- "type": "raster",
53
- },
54
- },
55
- },
56
- false,
57
- ],
58
- ]
59
- `;
60
-
61
- exports[`_createManyBasemaps handles classic TMS shorthand with maxzoom definition 1`] = `
62
- Array [
63
- Array [
64
- "mybasemap",
65
- Object {
66
- "layers": Array [
67
- Object {
68
- "id": "mybasemap",
69
- "source": "mybasemap",
70
- "type": "raster",
71
- },
72
- ],
73
- "sources": Object {
74
- "mybasemap": Object {
75
- "attribution": undefined,
76
- "maxzoom": 18,
77
- "tileSize": 256,
78
- "tiles": Array [
79
- "https://path.to/tms/{z}/{x}/{y}.png",
80
- ],
81
- "type": "raster",
82
- },
83
- },
84
- },
85
- false,
86
- ],
87
- ]
88
- `;
89
-
90
- exports[`_createManyBasemaps handles classic style JSON 1`] = `
91
- Array [
92
- Array [
93
- "mybasemap",
94
- Object {
95
- "layers": Array [
96
- Object {
97
- "id": "simple-tiles",
98
- "source": "raster-tiles",
99
- "type": "raster",
100
- },
101
- ],
102
- "sources": Object {
103
- "raster-tiles": Object {
104
- "maxzoom": 19,
105
- "minzoom": 0,
106
- "tileSize": 256,
107
- "tiles": Array [
108
- "https://tile.openstreetmap.bzh/br/{z}/{x}/{y}.png",
109
- ],
110
- "type": "raster",
111
- },
112
- },
113
- },
114
- false,
115
- ],
116
- ]
117
- `;
118
-
119
- exports[`_createManyBasemaps handles classic style URL 1`] = `
120
- Array [
121
- Array [
122
- "mybasemap",
123
- "https://path.to/vector/style.json",
124
- false,
125
- ],
126
- ]
127
- `;
128
-
129
- exports[`_createManyBasemaps switches on selected background 1`] = `
130
- Array [
131
- Array [
132
- "mybasemap",
133
- "https://path.to/vector/style.json",
134
- true,
135
- ],
136
- ]
137
- `;
138
-
139
- exports[`addBasemap works with obj style 1`] = `
140
- Object {
141
- "streets": Object {
142
- "layers": Array [
143
- Object {
144
- "id": "streets",
145
- },
146
- ],
147
- "sources": Object {
148
- "bla": Object {
149
- "type": "vector",
150
- },
151
- },
152
- },
153
- }
154
- `;
155
-
156
- exports[`addBasemap works with str style 1`] = `
157
- Object {
158
- "streets": Object {
159
- "layers": Array [
160
- Object {
161
- "id": "streets",
162
- },
163
- ],
164
- "sources": Object {
165
- "bla": Object {
166
- "type": "vector",
167
- },
168
- },
169
- },
170
- }
171
- `;
172
-
173
- exports[`addDataOverlay works with obj style 1`] = `
174
- Object {
175
- "bla": Object {
176
- "layers": Array [
177
- Object {
178
- "id": "bla",
179
- },
180
- ],
181
- "sources": Object {
182
- "bla": Object {
183
- "type": "vector",
184
- },
185
- },
186
- },
187
- }
188
- `;
189
-
190
- exports[`addDataUnderlay works with obj style 1`] = `
191
- Object {
192
- "bla": Object {
193
- "layers": Array [
194
- Object {
195
- "id": "bla",
196
- },
197
- ],
198
- "sources": Object {
199
- "bla": Object {
200
- "type": "vector",
201
- },
202
- },
203
- },
204
- }
205
- `;
206
-
207
- exports[`addPanoramaxEndpoint works with obj style 1`] = `
208
- Object {
209
- "bla": Object {
210
- "layers": Array [
211
- Object {
212
- "id": "bla_sequences",
213
- "layout": Object {
214
- "line-cap": "square",
215
- },
216
- "paint": Object {
217
- "line-color": "#FF6F00",
218
- "line-width": Array [
219
- "interpolate",
220
- Array [
221
- "linear",
222
- ],
223
- Array [
224
- "zoom",
225
- ],
226
- 0,
227
- 0.5,
228
- 10,
229
- 1.5,
230
- 14.5,
231
- 1.5,
232
- 15.5,
233
- Array [
234
- "case",
235
- Array [
236
- "!",
237
- Array [
238
- "has",
239
- "uncrowded",
240
- ],
241
- ],
242
- 0.5,
243
- 2,
244
- ],
245
- 22,
246
- Array [
247
- "case",
248
- Array [
249
- "!",
250
- Array [
251
- "has",
252
- "uncrowded",
253
- ],
254
- ],
255
- 1,
256
- 4,
257
- ],
258
- ],
259
- },
260
- "source": "bla",
261
- "source-layer": "sequences",
262
- "type": "line",
263
- },
264
- Object {
265
- "id": "bla_sequences_plus",
266
- "layout": Object {
267
- "line-cap": "square",
268
- },
269
- "paint": Object {
270
- "line-color": "#ff0000",
271
- "line-opacity": 0,
272
- "line-width": Array [
273
- "interpolate",
274
- Array [
275
- "linear",
276
- ],
277
- Array [
278
- "zoom",
279
- ],
280
- 0,
281
- 15,
282
- 16,
283
- 30,
284
- ],
285
- },
286
- "source": "bla",
287
- "source-layer": "sequences",
288
- "type": "line",
289
- },
290
- Object {
291
- "id": "bla_pictures",
292
- "layout": Object {},
293
- "paint": Object {
294
- "circle-color": "#FF6F00",
295
- "circle-opacity": Array [
296
- "interpolate",
297
- Array [
298
- "linear",
299
- ],
300
- Array [
301
- "zoom",
302
- ],
303
- 15,
304
- 0,
305
- 15.5,
306
- Array [
307
- "case",
308
- Array [
309
- "!",
310
- Array [
311
- "has",
312
- "uncrowded",
313
- ],
314
- ],
315
- 0,
316
- 1,
317
- ],
318
- 16.5,
319
- Array [
320
- "case",
321
- Array [
322
- "!",
323
- Array [
324
- "has",
325
- "uncrowded",
326
- ],
327
- ],
328
- 0,
329
- 1,
330
- ],
331
- 17,
332
- 1,
333
- ],
334
- "circle-radius": Array [
335
- "interpolate",
336
- Array [
337
- "linear",
338
- ],
339
- Array [
340
- "zoom",
341
- ],
342
- 15,
343
- 0,
344
- 15.5,
345
- Array [
346
- "case",
347
- Array [
348
- "!",
349
- Array [
350
- "has",
351
- "uncrowded",
352
- ],
353
- ],
354
- 0,
355
- 1,
356
- ],
357
- 16.5,
358
- Array [
359
- "case",
360
- Array [
361
- "!",
362
- Array [
363
- "has",
364
- "uncrowded",
365
- ],
366
- ],
367
- 0,
368
- 2,
369
- ],
370
- 17,
371
- Array [
372
- "case",
373
- Array [
374
- "!",
375
- Array [
376
- "has",
377
- "uncrowded",
378
- ],
379
- ],
380
- 1,
381
- 4,
382
- ],
383
- 18,
384
- Array [
385
- "case",
386
- Array [
387
- "!",
388
- Array [
389
- "has",
390
- "uncrowded",
391
- ],
392
- ],
393
- 3,
394
- 5,
395
- ],
396
- 20,
397
- Array [
398
- "case",
399
- Array [
400
- "!",
401
- Array [
402
- "has",
403
- "uncrowded",
404
- ],
405
- ],
406
- 5,
407
- 7,
408
- ],
409
- 22,
410
- Array [
411
- "case",
412
- Array [
413
- "!",
414
- Array [
415
- "has",
416
- "uncrowded",
417
- ],
418
- ],
419
- 7,
420
- 7,
421
- ],
422
- ],
423
- "circle-stroke-opacity": Array [
424
- "case",
425
- Array [
426
- "all",
427
- Array [
428
- "!",
429
- Array [
430
- "has",
431
- "uncrowded",
432
- ],
433
- ],
434
- Array [
435
- "==",
436
- Array [
437
- "get",
438
- "type",
439
- ],
440
- "equirectangular",
441
- ],
442
- ],
443
- 0.2,
444
- Array [
445
- "==",
446
- Array [
447
- "get",
448
- "type",
449
- ],
450
- "equirectangular",
451
- ],
452
- 0.4,
453
- 0,
454
- ],
455
- "circle-stroke-width": Array [
456
- "interpolate",
457
- Array [
458
- "linear",
459
- ],
460
- Array [
461
- "zoom",
462
- ],
463
- 17.5,
464
- 0,
465
- 18.5,
466
- Array [
467
- "case",
468
- Array [
469
- "all",
470
- Array [
471
- "!",
472
- Array [
473
- "has",
474
- "uncrowded",
475
- ],
476
- ],
477
- Array [
478
- "==",
479
- Array [
480
- "get",
481
- "type",
482
- ],
483
- "equirectangular",
484
- ],
485
- ],
486
- 0,
487
- Array [
488
- "==",
489
- Array [
490
- "get",
491
- "type",
492
- ],
493
- "equirectangular",
494
- ],
495
- 10,
496
- Array [
497
- "!",
498
- Array [
499
- "has",
500
- "uncrowded",
501
- ],
502
- ],
503
- 0,
504
- 2,
505
- ],
506
- 19.5,
507
- Array [
508
- "case",
509
- Array [
510
- "all",
511
- Array [
512
- "!",
513
- Array [
514
- "has",
515
- "uncrowded",
516
- ],
517
- ],
518
- Array [
519
- "==",
520
- Array [
521
- "get",
522
- "type",
523
- ],
524
- "equirectangular",
525
- ],
526
- ],
527
- 10,
528
- Array [
529
- "==",
530
- Array [
531
- "get",
532
- "type",
533
- ],
534
- "equirectangular",
535
- ],
536
- 10,
537
- Array [
538
- "!",
539
- Array [
540
- "has",
541
- "uncrowded",
542
- ],
543
- ],
544
- 0,
545
- 2,
546
- ],
547
- ],
548
- },
549
- "source": "bla",
550
- "source-layer": "pictures",
551
- "type": "circle",
552
- },
553
- ],
554
- "sources": Object {
555
- "bla": Object {
556
- "tiles": Array [
557
- "panoras://panoramax.fr/x/y/z",
558
- ],
559
- "type": "vector",
560
- },
561
- },
562
- },
563
- }
564
- `;
565
-
566
- exports[`constructor works 1`] = `
567
- Object {
568
- "basemaps": Object {},
569
- "dataOverlays": Object {},
570
- "dataUnderlays": Object {},
571
- "panoramax": Object {},
572
- }
573
- `;
574
-
575
- exports[`getMapStyle works with complete data 1`] = `
576
- Object {
577
- "layers": Array [
578
- Object {
579
- "id": "ign",
580
- },
581
- Object {
582
- "id": "du1",
583
- },
584
- Object {
585
- "id": "du2",
586
- },
587
- Object {
588
- "filter": Array [
589
- "literal",
590
- true,
591
- ],
592
- "id": "geovisio_pictures",
593
- "layout": Object {
594
- "circle-sort-key": Array [
595
- "case",
596
- Array [
597
- "==",
598
- Array [
599
- "get",
600
- "hidden",
601
- ],
602
- true,
603
- ],
604
- 90,
605
- 10,
606
- ],
607
- },
608
- "paint": Object {
609
- "circle-color": Array [
610
- "case",
611
- Array [
612
- "==",
613
- Array [
614
- "get",
615
- "hidden",
616
- ],
617
- true,
618
- ],
619
- "#34495E",
620
- "#FF6F00",
621
- ],
622
- "circle-stroke-color": Array [
623
- "case",
624
- Array [
625
- "==",
626
- Array [
627
- "get",
628
- "hidden",
629
- ],
630
- true,
631
- ],
632
- "#34495E",
633
- "#FF6F00",
634
- ],
635
- },
636
- },
637
- Object {
638
- "id": "do1",
639
- },
640
- Object {
641
- "id": "do2",
642
- },
643
- ],
644
- "metadata": Object {
645
- "panoramax:locales": Array [
646
- "fr",
647
- "en",
648
- "de",
649
- "es",
650
- "ru",
651
- "pt",
652
- "zh",
653
- "hi",
654
- "latin",
655
- ],
656
- },
657
- "name": "Panoramax Map Style",
658
- "sources": Object {
659
- "do1": Object {
660
- "type": "vector",
661
- },
662
- "do2": Object {
663
- "type": "vector",
664
- },
665
- "ds1": Object {
666
- "type": "vector",
667
- },
668
- "du1": Object {
669
- "type": "vector",
670
- },
671
- "du2": Object {
672
- "type": "vector",
673
- },
674
- "geovisio_mc": Object {
675
- "type": "vector",
676
- },
677
- "ign": Object {
678
- "type": "raster",
679
- },
680
- },
681
- "sprite": undefined,
682
- "version": 8,
683
- }
684
- `;
685
-
686
- exports[`getMapStyle works with defaults 1`] = `
687
- Object {
688
- "layers": Array [],
689
- "metadata": Object {},
690
- "name": "Panoramax Map Style",
691
- "sources": Object {},
692
- "sprite": undefined,
693
- "version": 8,
694
- }
695
- `;
696
-
697
- exports[`registerLayer works for indoor 1`] = `
698
- Object {
699
- "indoorequal": Object {
700
- "layers": Array [
701
- Object {
702
- "id": "indoor-area",
703
- "source": "indoorequal",
704
- },
705
- ],
706
- "sources": Object {
707
- "indoorequal": Object {
708
- "type": "vector",
709
- },
710
- },
711
- },
712
- }
713
- `;
714
-
715
- exports[`registerLayer works for overlays 1`] = `
716
- Object {
717
- "tfsigns": Object {
718
- "layers": Array [
719
- Object {
720
- "id": "tf1",
721
- "source": "tfsigns",
722
- },
723
- ],
724
- "sources": Object {
725
- "tfsigns": Object {
726
- "type": "vector",
727
- },
728
- },
729
- },
730
- }
731
- `;
732
-
733
- exports[`registerLayer works for underlays 1`] = `
734
- Object {
735
- "tfsigns": Object {
736
- "layers": Array [
737
- Object {
738
- "id": "tf1",
739
- "source": "tfsigns",
740
- },
741
- ],
742
- "sources": Object {
743
- "tfsigns": Object {
744
- "type": "vector",
745
- },
746
- },
747
- },
748
- }
749
- `;
750
-
751
- exports[`registerLayer works with detached source 1`] = `
752
- Object {
753
- "somelayer": Object {
754
- "layers": Array [
755
- Object {
756
- "id": "somelayer",
757
- "source": "ds1",
758
- },
759
- ],
760
- "sources": Object {
761
- "ds1": Object {
762
- "type": "vector",
763
- },
764
- },
765
- },
766
- }
767
- `;