@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,408 +0,0 @@
1
- <a name="Panoramax.utils.MapStyleComposer"></a>
2
-
3
- ## Panoramax.utils.MapStyleComposer
4
- **Kind**: static class of <code>Panoramax.utils</code>
5
- **Emits**: [<code>basemap-added</code>](#Panoramax.utils.MapStyleComposer+event_basemap-added), [<code>basemap-changed</code>](#Panoramax.utils.MapStyleComposer+event_basemap-changed), [<code>dataunderlay-added</code>](#Panoramax.utils.MapStyleComposer+event_dataunderlay-added), [<code>dataunderlay-changed</code>](#Panoramax.utils.MapStyleComposer+event_dataunderlay-changed), [<code>panoramax-added</code>](#Panoramax.utils.MapStyleComposer+event_panoramax-added), [<code>panoramax-changed</code>](#Panoramax.utils.MapStyleComposer+event_panoramax-changed), [<code>theme-changed</code>](#Panoramax.utils.MapStyleComposer+event_theme-changed), [<code>filters-changed</code>](#Panoramax.utils.MapStyleComposer+event_filters-changed), [<code>dataoverlay-added</code>](#Panoramax.utils.MapStyleComposer+event_dataoverlay-added), [<code>dataoverlay-changed</code>](#Panoramax.utils.MapStyleComposer+event_dataoverlay-changed)
6
- **Properties**
7
-
8
- | Name | Type | Description |
9
- | --- | --- | --- |
10
- | basemap | <code>string</code> | The selected basemap |
11
- | dataUnderlays | <code>Set</code> | The visible data underlays |
12
- | panoramax | <code>string</code> | The selected Panoramax endpoint |
13
- | dataOverlays | <code>Set</code> | The visible data overlays |
14
-
15
-
16
- * [.MapStyleComposer](#Panoramax.utils.MapStyleComposer)
17
- * [new MapStyleComposer(parent)](#new_Panoramax.utils.MapStyleComposer_new)
18
- * [.getMapStyle()](#Panoramax.utils.MapStyleComposer+getMapStyle) ⇒ <code>object</code>
19
- * [.updateMapStyle([reloadSem])](#Panoramax.utils.MapStyleComposer+updateMapStyle)
20
- * [.registerSource(id, source)](#Panoramax.utils.MapStyleComposer+registerSource)
21
- * [.registerLayer(layer, [beforeId])](#Panoramax.utils.MapStyleComposer+registerLayer)
22
- * [.waitFor(type, id)](#Panoramax.utils.MapStyleComposer+waitFor) ⇒ <code>Promise</code>
23
- * [.addBasemap(id, style, [switchOn])](#Panoramax.utils.MapStyleComposer+addBasemap)
24
- * [.switchBasemap(id)](#Panoramax.utils.MapStyleComposer+switchBasemap)
25
- * [.hasManyBasemaps()](#Panoramax.utils.MapStyleComposer+hasManyBasemaps) ⇒ <code>boolean</code>
26
- * [.hasStreetsAerialBasemaps()](#Panoramax.utils.MapStyleComposer+hasStreetsAerialBasemaps) ⇒ <code>boolean</code>
27
- * [.hasComplementaryBasemaps()](#Panoramax.utils.MapStyleComposer+hasComplementaryBasemaps) ⇒ <code>boolean</code>
28
- * [.addDataUnderlay(id, style, [switchOn])](#Panoramax.utils.MapStyleComposer+addDataUnderlay)
29
- * [.switchDataUnderlayVisibility(id, visible)](#Panoramax.utils.MapStyleComposer+switchDataUnderlayVisibility)
30
- * [.addPanoramaxEndpoint(id, style, [switchOn])](#Panoramax.utils.MapStyleComposer+addPanoramaxEndpoint)
31
- * [.switchPanoramaxEndpoint(id)](#Panoramax.utils.MapStyleComposer+switchPanoramaxEndpoint)
32
- * [.isPanoramaxEndpointSingleUser()](#Panoramax.utils.MapStyleComposer+isPanoramaxEndpointSingleUser) ⇒ <code>boolean</code>
33
- * [.setPanoramaxTheme(theme)](#Panoramax.utils.MapStyleComposer+setPanoramaxTheme)
34
- * [.setPanoramaxFilters(filters)](#Panoramax.utils.MapStyleComposer+setPanoramaxFilters)
35
- * [.addDataOverlay(id, style, [switchOn])](#Panoramax.utils.MapStyleComposer+addDataOverlay)
36
- * [.switchDataOverlayVisibility(id, visible)](#Panoramax.utils.MapStyleComposer+switchDataOverlayVisibility)
37
- * ["basemap-added"](#Panoramax.utils.MapStyleComposer+event_basemap-added)
38
- * ["basemap-changed"](#Panoramax.utils.MapStyleComposer+event_basemap-changed)
39
- * ["dataunderlay-added"](#Panoramax.utils.MapStyleComposer+event_dataunderlay-added)
40
- * ["dataunderlay-changed"](#Panoramax.utils.MapStyleComposer+event_dataunderlay-changed)
41
- * ["panoramax-added"](#Panoramax.utils.MapStyleComposer+event_panoramax-added)
42
- * ["panoramax-changed"](#Panoramax.utils.MapStyleComposer+event_panoramax-changed)
43
- * ["theme-changed"](#Panoramax.utils.MapStyleComposer+event_theme-changed)
44
- * ["filters-changed"](#Panoramax.utils.MapStyleComposer+event_filters-changed)
45
- * ["dataoverlay-added"](#Panoramax.utils.MapStyleComposer+event_dataoverlay-added)
46
- * ["dataoverlay-changed"](#Panoramax.utils.MapStyleComposer+event_dataoverlay-changed)
47
-
48
- <a name="new_Panoramax.utils.MapStyleComposer_new"></a>
49
-
50
- ### new MapStyleComposer(parent)
51
- Map Style Composer allows an easy management of MapLibre styles.
52
- As Panoramax Viewer composes with many sources and layers, it's helpful.
53
- There are several "Layer Ranges" (from bottom to top):
54
- - Basemap: contextual background, either raster of vector
55
- - Data Underlay: vector data below Panoramax data (indoor maps)
56
- - Panoramax: pictures, sequences, grid statistics
57
- - Data Overlay: vector data on top of Panoramax data (traffic signs...)
58
- The composer offers helpers to switch between any layer in a specific range.
59
-
60
-
61
- | Param | Type | Description |
62
- | --- | --- | --- |
63
- | parent | <code>Panoramax.components.core.basic</code> | The parent view |
64
-
65
- **Example**
66
- ```js
67
- const msc = new Panoramax.utils.MapStyleComposer(viewer)
68
- ```
69
- <a name="Panoramax.utils.MapStyleComposer+getMapStyle"></a>
70
-
71
- ### mapStyleComposer.getMapStyle() ⇒ <code>object</code>
72
- Gives MapLibre JSON style to pass to Map constructor or setStyle function.
73
- This gives ready-to-use sources and layers.
74
-
75
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
76
- **Returns**: <code>object</code> - The MapLibre style object
77
- <a name="Panoramax.utils.MapStyleComposer+updateMapStyle"></a>
78
-
79
- ### mapStyleComposer.updateMapStyle([reloadSem])
80
- Throttled function to force map data refresh.
81
- This allows to make actual effect of layers adds/switches.
82
-
83
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
84
-
85
- | Param | Type | Default | Description |
86
- | --- | --- | --- | --- |
87
- | [reloadSem] | <code>boolean</code> | <code>false</code> | Force reload of semantics layers (in case of API switch) |
88
-
89
- <a name="Panoramax.utils.MapStyleComposer+registerSource"></a>
90
-
91
- ### mapStyleComposer.registerSource(id, source)
92
- Checks if given source already exists in composer, or add it as detached to wait.
93
- This is useful for sources added directly to MapLibre not through the MapStyleComposer.
94
-
95
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
96
-
97
- | Param | Type | Description |
98
- | --- | --- | --- |
99
- | id | <code>string</code> | The source ID |
100
- | source | <code>object</code> | The MapLibre source definition |
101
-
102
- <a name="Panoramax.utils.MapStyleComposer+registerLayer"></a>
103
-
104
- ### mapStyleComposer.registerLayer(layer, [beforeId])
105
- Checks if given layer already exists in composer, or add it as data under/overlay.
106
- This is useful for layers added directly to MapLibre not through the MapStyleComposer.
107
-
108
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
109
-
110
- | Param | Type | Description |
111
- | --- | --- | --- |
112
- | layer | <code>object</code> | The MapLibre layer definition |
113
- | [beforeId] | <code>string</code> | The ID of an existing layer to put this one before |
114
-
115
- <a name="Panoramax.utils.MapStyleComposer+waitFor"></a>
116
-
117
- ### mapStyleComposer.waitFor(type, id) ⇒ <code>Promise</code>
118
- Wait for some layer to be available
119
-
120
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
121
- **Returns**: <code>Promise</code> - Resolves when layer is ready
122
-
123
- | Param | Type | Description |
124
- | --- | --- | --- |
125
- | type | <code>string</code> | The kind of layer (panoramax, dataOverlays, dataUnderlays, basemaps) |
126
- | id | <code>string</code> | The ID of layer to wait for |
127
-
128
- <a name="Panoramax.utils.MapStyleComposer+addBasemap"></a>
129
-
130
- ### mapStyleComposer.addBasemap(id, style, [switchOn])
131
- Creates a new basemap
132
-
133
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
134
-
135
- | Param | Type | Default | Description |
136
- | --- | --- | --- | --- |
137
- | id | <code>string</code> | | Identifier for this basemap |
138
- | style | <code>object</code> | | The MapLibre-like style definition (object with sources and layers) |
139
- | [switchOn] | <code>boolean</code> | <code>false</code> | Immediate map display ? |
140
-
141
- <a name="Panoramax.utils.MapStyleComposer+switchBasemap"></a>
142
-
143
- ### mapStyleComposer.switchBasemap(id)
144
- Makes this basemap now visible, instead of current one.
145
-
146
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
147
-
148
- | Param | Type | Description |
149
- | --- | --- | --- |
150
- | id | <code>string</code> | The basemap ID |
151
-
152
- <a name="Panoramax.utils.MapStyleComposer+hasManyBasemaps"></a>
153
-
154
- ### mapStyleComposer.hasManyBasemaps() ⇒ <code>boolean</code>
155
- Does this style contain many different basemaps ?
156
-
157
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
158
- **Returns**: <code>boolean</code> - True if 2 or more basemaps are available
159
- <a name="Panoramax.utils.MapStyleComposer+hasStreetsAerialBasemaps"></a>
160
-
161
- ### mapStyleComposer.hasStreetsAerialBasemaps() ⇒ <code>boolean</code>
162
- Does this style contains two main basemaps "aerial" & "streets" ?
163
-
164
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
165
- **Returns**: <code>boolean</code> - True if two main basemaps available
166
- <a name="Panoramax.utils.MapStyleComposer+hasComplementaryBasemaps"></a>
167
-
168
- ### mapStyleComposer.hasComplementaryBasemaps() ⇒ <code>boolean</code>
169
- Does this style contains any other basemaps than two main ones (aerial/streets)
170
-
171
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
172
- **Returns**: <code>boolean</code> - True if other basemaps available
173
- <a name="Panoramax.utils.MapStyleComposer+addDataUnderlay"></a>
174
-
175
- ### mapStyleComposer.addDataUnderlay(id, style, [switchOn])
176
- Creates a new data underlay
177
-
178
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
179
-
180
- | Param | Type | Default | Description |
181
- | --- | --- | --- | --- |
182
- | id | <code>string</code> | | Identifier for this basemap |
183
- | style | <code>object</code> | | The MapLibre-like style definition (object with sources and layers) |
184
- | [switchOn] | <code>boolean</code> | <code>false</code> | Immediate map display ? |
185
-
186
- <a name="Panoramax.utils.MapStyleComposer+switchDataUnderlayVisibility"></a>
187
-
188
- ### mapStyleComposer.switchDataUnderlayVisibility(id, visible)
189
- Change visibility of a given data underlay.
190
-
191
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
192
-
193
- | Param | Type | Description |
194
- | --- | --- | --- |
195
- | id | <code>string</code> | The Identifier of data underlay to change |
196
- | visible | <code>boolean</code> | Set to true to make visible, false to hide |
197
-
198
- <a name="Panoramax.utils.MapStyleComposer+addPanoramaxEndpoint"></a>
199
-
200
- ### mapStyleComposer.addPanoramaxEndpoint(id, style, [switchOn])
201
- Creates a new Panoramax Vector Tile endpoint.
202
-
203
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
204
-
205
- | Param | Type | Default | Description |
206
- | --- | --- | --- | --- |
207
- | id | <code>string</code> | | The identifier for this endpoint |
208
- | style | <code>object</code> | | The MapLibre Style JSON object |
209
- | [switchOn] | <code>boolean</code> | <code>false</code> | Immediate map display ? |
210
-
211
- <a name="Panoramax.utils.MapStyleComposer+switchPanoramaxEndpoint"></a>
212
-
213
- ### mapStyleComposer.switchPanoramaxEndpoint(id)
214
- Uses this Panoramax Vector Tile endpoint instead of current one.
215
-
216
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
217
-
218
- | Param | Type | Description |
219
- | --- | --- | --- |
220
- | id | <code>string</code> | The endpoint ID |
221
-
222
- <a name="Panoramax.utils.MapStyleComposer+isPanoramaxEndpointSingleUser"></a>
223
-
224
- ### mapStyleComposer.isPanoramaxEndpointSingleUser() ⇒ <code>boolean</code>
225
- Is the currently selected Panoramax endpoint showing data of a single user ?
226
-
227
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
228
- **Returns**: <code>boolean</code> - True if single user
229
- <a name="Panoramax.utils.MapStyleComposer+setPanoramaxTheme"></a>
230
-
231
- ### mapStyleComposer.setPanoramaxTheme(theme)
232
- Changes the selected Panoramax map theme
233
-
234
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
235
-
236
- | Param | Type | Description |
237
- | --- | --- | --- |
238
- | theme | <code>string</code> | One of "default", "age", "type", "score", "gps" |
239
-
240
- <a name="Panoramax.utils.MapStyleComposer+setPanoramaxFilters"></a>
241
-
242
- ### mapStyleComposer.setPanoramaxFilters(filters)
243
- Changes the selected Panoramax filters
244
-
245
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
246
-
247
- | Param | Type | Description |
248
- | --- | --- | --- |
249
- | filters | <code>object</code> | Filtering values |
250
- | [filters.minDate] | <code>string</code> | Start date for pictures (format YYYY-MM-DD) |
251
- | [filters.maxDate] | <code>string</code> | End date for pictures (format YYYY-MM-DD) |
252
- | [filters.pic_type] | <code>string</code> | Type of picture to keep (flat, equirectangular) |
253
- | [filters.qualityscore] | <code>Array.&lt;number&gt;</code> | QualityScore values, as a list of 1 to 5 grades |
254
- | [filters.gps] | <code>Array.&lt;number&gt;</code> | GPS precision grades, as a list of 1 to 5 grades |
255
- | [filters.featuresRestrictions] | <code>object</code> | Rules to restrict display of pictures & sequences |
256
-
257
- <a name="Panoramax.utils.MapStyleComposer+addDataOverlay"></a>
258
-
259
- ### mapStyleComposer.addDataOverlay(id, style, [switchOn])
260
- Creates a new data overlay
261
-
262
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
263
-
264
- | Param | Type | Default | Description |
265
- | --- | --- | --- | --- |
266
- | id | <code>string</code> | | Identifier for this basemap |
267
- | style | <code>object</code> | | The MapLibre-like style definition (object with sources and layers) |
268
- | [switchOn] | <code>boolean</code> | <code>false</code> | Immediate map display ? |
269
-
270
- <a name="Panoramax.utils.MapStyleComposer+switchDataOverlayVisibility"></a>
271
-
272
- ### mapStyleComposer.switchDataOverlayVisibility(id, visible)
273
- Change visibility of a given data Overlay.
274
-
275
- **Kind**: instance method of [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
276
-
277
- | Param | Type | Description |
278
- | --- | --- | --- |
279
- | id | <code>string</code> | The Identifier of data Overlay to change |
280
- | visible | <code>boolean</code> | Set to true to make visible, false to hide |
281
-
282
- <a name="Panoramax.utils.MapStyleComposer+event_basemap-added"></a>
283
-
284
- ### "basemap-added"
285
- Event for basemap added
286
-
287
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
288
- **Properties**
289
-
290
- | Name | Type | Description |
291
- | --- | --- | --- |
292
- | [detail.basemap] | <code>string</code> | The added basemap ID |
293
-
294
- <a name="Panoramax.utils.MapStyleComposer+event_basemap-changed"></a>
295
-
296
- ### "basemap-changed"
297
- Event for basemap changes
298
-
299
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
300
- **Properties**
301
-
302
- | Name | Type | Description |
303
- | --- | --- | --- |
304
- | [detail.basemap] | <code>string</code> | The basemap ID |
305
-
306
- <a name="Panoramax.utils.MapStyleComposer+event_dataunderlay-added"></a>
307
-
308
- ### "dataunderlay-added"
309
- Event for data underlay added
310
-
311
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
312
- **Properties**
313
-
314
- | Name | Type | Description |
315
- | --- | --- | --- |
316
- | [detail.dataUnderlay] | <code>string</code> | The added data underlay ID |
317
-
318
- <a name="Panoramax.utils.MapStyleComposer+event_dataunderlay-changed"></a>
319
-
320
- ### "dataunderlay-changed"
321
- Event for data underlays changes
322
-
323
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
324
- **Properties**
325
-
326
- | Name | Type | Description |
327
- | --- | --- | --- |
328
- | [detail.dataUnderlay] | <code>string</code> | The data underlay ID |
329
- | [detail.visible] | <code>boolean</code> | True if visible |
330
-
331
- <a name="Panoramax.utils.MapStyleComposer+event_panoramax-added"></a>
332
-
333
- ### "panoramax-added"
334
- Event for Panoramax endpoint added
335
-
336
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
337
- **Properties**
338
-
339
- | Name | Type | Description |
340
- | --- | --- | --- |
341
- | [detail.endpoint] | <code>string</code> | The added Panoramax endpoint ID |
342
-
343
- <a name="Panoramax.utils.MapStyleComposer+event_panoramax-changed"></a>
344
-
345
- ### "panoramax-changed"
346
- Event for Panoramax endpoint changes
347
-
348
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
349
- **Properties**
350
-
351
- | Name | Type | Description |
352
- | --- | --- | --- |
353
- | [detail.endpoint] | <code>string</code> | The new selected Panoramax endpoint |
354
-
355
- <a name="Panoramax.utils.MapStyleComposer+event_theme-changed"></a>
356
-
357
- ### "theme-changed"
358
- Event for Panoramax theme changes
359
-
360
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
361
- **Properties**
362
-
363
- | Name | Type | Description |
364
- | --- | --- | --- |
365
- | [detail.theme] | <code>string</code> | The new selected theme |
366
-
367
- <a name="Panoramax.utils.MapStyleComposer+event_filters-changed"></a>
368
-
369
- ### "filters-changed"
370
- Event for Panoramax filters changes
371
-
372
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
373
- **Properties**
374
-
375
- | Name | Type | Description |
376
- | --- | --- | --- |
377
- | [detail.minDate] | <code>string</code> | The minimum date in time range (ISO format) |
378
- | [detail.maxDate] | <code>string</code> | The maximum date in time range (ISO format) |
379
- | [detail.pic_type] | <code>string</code> | Camera type (equirectangular, flat, null/empty string for both) |
380
- | [detail.qualityscore] | <code>Array.&lt;number&gt;</code> | QualityScore values, as a list of 1 to 5 grades |
381
- | [detail.gps] | <code>Array.&lt;number&gt;</code> | GPS precision grades, as a list of 1 to 5 grades |
382
- | [detail.featuresRestrictions] | <code>object</code> | Rules to restrict display of pictures & sequences |
383
-
384
- <a name="Panoramax.utils.MapStyleComposer+event_dataoverlay-added"></a>
385
-
386
- ### "dataoverlay-added"
387
- Event for data overlay added
388
-
389
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
390
- **Properties**
391
-
392
- | Name | Type | Description |
393
- | --- | --- | --- |
394
- | [detail.dataOverlay] | <code>string</code> | The added data overlay ID |
395
-
396
- <a name="Panoramax.utils.MapStyleComposer+event_dataoverlay-changed"></a>
397
-
398
- ### "dataoverlay-changed"
399
- Event for data overlays changes
400
-
401
- **Kind**: event emitted by [<code>MapStyleComposer</code>](#Panoramax.utils.MapStyleComposer)
402
- **Properties**
403
-
404
- | Name | Type | Description |
405
- | --- | --- | --- |
406
- | [detail.dataOverlay] | <code>string</code> | The data overlay ID |
407
- | [detail.visible] | <code>boolean</code> | True if visible |
408
-
@@ -1,28 +0,0 @@
1
- <a name="Panoramax.utils.PanoraMapProtocol"></a>
2
-
3
- ## Panoramax.utils.PanoraMapProtocol
4
- **Kind**: static class of <code>Panoramax.utils</code>
5
-
6
- * [.PanoraMapProtocol](#Panoramax.utils.PanoraMapProtocol)
7
- * [new PanoraMapProtocol()](#new_Panoramax.utils.PanoraMapProtocol_new)
8
- * [.tile(params, abort)](#Panoramax.utils.PanoraMapProtocol+tile) ⇒ <code>object</code>
9
-
10
- <a name="new_Panoramax.utils.PanoraMapProtocol_new"></a>
11
-
12
- ### new PanoraMapProtocol()
13
- PanoraMap Protocol adds a new URI scheme "panora://" (or "panoras://") to MapLibre.
14
- It allows adding custom information on top of existing Panoramax Vector Tiles.
15
-
16
- <a name="Panoramax.utils.PanoraMapProtocol+tile"></a>
17
-
18
- ### panoraMapProtocol.tile(params, abort) ⇒ <code>object</code>
19
- Get a single tile
20
-
21
- **Kind**: instance method of [<code>PanoraMapProtocol</code>](#Panoramax.utils.PanoraMapProtocol)
22
- **Returns**: <code>object</code> - The tile, as expected by MapLibre
23
-
24
- | Param | Type | Description |
25
- | --- | --- | --- |
26
- | params | <code>object</code> | MapLibre parameters |
27
- | abort | <code>AbortController</code> | The abort signal handler |
28
-
@@ -1,43 +0,0 @@
1
- <a name="Panoramax.utils.PresetsManager"></a>
2
-
3
- ## Panoramax.utils.PresetsManager
4
- **Kind**: static class of <code>Panoramax.utils</code>
5
-
6
- * [.PresetsManager](#Panoramax.utils.PresetsManager)
7
- * [new PresetsManager([lang], [skipLoad])](#new_Panoramax.utils.PresetsManager_new)
8
- * [.onceReady()](#Panoramax.utils.PresetsManager+onceReady) ⇒ <code>Promise</code>
9
- * [.getPreset()](#Panoramax.utils.PresetsManager+getPreset) ⇒ <code>Promise</code>
10
- * [.getPresets()](#Panoramax.utils.PresetsManager+getPresets) ⇒ <code>Promise</code>
11
-
12
- <a name="new_Panoramax.utils.PresetsManager_new"></a>
13
-
14
- ### new PresetsManager([lang], [skipLoad])
15
- Presets Manager handle retrieval of presets against dedicated endpoint.
16
- It allows an easily search between all presets, and handles translations.
17
-
18
-
19
- | Param | Type | Default | Description |
20
- | --- | --- | --- | --- |
21
- | [lang] | <code>string</code> | | The user prefered language. Defaults to web browser preferences. |
22
- | [skipLoad] | <code>boolean</code> | <code>false</code> | Set to true to disable automatic load of API data |
23
-
24
- <a name="Panoramax.utils.PresetsManager+onceReady"></a>
25
-
26
- ### presetsManager.onceReady() ⇒ <code>Promise</code>
27
- Resolves when the all necessary data was downloaded.
28
-
29
- **Kind**: instance method of [<code>PresetsManager</code>](#Panoramax.utils.PresetsManager)
30
- <a name="Panoramax.utils.PresetsManager+getPreset"></a>
31
-
32
- ### presetsManager.getPreset() ⇒ <code>Promise</code>
33
- Find the best matching preset for a given STAC feature.
34
-
35
- **Kind**: instance method of [<code>PresetsManager</code>](#Panoramax.utils.PresetsManager)
36
- **Fulfil**: <code>object\|null</code> The preset JSON that best matches, or null if no matches
37
- <a name="Panoramax.utils.PresetsManager+getPresets"></a>
38
-
39
- ### presetsManager.getPresets() ⇒ <code>Promise</code>
40
- Find all matching presets for a given STAC feature.
41
-
42
- **Kind**: instance method of [<code>PresetsManager</code>](#Panoramax.utils.PresetsManager)
43
- **Fulfil**: <code>object[]\|null</code> The all JSON presets that best matches, or null if no matches
@@ -1,43 +0,0 @@
1
- <a name="Panoramax.utils.SemanticsMapProtocol"></a>
2
-
3
- ## Panoramax.utils.SemanticsMapProtocol
4
- **Kind**: static class of <code>Panoramax.utils</code>
5
-
6
- * [.SemanticsMapProtocol](#Panoramax.utils.SemanticsMapProtocol)
7
- * [new SemanticsMapProtocol(parent)](#new_Panoramax.utils.SemanticsMapProtocol_new)
8
- * [.clearCache()](#Panoramax.utils.SemanticsMapProtocol+clearCache)
9
- * [.tile(params, abort)](#Panoramax.utils.SemanticsMapProtocol+tile) ⇒ <code>object</code>
10
-
11
- <a name="new_Panoramax.utils.SemanticsMapProtocol_new"></a>
12
-
13
- ### new SemanticsMapProtocol(parent)
14
- Semantics Map Protocol adds a new URI scheme "sem://" to MapLibre.
15
- It allows loading tile per tile metadata from semantics API, seamlessly.
16
- You can use them with URI like:
17
- - `sem:///"semantics.osm|traffic_sign" IS NOT NULL/{z}/{x}/{y}`
18
- - `sem:///"semantics.osm|traffic_sign"='yes'/{z}/{x}/{y}`
19
-
20
-
21
- | Param | Type | Description |
22
- | --- | --- | --- |
23
- | parent | [<code>Basic</code>](../components/core/Basic.md/#Panoramax.components.core.Basic) | The parent component |
24
-
25
- <a name="Panoramax.utils.SemanticsMapProtocol+clearCache"></a>
26
-
27
- ### semMapProtocol.clearCache()
28
- Removes all previously stored tiles in cache.
29
-
30
- **Kind**: instance method of [<code>SemanticsMapProtocol</code>](#Panoramax.utils.SemanticsMapProtocol)
31
- <a name="Panoramax.utils.SemanticsMapProtocol+tile"></a>
32
-
33
- ### semMapProtocol.tile(params, abort) ⇒ <code>object</code>
34
- Get a single tile
35
-
36
- **Kind**: instance method of [<code>SemanticsMapProtocol</code>](#Panoramax.utils.SemanticsMapProtocol)
37
- **Returns**: <code>object</code> - The tile, as expected by MapLibre
38
-
39
- | Param | Type | Description |
40
- | --- | --- | --- |
41
- | params | <code>object</code> | MapLibre parameters |
42
- | abort | <code>AbortController</code> | The abort signal handler |
43
-
@@ -1,114 +0,0 @@
1
- <a name="Panoramax.utils.URLHandler"></a>
2
-
3
- ## Panoramax.utils.URLHandler
4
- **Kind**: static class of <code>Panoramax.utils</code>
5
- **Emits**: [<code>url-changed</code>](#Panoramax.utils.URLHandler+event_url-changed)
6
-
7
- * [.URLHandler](#Panoramax.utils.URLHandler)
8
- * [new URLHandler(parent)](#new_Panoramax.utils.URLHandler_new)
9
- * [.listenToChanges()](#Panoramax.utils.URLHandler+listenToChanges)
10
- * [.destroy()](#Panoramax.utils.URLHandler+destroy)
11
- * [.nextURLParams()](#Panoramax.utils.URLHandler+nextURLParams) ⇒ <code>object</code>
12
- * [.nextURLString()](#Panoramax.utils.URLHandler+nextURLString) ⇒ <code>string</code>
13
- * [.currentURLParams([readFromHash])](#Panoramax.utils.URLHandler+currentURLParams) ⇒ <code>object</code>
14
- * [.currentMapString()](#Panoramax.utils.URLHandler+currentMapString) ⇒ <code>string</code>
15
- * [.currentPSVString()](#Panoramax.utils.URLHandler+currentPSVString) ⇒ <code>string</code>
16
- * [.nextShortLink()](#Panoramax.utils.URLHandler+nextShortLink) ⇒ <code>str</code>
17
- * [.getUnmanagedParameters(prevUrl)](#Panoramax.utils.URLHandler+getUnmanagedParameters)
18
- * ["url-changed"](#Panoramax.utils.URLHandler+event_url-changed)
19
-
20
- <a name="new_Panoramax.utils.URLHandler_new"></a>
21
-
22
- ### new URLHandler(parent)
23
- Updates the URL query part with various parent component information.
24
-
25
- Note that you may call `listenToChanges()` for this class to be effective once parent is ready-enough.
26
-
27
-
28
- | Param | Type | Description |
29
- | --- | --- | --- |
30
- | parent | [<code>Basic</code>](../components/core/Basic.md/#Panoramax.components.core.Basic) | The parent component |
31
-
32
- <a name="Panoramax.utils.URLHandler+listenToChanges"></a>
33
-
34
- ### urlHandler.listenToChanges()
35
- Start listening to URL & parent changes through events.
36
- This leads to parent & URL updates.
37
-
38
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
39
- <a name="Panoramax.utils.URLHandler+destroy"></a>
40
-
41
- ### urlHandler.destroy()
42
- Call this function to stop listening to global events.
43
-
44
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
45
- <a name="Panoramax.utils.URLHandler+nextURLParams"></a>
46
-
47
- ### urlHandler.nextURLParams() ⇒ <code>object</code>
48
- Compute next values to insert in URL
49
-
50
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
51
- **Returns**: <code>object</code> - Query parameters
52
- <a name="Panoramax.utils.URLHandler+nextURLString"></a>
53
-
54
- ### urlHandler.nextURLString() ⇒ <code>string</code>
55
- Compute next URL query string (based on `nextURLParams()`)
56
-
57
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
58
- **Returns**: <code>string</code> - The query string
59
- <a name="Panoramax.utils.URLHandler+currentURLParams"></a>
60
-
61
- ### urlHandler.currentURLParams([readFromHash]) ⇒ <code>object</code>
62
- Transforms current URL query string into key->value object
63
-
64
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
65
- **Returns**: <code>object</code> - Key-value read from current URL query
66
-
67
- | Param | Type | Default | Description |
68
- | --- | --- | --- | --- |
69
- | [readFromHash] | <code>boolean</code> | <code>false</code> | Switch to reading from hash URL part (for retro-compatibility) |
70
-
71
- <a name="Panoramax.utils.URLHandler+currentMapString"></a>
72
-
73
- ### urlHandler.currentMapString() ⇒ <code>string</code>
74
- Get string representation of map position
75
-
76
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
77
- **Returns**: <code>string</code> - zoom/lat/lon or zoom/lat/lon/bearing/pitch
78
- <a name="Panoramax.utils.URLHandler+currentPSVString"></a>
79
-
80
- ### urlHandler.currentPSVString() ⇒ <code>string</code>
81
- Get PSV view position as string
82
-
83
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
84
- **Returns**: <code>string</code> - x/y/z
85
- <a name="Panoramax.utils.URLHandler+nextShortLink"></a>
86
-
87
- ### urlHandler.nextShortLink() ⇒ <code>str</code>
88
- Get short link URL (query replaced by Base64)
89
-
90
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
91
- **Returns**: <code>str</code> - The short link URL
92
- <a name="Panoramax.utils.URLHandler+getUnmanagedParameters"></a>
93
-
94
- ### urlHandler.getUnmanagedParameters(prevUrl)
95
- Returns a string containing only parameters out of URLHandler scope
96
-
97
- **Kind**: instance method of [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
98
-
99
- | Param | Type | Description |
100
- | --- | --- | --- |
101
- | prevUrl | <code>URL</code> | The previously set URL |
102
-
103
- <a name="Panoramax.utils.URLHandler+event_url-changed"></a>
104
-
105
- ### "url-changed"
106
- URL changed event
107
-
108
- **Kind**: event emitted by [<code>URLHandler</code>](#Panoramax.utils.URLHandler)
109
- **Properties**
110
-
111
- | Name | Type | Description |
112
- | --- | --- | --- |
113
- | detail.url | <code>string</code> | The new used URL |
114
-