@vcmap/ui 6.1.14 → 6.2.0-rc.2
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.
- package/build/build.js +54 -9
- package/build/buildHelpers.js +2 -3
- package/build/buildTypes.js +1 -1
- package/build/commonViteConfig.js +0 -1
- package/build/lintTypes.js +1 -1
- package/config/dev.config.json +33 -19
- package/config/pano.config.json +420 -0
- package/config/projects.config.json +5 -0
- package/dist/assets/cesium/Workers/{chunk-P6TRGU3S.js → chunk-2PFJ45KC.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-7ZZ5LMZY.js → chunk-35ALNMG5.js} +15 -15
- package/dist/assets/cesium/Workers/{chunk-7YIOHQWH.js → chunk-35EJBV7X.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-EJVGYGLF.js → chunk-3E3OH65K.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-JBSKHTNX.js → chunk-4FHUY275.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-Z2QP3CXW.js → chunk-565T3GIE.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-IZGUQO6Q.js → chunk-5LGDCKCZ.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-3IFRSGEY.js → chunk-6JXJYBWN.js} +9 -9
- package/dist/assets/cesium/Workers/{chunk-WGDFYAGC.js → chunk-6RAEC3AW.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-44QAAS4P.js → chunk-6Z67VIOY.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-NGZJIN5Z.js → chunk-ADDGROZ6.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-GBT7MJ6X.js → chunk-ASYGMBRG.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-C4WPMOKT.js → chunk-BABDQOWA.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-IBRIWOCM.js → chunk-BQHHGIFB.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-LLAF3CPH.js → chunk-C33B4KHN.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-JXVLNVXC.js → chunk-CMCR2ZK4.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-3HQMMUPU.js → chunk-EGGJIATZ.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-RJM36CNY.js → chunk-EWS5LXAB.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-OPP2SKMA.js → chunk-FDXPBTSX.js} +12 -12
- package/dist/assets/cesium/Workers/{chunk-QN6TBED4.js → chunk-FIFQP4YX.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-JISPSEF3.js → chunk-HOGDZ2EB.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-2PTKXHJB.js → chunk-I4NB77NH.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-QQOZO7KO.js → chunk-JX4A2BCF.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-XIUSRWL6.js → chunk-K6PDUSH6.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-KHZNBFOH.js → chunk-KFHZFU5O.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-U5HSOKPQ.js → chunk-KYGXRFA6.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-56EDBCGT.js → chunk-LNWNAP2C.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-YCDZX5LS.js → chunk-LWN2B3KW.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-TI3TRKIC.js → chunk-LXLABO2L.js} +10 -10
- package/dist/assets/cesium/Workers/{chunk-C3EQ27WF.js → chunk-MB6B2UUL.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-57H6I3SV.js → chunk-MZSRINXK.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-ZVUUPJEM.js → chunk-NBI3GZSK.js} +17 -17
- package/dist/assets/cesium/Workers/{chunk-O72GZTSE.js → chunk-NUAXNUP5.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-M24KHENR.js → chunk-PNZR4RLL.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-HJMNR3GC.js → chunk-Q4K22DSJ.js} +11 -11
- package/dist/assets/cesium/Workers/{chunk-2LOWCAMW.js → chunk-Q4OS4EFN.js} +13 -13
- package/dist/assets/cesium/Workers/{chunk-TK5IIG2F.js → chunk-QLIMO7TQ.js} +4 -4
- package/dist/assets/cesium/Workers/{chunk-EDLRS3AW.js → chunk-RQ4F6YFU.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-JSQJDZI4.js → chunk-SB67D3JL.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-RTJKHZWU.js → chunk-SS6WRJ5J.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-L5GODJAR.js → chunk-TC4NTWIJ.js} +14 -14
- package/dist/assets/cesium/Workers/{chunk-IZJ42N4W.js → chunk-TKNA6WSZ.js} +17 -17
- package/dist/assets/cesium/Workers/{chunk-HP5XLODI.js → chunk-VQYEP77L.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-YSIJTJ7N.js → chunk-WKS5H3VW.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-XWOUPGUF.js → chunk-WPGX7DEA.js} +1 -1
- package/dist/assets/cesium/Workers/{chunk-6SQMLVGV.js → chunk-X3EPFVG3.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-NDDI2LWR.js → chunk-XH7MSR3A.js} +6 -6
- package/dist/assets/cesium/Workers/{chunk-FFLMY4TE.js → chunk-YDEBBUNQ.js} +5 -5
- package/dist/assets/cesium/Workers/{chunk-YK3QIKY7.js → chunk-YSVI7YNN.js} +9 -9
- package/dist/assets/cesium/Workers/{chunk-BVKITG4N.js → chunk-YVAS5WPH.js} +7 -7
- package/dist/assets/cesium/Workers/{chunk-X7IQYYHF.js → chunk-Z4QVAZM6.js} +2 -2
- package/dist/assets/cesium/Workers/{chunk-LJ2JQHJT.js → chunk-ZXOK77EW.js} +7 -7
- package/dist/assets/cesium/Workers/combineGeometry.js +22 -22
- package/dist/assets/cesium/Workers/createBoxGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +14 -14
- package/dist/assets/cesium/Workers/createCircleGeometry.js +24 -24
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +27 -27
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +26 -26
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +18 -18
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +24 -24
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createGeometry.js +22 -22
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +20 -20
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +14 -14
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +13 -13
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +30 -30
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +28 -28
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +23 -23
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +29 -29
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +25 -25
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +18 -18
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +21 -21
- package/dist/assets/cesium/Workers/createSphereGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +3 -3
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +13 -13
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +22 -22
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +12 -12
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +20 -20
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +13 -13
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +20 -20
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/dist/assets/cesium/Workers/createWallGeometry.js +22 -22
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +21 -21
- package/dist/assets/cesium/Workers/decodeDraco.js +11 -11
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/dist/assets/cesium/Workers/decodeI3S.js +10 -10
- package/dist/assets/cesium/Workers/transcodeKTX2.js +7 -7
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/dist/assets/{cesium-b99cf74c.js → cesium-8dd00805.js} +44609 -44606
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/core-6b5c0363.js +34173 -0
- package/dist/assets/core-workers/panoramaImageWorker.js +1 -0
- package/dist/assets/core-workers/panoramaImageWorker.js-0ce7d2f3.js +34 -0
- package/dist/assets/core.js +1 -1
- package/dist/assets/ol.js +1 -1
- package/dist/assets/start.js +3 -1
- package/dist/assets/ui-aadb7707.css +1 -0
- package/dist/assets/{ui-1f833d5c.js → ui-aadb7707.js} +12940 -12232
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify-30b1b4a7.js → vuetify-533fb61b.js} +1 -1
- package/dist/assets/vuetify.js +1 -1
- package/index.d.ts +12 -0
- package/index.js +9 -0
- package/package.json +7 -49
- package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +2 -3
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +0 -1
- package/plugins/@vcmap-show-case/form-inputs-example/src/index.js +3 -3
- package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +6 -6
- package/plugins/@vcmap-show-case/hello-world/src/index.js +0 -6
- package/plugins/@vcmap-show-case/hello-world/tests/helloWorld.spec.js +1 -1
- package/plugins/@vcmap-show-case/panel-tester/src/IframePanelExample.vue +1 -1
- package/plugins/@vcmap-show-case/panel-tester/src/ImgPanelExample.vue +1 -1
- package/plugins/@vcmap-show-case/panel-tester/src/PanelExample.vue +1 -1
- package/plugins/@vcmap-show-case/panel-tester/src/TextPanelExample.vue +1 -1
- package/plugins/@vcmap-show-case/panorama-inspector/package.json +10 -0
- package/plugins/@vcmap-show-case/panorama-inspector/src/PanoramaDebugInfo.vue +86 -0
- package/plugins/@vcmap-show-case/panorama-inspector/src/PanoramaDebugTools.vue +259 -0
- package/plugins/@vcmap-show-case/panorama-inspector/src/PanoramaInspector.vue +31 -0
- package/plugins/@vcmap-show-case/panorama-inspector/src/api.js +161 -0
- package/plugins/@vcmap-show-case/panorama-inspector/src/index.js +57 -0
- package/plugins/@vcmap-show-case/panorama-inspector/src/showClickInteraction.js +20 -0
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +1 -0
- package/plugins/@vcmap-show-case/toolbox-example/src/TriStateExampleWindow.vue +1 -1
- package/plugins/@vcmap-show-case/window-tester/src/EmptyComponent.vue +5 -5
- package/plugins/@vcmap-show-case/window-tester/src/MyCustomHeader.vue +1 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +1 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleContent.vue +1 -1
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +1 -1
- package/src/actions/actionHelper.js +138 -26
- package/src/application/MapsGroupMobileMenu.vue +6 -5
- package/src/application/MapsGroupMobileMenu.vue.d.ts +3 -1
- package/src/application/VcsApp.vue +47 -46
- package/src/application/VcsApp.vue.d.ts +23 -45
- package/src/application/VcsAppWrapper.vue +4 -4
- package/src/application/VcsAttributions.vue +12 -12
- package/src/application/VcsAttributionsFooter.vue +27 -27
- package/src/application/VcsContainer.vue +50 -51
- package/src/application/VcsContainer.vue.d.ts +18 -2
- package/src/application/VcsMainMap.vue +2 -2
- package/src/application/VcsMap.vue +16 -16
- package/src/application/VcsNavbar.vue +19 -16
- package/src/application/VcsNavbarMobile.vue +15 -15
- package/src/application/VcsObliqueFooter.vue +10 -9
- package/src/application/VcsPositionDisplay.vue +8 -8
- package/src/application/VcsTextPage.vue +10 -10
- package/src/application/VcsTextPageFooter.vue +9 -9
- package/src/application/uiConfigHelper.d.ts +6 -0
- package/src/application/uiConfigHelper.js +19 -0
- package/src/callback/activateMapCallback.d.ts +30 -0
- package/src/callback/activateMapCallback.js +63 -0
- package/src/callback/activateOverviewMapCallback.d.ts +7 -0
- package/src/callback/activateOverviewMapCallback.js +26 -0
- package/src/callback/deactivateOverviewMapCallback.d.ts +7 -0
- package/src/callback/deactivateOverviewMapCallback.js +20 -0
- package/src/callback/stopRotationCallback.js +0 -1
- package/src/callback/toggleToolbarButtonCallback.d.ts +48 -0
- package/src/callback/toggleToolbarButtonCallback.js +115 -0
- package/src/components/attrsHelpers.js +1 -1
- package/src/components/buttons/VcsActionButtonList.vue +5 -5
- package/src/components/buttons/VcsButton.vue +26 -26
- package/src/components/buttons/VcsFormButton.vue +31 -31
- package/src/components/buttons/VcsToolButton.vue +29 -29
- package/src/components/extent/VcsExtent.vue +1 -1
- package/src/components/extent/VcsExtentEditor.vue +1 -1
- package/src/components/flight/VcsFlightAnchorsComponent.vue +2 -2
- package/src/components/flight/VcsFlightAnchorsComponent.vue.d.ts +1 -4
- package/src/components/flight/VcsFlightEditor.vue +1 -0
- package/src/components/flight/VcsFlightEditor.vue.d.ts +4 -2
- package/src/components/flight/VcsFlightPlayer.vue +1 -1
- package/src/components/form-inputs-controls/VcsCheckbox.vue +23 -23
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +20 -20
- package/src/components/form-inputs-controls/VcsCoordinate.vue +3 -3
- package/src/components/form-inputs-controls/VcsDatePicker.vue +7 -7
- package/src/components/form-inputs-controls/VcsFileInput.vue +14 -14
- package/src/components/form-inputs-controls/VcsLabel.vue +26 -26
- package/src/components/form-inputs-controls/VcsRadio.vue +27 -27
- package/src/components/form-inputs-controls/VcsSelect.vue +78 -78
- package/src/components/form-inputs-controls/VcsSlider.vue +43 -43
- package/src/components/form-inputs-controls/VcsTextArea.vue +47 -47
- package/src/components/form-inputs-controls/VcsTextField.vue +4 -4
- package/src/components/form-inputs-controls/VcsWizard.vue +4 -4
- package/src/components/form-output/VcsFormattedNumber.vue +11 -11
- package/src/components/form-output/VcsMarkdown.vue +23 -22
- package/src/components/form-output/markdownHelper.js +1 -1
- package/src/components/import/VcsImportComponent.vue +1 -0
- package/src/components/import/VcsImportComponent.vue.d.ts +4 -2
- package/src/components/lists/VcsActionList.vue +14 -14
- package/src/components/lists/VcsGroupedList.vue +10 -2
- package/src/components/lists/VcsList.vue +24 -20
- package/src/components/lists/VcsList.vue.d.ts +4 -6
- package/src/components/lists/VcsListItemComponent.vue +28 -8
- package/src/components/lists/VcsTreeNode.vue +141 -38
- package/src/components/lists/VcsTreeview.vue +65 -23
- package/src/components/lists/VcsTreeview.vue.d.ts +34 -9
- package/src/components/lists/VcsTreeviewSearchbar.vue +50 -50
- package/src/components/lists/VcsTreeviewTitle.vue +13 -13
- package/src/components/lists/dragHelper.d.ts +118 -0
- package/src/components/lists/dragHelper.js +325 -0
- package/src/components/lists/listHelper.d.ts +3 -2
- package/src/components/lists/listHelper.js +8 -1
- package/src/components/notification/VcsBadge.vue +12 -12
- package/src/components/notification/VcsHelp.vue +9 -9
- package/src/components/notification/VcsHelpTooltip.vue +1 -1
- package/src/components/plugins/AbstractWorkspaceItemCreator.vue +104 -0
- package/src/components/plugins/AbstractWorkspaceItemCreator.vue.d.ts +82 -0
- package/src/components/section/VcsExpansionPanel.vue +13 -3
- package/src/components/style/StyleMenuWrapper.vue +1 -1
- package/src/components/tables/VcsDataTable.vue +3 -2
- package/src/components/tables/VcsDataTable.vue.d.ts +4 -2
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +1 -1
- package/src/components/vector-properties/VcsFeatureTransforms.vue +1 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +1 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +1 -1
- package/src/components/viewpoint/VcsViewpointEditor.vue +1 -0
- package/src/components/viewpoint/VcsViewpointEditor.vue.d.ts +4 -2
- package/src/contentTree/LayerSwap.vue +158 -0
- package/src/contentTree/LayerSwap.vue.d.ts +27 -0
- package/src/contentTree/LayerTree.vue +53 -3
- package/src/contentTree/LayerTree.vue.d.ts +3 -0
- package/src/contentTree/contentTreeCollection.js +0 -1
- package/src/featureInfo/featureInfo.js +1 -4
- package/src/featureInfo/iframeWmsFeatureInfoView.d.ts +10 -0
- package/src/featureInfo/iframeWmsFeatureInfoView.js +42 -0
- package/src/i18n/de.d.ts +67 -55
- package/src/i18n/de.js +8 -0
- package/src/i18n/en.d.ts +67 -55
- package/src/i18n/en.js +8 -0
- package/src/init.js +1 -1
- package/src/legend/VcsLegend.vue +5 -1
- package/src/manager/collectionManager/CollectionComponent.vue +1 -1
- package/src/manager/collectionManager/CollectionComponentContent.vue +2 -2
- package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +1 -4
- package/src/manager/collectionManager/CollectionComponentList.vue +14 -13
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +3 -7
- package/src/manager/collectionManager/CollectionComponentStandalone.vue +2 -2
- package/src/manager/collectionManager/CollectionManager.vue +2 -2
- package/src/manager/panel/PanelComponent.vue +40 -39
- package/src/manager/panel/PanelComponent.vue.d.ts +4 -2
- package/src/manager/panel/PanelManagerComponent.vue +13 -13
- package/src/manager/panel/PanelManagerComponent.vue.d.ts +4 -2
- package/src/manager/panel/panelHelper.js +19 -21
- package/src/manager/toolbox/GroupToolboxComponent.vue +9 -8
- package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +5 -2
- package/src/manager/toolbox/SelectToolboxComponent.vue +9 -8
- package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +5 -2
- package/src/manager/toolbox/ToolboxManagerComponent.vue +23 -23
- package/src/manager/window/WindowComponent.vue +12 -12
- package/src/manager/window/WindowComponent.vue.d.ts +7 -4
- package/src/manager/window/WindowComponentHeader.vue +24 -24
- package/src/manager/window/WindowComponentHeader.vue.d.ts +7 -4
- package/src/manager/window/WindowManager.vue +41 -41
- package/src/navigation/MapNavCompass.vue +4 -3
- package/src/navigation/MapNavCompass.vue.d.ts +4 -2
- package/src/navigation/MapNavigation.vue +60 -18
- package/src/navigation/MapNavigation.vue.d.ts +1 -0
- package/src/navigation/ObliqueRotation.vue +1 -0
- package/src/navigation/ObliqueRotation.vue.d.ts +4 -2
- package/src/navigation/OrientationToolsButton.vue +1 -1
- package/src/navigation/TiltSlider.vue +45 -37
- package/src/navigation/TiltSlider.vue.d.ts +20 -0
- package/src/navigation/VcsCompass.vue +20 -13
- package/src/navigation/VcsCompass.vue.d.ts +6 -2
- package/src/navigation/VcsZoomButton.vue +1 -0
- package/src/navigation/VcsZoomButton.vue.d.ts +5 -2
- package/src/navigation/locatorHelper.js +1 -1
- package/src/navigation/overviewMap.d.ts +5 -0
- package/src/navigation/overviewMap.js +17 -0
- package/src/notifier/NotifierComponent.vue +1 -1
- package/src/pluginHelper.js +2 -1
- package/src/search/ResultItem.vue +1 -0
- package/src/search/ResultsComponent.vue +8 -1
- package/src/search/SearchComponent.vue +38 -52
- package/src/search/SearchComponent.vue.d.ts +1 -2
- package/src/search/markText.js +2 -2
- package/src/search/search.d.ts +13 -0
- package/src/search/search.js +21 -1
- package/src/state.d.ts +12 -1
- package/src/state.js +59 -4
- package/src/uiConfig.d.ts +39 -3
- package/src/uiConfig.js +5 -1
- package/src/vcsUiApp.js +20 -0
- package/dist/assets/core-74bef978.js +0 -26249
- package/dist/assets/ui-1f833d5c.css +0 -1
- /package/dist/assets/{ol-82490708.js → ol-f58f403b.js} +0 -0
- /package/dist/assets/{vue-76d01dd8.js → vue-d7691a29.js} +0 -0
- /package/dist/assets/{vuetify-30b1b4a7.css → vuetify-533fb61b.css} +0 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { inject, onUnmounted, ref, shallowRef, watch } from 'vue';
|
|
3
|
+
import { VcsCheckbox, VcsFormSection, VcsLabel, VcsSlider } from '@vcmap/ui';
|
|
4
|
+
import { Color } from '@vcmap-cesium/engine';
|
|
5
|
+
import {
|
|
6
|
+
VContainer,
|
|
7
|
+
VRow,
|
|
8
|
+
VCol,
|
|
9
|
+
VColorPicker,
|
|
10
|
+
VMenu,
|
|
11
|
+
VCard,
|
|
12
|
+
} from 'vuetify/components';
|
|
13
|
+
import {
|
|
14
|
+
cesiumColorToColor,
|
|
15
|
+
getStringColor,
|
|
16
|
+
PanoramaOverlayMode,
|
|
17
|
+
} from '@vcmap/core';
|
|
18
|
+
import {
|
|
19
|
+
createMapMarkerAction,
|
|
20
|
+
createOsmGlobeAction,
|
|
21
|
+
setupClickedPrimitive,
|
|
22
|
+
} from './api.js';
|
|
23
|
+
import { name } from '../package.json';
|
|
24
|
+
|
|
25
|
+
const app = inject('vcsApp');
|
|
26
|
+
/** @type {import("@vcmap/core").PanoramaMap} */
|
|
27
|
+
const map = app.maps.activeMap; // better be a panorama map;
|
|
28
|
+
const clickedPrimitive = setupClickedPrimitive(
|
|
29
|
+
map,
|
|
30
|
+
app.plugins.getByKey(name).clickedInteraction,
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const showClickedPosition = ref(false);
|
|
34
|
+
watch(showClickedPosition, (newShowClickedPosition) => {
|
|
35
|
+
clickedPrimitive.show = newShowClickedPosition;
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const { scene } = map.getCesiumWidget();
|
|
39
|
+
const enableCesiumInteraction = ref(
|
|
40
|
+
scene.screenSpaceCameraController.enableInputs,
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
watch(enableCesiumInteraction, (newEnableCesiumInteraction) => {
|
|
44
|
+
scene.screenSpaceCameraController.enableInputs = newEnableCesiumInteraction;
|
|
45
|
+
|
|
46
|
+
if (!newEnableCesiumInteraction) {
|
|
47
|
+
scene.camera.setView({
|
|
48
|
+
destination: map.currentPanoramaImage.position,
|
|
49
|
+
orientation: map.currentPanoramaImage.orientation,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const { action, destroy } = createOsmGlobeAction(app);
|
|
55
|
+
const { action: hideMarker, destroy: destroyMarker } =
|
|
56
|
+
createMapMarkerAction(app);
|
|
57
|
+
|
|
58
|
+
const suspendTileLoading = ref(map.panoramaView.suspendTileLoading);
|
|
59
|
+
watch(suspendTileLoading, (newSuspendTileLoading) => {
|
|
60
|
+
map.panoramaView.suspendTileLoading = newSuspendTileLoading;
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const opacity = ref(map.panoramaView.tilePrimitiveCollection.opacity);
|
|
64
|
+
watch(opacity, (newOpacity) => {
|
|
65
|
+
map.panoramaView.tilePrimitiveCollection.opacity = newOpacity;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const overlayOpacity = ref(
|
|
69
|
+
map.panoramaView.tilePrimitiveCollection.overlayOpacity,
|
|
70
|
+
);
|
|
71
|
+
watch(overlayOpacity, (newOverlayOpacity) => {
|
|
72
|
+
map.panoramaView.tilePrimitiveCollection.overlayOpacity = newOverlayOpacity;
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
const overlayNaNColor = shallowRef(
|
|
76
|
+
getStringColor(
|
|
77
|
+
cesiumColorToColor(
|
|
78
|
+
map.panoramaView.tilePrimitiveCollection.overlayNaNColor,
|
|
79
|
+
),
|
|
80
|
+
),
|
|
81
|
+
);
|
|
82
|
+
watch(overlayNaNColor, (newOverlayNaNColor) => {
|
|
83
|
+
map.panoramaView.tilePrimitiveCollection.overlayNaNColor =
|
|
84
|
+
Color.fromCssColorString(newOverlayNaNColor);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
const cursorColor = shallowRef(
|
|
88
|
+
getStringColor(
|
|
89
|
+
cesiumColorToColor(map.panoramaView.tilePrimitiveCollection.cursorColor),
|
|
90
|
+
),
|
|
91
|
+
);
|
|
92
|
+
watch(cursorColor, (newCursorColor) => {
|
|
93
|
+
map.panoramaView.tilePrimitiveCollection.cursorColor =
|
|
94
|
+
Color.fromCssColorString(newCursorColor);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const showIntensity = ref(
|
|
98
|
+
map.panoramaView.tilePrimitiveCollection.overlay ===
|
|
99
|
+
PanoramaOverlayMode.Intensity,
|
|
100
|
+
);
|
|
101
|
+
const showDepth = ref(
|
|
102
|
+
map.panoramaView.tilePrimitiveCollection.overlay ===
|
|
103
|
+
PanoramaOverlayMode.Depth,
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
watch(showIntensity, (newShowIntensity) => {
|
|
107
|
+
if (newShowIntensity) {
|
|
108
|
+
showDepth.value = false;
|
|
109
|
+
map.panoramaView.tilePrimitiveCollection.overlay =
|
|
110
|
+
PanoramaOverlayMode.Intensity;
|
|
111
|
+
} else if (!showDepth.value) {
|
|
112
|
+
map.panoramaView.tilePrimitiveCollection.overlay =
|
|
113
|
+
PanoramaOverlayMode.None;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
watch(showDepth, (newShowDepth) => {
|
|
118
|
+
if (newShowDepth) {
|
|
119
|
+
showIntensity.value = false;
|
|
120
|
+
map.panoramaView.tilePrimitiveCollection.overlay =
|
|
121
|
+
PanoramaOverlayMode.Depth;
|
|
122
|
+
} else if (!showIntensity.value) {
|
|
123
|
+
map.panoramaView.tilePrimitiveCollection.overlay =
|
|
124
|
+
PanoramaOverlayMode.None;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
const showDebug = ref(map.panoramaView.tilePrimitiveCollection.showDebug);
|
|
129
|
+
watch(showDebug, (newShowDebug) => {
|
|
130
|
+
map.panoramaView.tilePrimitiveCollection.showDebug = newShowDebug;
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
onUnmounted(() => {
|
|
134
|
+
clickedPrimitive.destroy();
|
|
135
|
+
destroy();
|
|
136
|
+
destroyMarker();
|
|
137
|
+
map.panoramaView.tilePrimitiveCollection.opacity = 1;
|
|
138
|
+
});
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
<template>
|
|
142
|
+
<vcs-form-section
|
|
143
|
+
heading="Tools"
|
|
144
|
+
expandable
|
|
145
|
+
:header-actions="[action, hideMarker]"
|
|
146
|
+
>
|
|
147
|
+
<v-container class="py-0 px-1">
|
|
148
|
+
<v-row no-gutters>
|
|
149
|
+
<v-col>
|
|
150
|
+
<VcsCheckbox label="Show Debug" v-model="showDebug"></VcsCheckbox>
|
|
151
|
+
</v-col>
|
|
152
|
+
</v-row>
|
|
153
|
+
<v-row no-gutters>
|
|
154
|
+
<v-col>
|
|
155
|
+
<VcsCheckbox
|
|
156
|
+
label="Show Intensity"
|
|
157
|
+
v-model="showIntensity"
|
|
158
|
+
></VcsCheckbox>
|
|
159
|
+
</v-col>
|
|
160
|
+
</v-row>
|
|
161
|
+
<v-row no-gutters>
|
|
162
|
+
<v-col>
|
|
163
|
+
<VcsCheckbox label="Show Depth" v-model="showDepth"></VcsCheckbox>
|
|
164
|
+
</v-col>
|
|
165
|
+
</v-row>
|
|
166
|
+
<template v-if="showDepth || showIntensity">
|
|
167
|
+
<v-row no-gutters>
|
|
168
|
+
<v-col cols="4">
|
|
169
|
+
<vcs-label>Overlay Opacity</vcs-label>
|
|
170
|
+
</v-col>
|
|
171
|
+
<v-col>
|
|
172
|
+
<vcs-slider
|
|
173
|
+
v-model="overlayOpacity"
|
|
174
|
+
:min="0"
|
|
175
|
+
:max="1"
|
|
176
|
+
:step="0.01"
|
|
177
|
+
/>
|
|
178
|
+
</v-col>
|
|
179
|
+
</v-row>
|
|
180
|
+
<v-row no-gutters>
|
|
181
|
+
<v-col>
|
|
182
|
+
<vcs-label>Overlay NaN Color</vcs-label>
|
|
183
|
+
</v-col>
|
|
184
|
+
<v-col>
|
|
185
|
+
<v-menu :close-on-content-click="false">
|
|
186
|
+
<template #activator="{ props }">
|
|
187
|
+
<v-card
|
|
188
|
+
rounded
|
|
189
|
+
height="24px"
|
|
190
|
+
width="32px"
|
|
191
|
+
v-bind="props"
|
|
192
|
+
:style="{ backgroundColor: overlayNaNColor }"
|
|
193
|
+
/>
|
|
194
|
+
</template>
|
|
195
|
+
<v-color-picker
|
|
196
|
+
v-model="overlayNaNColor"
|
|
197
|
+
mode="rgba"
|
|
198
|
+
width="100%"
|
|
199
|
+
/>
|
|
200
|
+
</v-menu>
|
|
201
|
+
</v-col>
|
|
202
|
+
</v-row>
|
|
203
|
+
</template>
|
|
204
|
+
<v-row no-gutters>
|
|
205
|
+
<v-col>
|
|
206
|
+
<vcs-label>Cursor Color</vcs-label>
|
|
207
|
+
</v-col>
|
|
208
|
+
<v-col>
|
|
209
|
+
<v-menu :close-on-content-click="false">
|
|
210
|
+
<template #activator="{ props }">
|
|
211
|
+
<v-card
|
|
212
|
+
rounded
|
|
213
|
+
height="24px"
|
|
214
|
+
width="32px"
|
|
215
|
+
v-bind="props"
|
|
216
|
+
:style="{ backgroundColor: cursorColor }"
|
|
217
|
+
/>
|
|
218
|
+
</template>
|
|
219
|
+
<v-color-picker v-model="cursorColor" mode="rgba" width="100%" />
|
|
220
|
+
</v-menu>
|
|
221
|
+
</v-col>
|
|
222
|
+
</v-row>
|
|
223
|
+
<v-row no-gutters>
|
|
224
|
+
<v-col>
|
|
225
|
+
<VcsCheckbox
|
|
226
|
+
label="Enable Cesium Interaction"
|
|
227
|
+
v-model="enableCesiumInteraction"
|
|
228
|
+
></VcsCheckbox>
|
|
229
|
+
</v-col>
|
|
230
|
+
</v-row>
|
|
231
|
+
<v-row no-gutters>
|
|
232
|
+
<v-col>
|
|
233
|
+
<VcsCheckbox
|
|
234
|
+
label="Show Clicked"
|
|
235
|
+
v-model="showClickedPosition"
|
|
236
|
+
></VcsCheckbox>
|
|
237
|
+
</v-col>
|
|
238
|
+
</v-row>
|
|
239
|
+
<v-row no-gutters>
|
|
240
|
+
<v-col>
|
|
241
|
+
<VcsCheckbox
|
|
242
|
+
label="Suspend Tile Loading"
|
|
243
|
+
v-model="suspendTileLoading"
|
|
244
|
+
></VcsCheckbox>
|
|
245
|
+
</v-col>
|
|
246
|
+
</v-row>
|
|
247
|
+
<v-row no-gutters>
|
|
248
|
+
<v-col cols="4">
|
|
249
|
+
<vcs-label>Opacity</vcs-label>
|
|
250
|
+
</v-col>
|
|
251
|
+
<v-col>
|
|
252
|
+
<vcs-slider v-model="opacity" :min="0" :max="1" :step="0.01" />
|
|
253
|
+
</v-col>
|
|
254
|
+
</v-row>
|
|
255
|
+
</v-container>
|
|
256
|
+
</vcs-form-section>
|
|
257
|
+
</template>
|
|
258
|
+
|
|
259
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, inject, onUnmounted } from 'vue';
|
|
3
|
+
import { PanoramaMap } from '@vcmap/core';
|
|
4
|
+
import { VSheet, VCard } from 'vuetify/components';
|
|
5
|
+
import PanoramaDebugInfo from './PanoramaDebugInfo.vue';
|
|
6
|
+
import PanoramaDebugTools from './PanoramaDebugTools.vue';
|
|
7
|
+
|
|
8
|
+
/** @type {VcsUiApp} */
|
|
9
|
+
const app = inject('vcsApp');
|
|
10
|
+
const isPanorama = ref(app.maps.activeMap instanceof PanoramaMap);
|
|
11
|
+
|
|
12
|
+
const listener = app.maps.mapActivated.addEventListener((map) => {
|
|
13
|
+
isPanorama.value = map instanceof PanoramaMap;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
onUnmounted(() => {
|
|
17
|
+
listener();
|
|
18
|
+
});
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<v-sheet>
|
|
23
|
+
<template v-if="isPanorama">
|
|
24
|
+
<panorama-debug-info />
|
|
25
|
+
<panorama-debug-tools />
|
|
26
|
+
</template>
|
|
27
|
+
<v-card v-else> Switch to panorama map </v-card>
|
|
28
|
+
</v-sheet>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GeometryInstance,
|
|
3
|
+
Material,
|
|
4
|
+
MaterialAppearance,
|
|
5
|
+
Matrix4,
|
|
6
|
+
Primitive,
|
|
7
|
+
SphereGeometry,
|
|
8
|
+
Color,
|
|
9
|
+
Cartesian3,
|
|
10
|
+
Globe,
|
|
11
|
+
ImageryLayer as CesiumImageryLayer,
|
|
12
|
+
OpenStreetMapImageryProvider,
|
|
13
|
+
} from '@vcmap-cesium/engine';
|
|
14
|
+
import {
|
|
15
|
+
mercatorToCartesian,
|
|
16
|
+
PanoramaMap,
|
|
17
|
+
PanoramaDatasetLayer,
|
|
18
|
+
} from '@vcmap/core';
|
|
19
|
+
import { reactive, ref, computed, watch } from 'vue';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @typedef {Object} ClickedPrimitive
|
|
23
|
+
* @property {boolean} show
|
|
24
|
+
* @property {Cartesian3} position
|
|
25
|
+
* @property {() => void} destroy
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param {import("@vcmap/core").PanoramaMap} map
|
|
30
|
+
* @param {ShowClickInteraction} clickedInteraction
|
|
31
|
+
* @returns {ClickedPrimitive}
|
|
32
|
+
*/
|
|
33
|
+
export function setupClickedPrimitive(map, clickedInteraction) {
|
|
34
|
+
const position = new Cartesian3();
|
|
35
|
+
const appearance = new MaterialAppearance({
|
|
36
|
+
flat: true,
|
|
37
|
+
material: Material.fromType('Color', { color: Color.ORANGERED }),
|
|
38
|
+
});
|
|
39
|
+
const primitive = new Primitive({
|
|
40
|
+
geometryInstances: [
|
|
41
|
+
new GeometryInstance({
|
|
42
|
+
geometry: new SphereGeometry({
|
|
43
|
+
radius: 0.2,
|
|
44
|
+
}),
|
|
45
|
+
}),
|
|
46
|
+
],
|
|
47
|
+
appearance,
|
|
48
|
+
depthFailAppearance: new MaterialAppearance({
|
|
49
|
+
translucent: true,
|
|
50
|
+
material: Material.fromType('Color', {
|
|
51
|
+
color: Color.LIMEGREEN.withAlpha(0.6),
|
|
52
|
+
}),
|
|
53
|
+
}),
|
|
54
|
+
asynchronous: false,
|
|
55
|
+
show: false,
|
|
56
|
+
modelMatrix: Matrix4.IDENTITY,
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
map.getCesiumWidget().scene.primitives.add(primitive);
|
|
60
|
+
clickedInteraction.clicked.addEventListener((event) => {
|
|
61
|
+
mercatorToCartesian(event.position, position);
|
|
62
|
+
primitive.modelMatrix = Matrix4.fromTranslation(position);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
get show() {
|
|
67
|
+
return primitive.show;
|
|
68
|
+
},
|
|
69
|
+
set show(value) {
|
|
70
|
+
primitive.show = value;
|
|
71
|
+
},
|
|
72
|
+
get position() {
|
|
73
|
+
return position;
|
|
74
|
+
},
|
|
75
|
+
destroy() {
|
|
76
|
+
map.getCesiumWidget().scene.primitives.remove(primitive);
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @param {import("@vcmap/core").VcsApp} app
|
|
83
|
+
* @returns {{ action: import("@vcmap/ui").Action, destroy: () => void }}
|
|
84
|
+
*/
|
|
85
|
+
export function createOsmGlobeAction(app) {
|
|
86
|
+
/** @type {import("@vcmap/core").PanoramaMap} */
|
|
87
|
+
const map = app.maps.getByType(PanoramaMap.className)[0];
|
|
88
|
+
|
|
89
|
+
const action = reactive({
|
|
90
|
+
name: 'OSM Globe',
|
|
91
|
+
icon: 'mdi-earth',
|
|
92
|
+
title: 'Open Street Map Globe',
|
|
93
|
+
active: false,
|
|
94
|
+
callback() {
|
|
95
|
+
if (action.active) {
|
|
96
|
+
map.getCesiumWidget().scene.globe = undefined;
|
|
97
|
+
action.active = false;
|
|
98
|
+
} else {
|
|
99
|
+
const { scene } = map.getCesiumWidget();
|
|
100
|
+
scene.globe = new Globe();
|
|
101
|
+
scene.imageryLayers.add(
|
|
102
|
+
new CesiumImageryLayer(
|
|
103
|
+
new OpenStreetMapImageryProvider({ maximumLevel: 18 }),
|
|
104
|
+
),
|
|
105
|
+
);
|
|
106
|
+
action.active = true;
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
action,
|
|
113
|
+
destroy: () => {
|
|
114
|
+
if (map.initialized) {
|
|
115
|
+
map.getCesiumWidget().scene.globe = undefined;
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param {import("@vcmap/core").VcsApp} app
|
|
123
|
+
* @returns {{action: import("@vcmap/ui").VcsAction, destroy(): void}}
|
|
124
|
+
*/
|
|
125
|
+
export function createMapMarkerAction(app) {
|
|
126
|
+
const hideFootprint = ref(false);
|
|
127
|
+
|
|
128
|
+
const hideFootprintWatcher = watch(hideFootprint, () => {
|
|
129
|
+
for (const layer of app.layers) {
|
|
130
|
+
if (layer instanceof PanoramaDatasetLayer) {
|
|
131
|
+
layer.hideInPanorama = hideFootprint.value;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
const layerAdded = app.layers.added.addEventListener((layer) => {
|
|
137
|
+
if (layer instanceof PanoramaDatasetLayer) {
|
|
138
|
+
layer.hideInPanorama = hideFootprint.value;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
const action = reactive({
|
|
143
|
+
name: 'Hide Footprint',
|
|
144
|
+
icon: computed(() => {
|
|
145
|
+
return hideFootprint.value ? 'mdi-map-marker-off' : 'mdi-map-marker';
|
|
146
|
+
}),
|
|
147
|
+
title: 'Hide Footprint',
|
|
148
|
+
active: computed(() => hideFootprint.value),
|
|
149
|
+
callback() {
|
|
150
|
+
hideFootprint.value = !hideFootprint.value;
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
action,
|
|
156
|
+
destroy() {
|
|
157
|
+
hideFootprintWatcher();
|
|
158
|
+
layerAdded();
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ButtonLocation, createToggleAction, WindowSlot } from '@vcmap/ui';
|
|
2
|
+
import { name, version, mapVersion } from '../package.json';
|
|
3
|
+
import PanoramaInspector from './PanoramaInspector.vue';
|
|
4
|
+
import ShowClickInteraction from './showClickInteraction.js';
|
|
5
|
+
|
|
6
|
+
export default function panoramaInspector() {
|
|
7
|
+
let destroy;
|
|
8
|
+
let clickedInteraction;
|
|
9
|
+
let removeInteraction;
|
|
10
|
+
let clickedPrimitive;
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
name,
|
|
14
|
+
version,
|
|
15
|
+
mapVersion,
|
|
16
|
+
get clickedInteraction() {
|
|
17
|
+
return clickedInteraction;
|
|
18
|
+
},
|
|
19
|
+
get clickedPrimitive() {
|
|
20
|
+
return clickedPrimitive;
|
|
21
|
+
},
|
|
22
|
+
async initialize(app) {
|
|
23
|
+
const { action, destroy: destroyAction } = createToggleAction(
|
|
24
|
+
{
|
|
25
|
+
name: 'Panorama Inspector',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'panorama-inspector',
|
|
29
|
+
state: {
|
|
30
|
+
headerTitle: 'panoramaInspector.title',
|
|
31
|
+
},
|
|
32
|
+
component: PanoramaInspector,
|
|
33
|
+
slot: WindowSlot.DYNAMIC_RIGHT,
|
|
34
|
+
},
|
|
35
|
+
app.windowManager,
|
|
36
|
+
name,
|
|
37
|
+
);
|
|
38
|
+
app.navbarManager.add(
|
|
39
|
+
{ id: 'panorama-inspector', action },
|
|
40
|
+
name,
|
|
41
|
+
ButtonLocation.MENU,
|
|
42
|
+
);
|
|
43
|
+
clickedInteraction = new ShowClickInteraction();
|
|
44
|
+
removeInteraction =
|
|
45
|
+
app.maps.eventHandler.addPersistentInteraction(clickedInteraction);
|
|
46
|
+
destroy = destroyAction;
|
|
47
|
+
},
|
|
48
|
+
destroy() {
|
|
49
|
+
destroy?.();
|
|
50
|
+
removeInteraction?.();
|
|
51
|
+
clickedInteraction?.destroy();
|
|
52
|
+
clickedInteraction = undefined;
|
|
53
|
+
clickedPrimitive?.destroy();
|
|
54
|
+
clickedPrimitive = undefined;
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractInteraction, EventType, VcsEvent } from '@vcmap/core';
|
|
2
|
+
|
|
3
|
+
export default class ShowClickInteraction extends AbstractInteraction {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(EventType.CLICK);
|
|
6
|
+
|
|
7
|
+
this.clicked = new VcsEvent();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
pipe(event) {
|
|
11
|
+
if (
|
|
12
|
+
event.map.className === 'PanoramaMap' &&
|
|
13
|
+
!event.map.getCesiumWidget().scene.screenSpaceCameraController
|
|
14
|
+
.enableInputs
|
|
15
|
+
) {
|
|
16
|
+
this.clicked.raiseEvent(event);
|
|
17
|
+
}
|
|
18
|
+
return Promise.resolve(event);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
<span> Static Window </span>
|
|
4
4
|
</v-sheet>
|
|
5
5
|
</template>
|
|
6
|
-
<style scoped>
|
|
7
|
-
.vcsTest span {
|
|
8
|
-
background-color: red;
|
|
9
|
-
}
|
|
10
|
-
</style>
|
|
11
6
|
<script>
|
|
12
7
|
import { VSheet } from 'vuetify/components';
|
|
13
8
|
|
|
@@ -16,3 +11,8 @@
|
|
|
16
11
|
components: { VSheet },
|
|
17
12
|
};
|
|
18
13
|
</script>
|
|
14
|
+
<style scoped>
|
|
15
|
+
.vcsTest span {
|
|
16
|
+
background-color: red;
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
</v-container>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
|
-
<style scoped></style>
|
|
14
13
|
<script>
|
|
15
14
|
import { VContainer } from 'vuetify/components';
|
|
16
15
|
import { VcsFormButton, WindowSlot } from '@vcmap/ui';
|
|
@@ -51,3 +50,4 @@
|
|
|
51
50
|
},
|
|
52
51
|
};
|
|
53
52
|
</script>
|
|
53
|
+
<style scoped></style>
|