@vcmap/ui 5.0.0-rc.8 → 5.0.0
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/README.md +95 -64
- package/app.config.json +3 -0
- package/build/.eslintrc +3 -0
- package/build/build.js +302 -165
- package/build/buildCesium.js +39 -19
- package/build/buildHelpers.js +279 -88
- package/build/buildPreview.js +16 -6
- package/build/bundle.js +57 -0
- package/build/commonViteConfig.js +7 -16
- package/build/determineHost.js +17 -4
- package/build/generateOLLib.js +15 -18
- package/build/getPluginProxies.js +35 -3
- package/build/info/conf.json +21 -19
- package/build/info/publish.js +16 -5
- package/config/aerowest.config.json +47 -54
- package/config/base.config.json +597 -662
- package/config/codes.config.json +401 -0
- package/config/dev.config.json +460 -14
- package/config/graphFeatureInfo.config.json +141 -0
- package/config/projects.config.json +29 -0
- package/config/www.config.json +1801 -0
- package/dist/assets/@mdi/font/LICENSE +20 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.css.map +16 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min.e3f476.css +3 -0
- package/dist/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/dist/assets/cesium/ThirdParty/Workers/basis_transcoder.js +21 -0
- package/dist/assets/cesium/ThirdParty/Workers/package.json +1 -0
- package/dist/assets/cesium/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist/assets/cesium/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist/assets/cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/assets/cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/assets/cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/assets/cesium/ThirdParty/google-earth-dbroot-parser.js +8337 -0
- package/dist/assets/cesium/Workers/chunk-227AJNOA.js +59 -0
- package/dist/assets/cesium/Workers/chunk-2R5O53JW.js +157 -0
- package/dist/assets/cesium/Workers/chunk-34YUDLRP.js +781 -0
- package/dist/assets/cesium/Workers/chunk-3W63OHNJ.js +100 -0
- package/dist/assets/cesium/Workers/chunk-4MFFIWUA.js +163 -0
- package/dist/assets/cesium/Workers/chunk-66QLLS45.js +218 -0
- package/dist/assets/cesium/Workers/chunk-6BTKZDRG.js +77 -0
- package/dist/assets/cesium/Workers/chunk-A4JVFBQ3.js +101 -0
- package/dist/assets/cesium/Workers/chunk-ABADGKYE.js +58 -0
- package/dist/assets/cesium/Workers/chunk-AFFLIKOH.js +353 -0
- package/dist/assets/cesium/Workers/chunk-AHKEZ2OE.js +629 -0
- package/dist/assets/cesium/Workers/chunk-C3SXRKRW.js +476 -0
- package/dist/assets/cesium/Workers/chunk-CCFQRR6D.js +55 -0
- package/dist/assets/cesium/Workers/chunk-CHHNOC2C.js +1860 -0
- package/dist/assets/cesium/Workers/chunk-CTELOFLA.js +196 -0
- package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +3273 -0
- package/dist/assets/cesium/Workers/chunk-EW2GWJYB.js +44 -0
- package/dist/assets/cesium/Workers/chunk-GLZBE3ML.js +421 -0
- package/dist/assets/cesium/Workers/chunk-HARLBUOL.js +236 -0
- package/dist/assets/cesium/Workers/chunk-HQF437NJ.js +117 -0
- package/dist/assets/cesium/Workers/chunk-IPA4EACJ.js +368 -0
- package/dist/assets/cesium/Workers/chunk-J3JY6I2C.js +1009 -0
- package/dist/assets/cesium/Workers/chunk-JB2LWGH4.js +390 -0
- package/dist/assets/cesium/Workers/chunk-JS3AW5BK.js +634 -0
- package/dist/assets/cesium/Workers/chunk-K36FEYS7.js +452 -0
- package/dist/assets/cesium/Workers/chunk-KD4Y7CZL.js +400 -0
- package/dist/assets/cesium/Workers/chunk-KTJSNCK4.js +842 -0
- package/dist/assets/cesium/Workers/chunk-LLUNNUJV.js +258 -0
- package/dist/assets/cesium/Workers/chunk-MPAZH4BF.js +37 -0
- package/dist/assets/cesium/Workers/chunk-MYZB7C4T.js +1258 -0
- package/dist/assets/cesium/Workers/chunk-N3JIFFX2.js +501 -0
- package/dist/assets/cesium/Workers/chunk-O5AMBQ36.js +430 -0
- package/dist/assets/cesium/Workers/chunk-OAVNIRB4.js +124 -0
- package/dist/assets/cesium/Workers/chunk-OYFCF4PL.js +171 -0
- package/dist/assets/cesium/Workers/chunk-OZJDGN5F.js +1477 -0
- package/dist/assets/cesium/Workers/chunk-PCJWUS4M.js +2041 -0
- package/dist/assets/cesium/Workers/chunk-PFQBCKBM.js +8644 -0
- package/dist/assets/cesium/Workers/chunk-QIKODV5G.js +305 -0
- package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +73 -0
- package/dist/assets/cesium/Workers/chunk-QMEMZIJI.js +138 -0
- package/dist/assets/cesium/Workers/chunk-QT3MPEMI.js +102 -0
- package/dist/assets/cesium/Workers/chunk-RP2A7BR5.js +289 -0
- package/dist/assets/cesium/Workers/chunk-RW6LU2CJ.js +138 -0
- package/dist/assets/cesium/Workers/chunk-TFC6TZ3S.js +757 -0
- package/dist/assets/cesium/Workers/chunk-V3NGATMV.js +693 -0
- package/dist/assets/cesium/Workers/chunk-VLGOATD6.js +1075 -0
- package/dist/assets/cesium/Workers/chunk-WXTV4ATB.js +39 -0
- package/dist/assets/cesium/Workers/chunk-X4SU25DT.js +302 -0
- package/dist/assets/cesium/Workers/chunk-XTY7B2N6.js +2716 -0
- package/dist/assets/cesium/Workers/chunk-XY7MGBKC.js +513 -0
- package/dist/assets/cesium/Workers/chunk-Z24VKNDO.js +834 -0
- package/dist/assets/cesium/Workers/chunk-ZA25DG4Y.js +684 -0
- package/dist/assets/cesium/Workers/chunk-ZFOBYDGF.js +73 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +67 -1
- package/dist/assets/cesium/Workers/createBoxGeometry.js +57 -1
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +234 -1
- package/dist/assets/cesium/Workers/createCircleGeometry.js +196 -1
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +146 -1
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +506 -1
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +224 -1
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1262 -1
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +567 -1
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +59 -1
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +231 -1
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +70 -1
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +63 -1
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +58 -1
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +60 -1
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +57 -1
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +234 -1
- package/dist/assets/cesium/Workers/createGeometry.js +150 -1
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1607 -1
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +223 -1
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +123 -1
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1134 -1
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +542 -1
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +495 -1
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +379 -1
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +277 -1
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1273 -1
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +480 -1
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +399 -1
- package/dist/assets/cesium/Workers/createSphereGeometry.js +117 -1
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +117 -1
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +32 -1
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +492 -1
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +386 -1
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +112 -1
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +384 -1
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +262 -1
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +568 -1
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +2277 -3
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +745 -1
- package/dist/assets/cesium/Workers/createWallGeometry.js +489 -1
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +337 -1
- package/dist/assets/cesium/Workers/decodeDraco.js +369 -1
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2650 -1
- package/dist/assets/cesium/Workers/decodeI3S.js +835 -0
- package/dist/assets/cesium/Workers/transcodeKTX2.js +3425 -1
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +41 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +818 -1
- package/dist/assets/cesium.4137c8.js +164897 -0
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/core.306872.js +19286 -0
- package/dist/assets/core.js +1 -1
- package/dist/assets/favicon-128.4c4ce5.png +0 -0
- package/dist/assets/favicon-180.5b99c0.png +0 -0
- package/dist/assets/favicon-192.0e205e.png +0 -0
- package/dist/assets/favicon-32.6b9add.png +0 -0
- package/dist/assets/favicon.d5ec97.svg +10 -0
- package/dist/assets/font/OFL.txt +93 -0
- package/dist/assets/font/TitilliumWeb-Regular.9ca076.woff2 +0 -0
- package/dist/assets/index-cfed33b1.js +1 -0
- package/dist/assets/ol.328bbf.js +60117 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/style/icon-marker-blue.534e37.png +0 -0
- package/dist/assets/style/icon-marker-green.0b6a92.png +0 -0
- package/dist/assets/style/icon-marker-o-blue.7b6d62.png +0 -0
- package/dist/assets/style/icon-marker-o-green.c863c0.png +0 -0
- package/dist/assets/style/icon-marker-o-red.93ff58.png +0 -0
- package/dist/assets/style/icon-marker-o.036477.png +0 -0
- package/dist/assets/style/icon-marker-red.313d03.png +0 -0
- package/dist/assets/style/icon-marker.70960f.png +0 -0
- package/dist/assets/style/icon-pin-blue.7be369.png +0 -0
- package/dist/assets/style/icon-pin-green.cbb935.png +0 -0
- package/dist/assets/style/icon-pin-red.3f25b2.png +0 -0
- package/dist/assets/style/icon-pin.b7ce77.png +0 -0
- package/dist/assets/ui.e84ce9.css +5 -0
- package/dist/assets/ui.e84ce9.js +16488 -0
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.1c8696.js +4911 -0
- package/dist/assets/vue.js +5 -1
- package/dist/assets/vuetify.008fac.css +5 -0
- package/dist/assets/vuetify.008fac.js +21262 -0
- package/dist/assets/vuetify.js +5 -2
- package/dist/index.html +90 -8
- package/index.html +111 -0
- package/index.js +203 -18
- package/lib/cesium.js +1 -1
- package/lib/core.js +1 -1
- package/lib/olLib.js +861 -843
- package/lib/ui.js +1 -1
- package/lib/vue.js +2 -1
- package/lib/vuetify.js +2 -2
- package/package.json +53 -34
- package/plugins/.eslintrc +9 -0
- package/plugins/@vcmap-show-case/README.md +28 -0
- package/plugins/@vcmap-show-case/buttons-example/README.md +4 -0
- package/plugins/@vcmap-show-case/buttons-example/package.json +5 -0
- package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +282 -0
- package/plugins/@vcmap-show-case/buttons-example/src/index.js +51 -0
- package/plugins/@vcmap-show-case/category-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/category-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +135 -0
- package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +209 -0
- package/plugins/@vcmap-show-case/category-tester/src/index.js +73 -0
- package/plugins/@vcmap-show-case/collection-manager-example/README.md +3 -0
- package/plugins/@vcmap-show-case/collection-manager-example/package.json +5 -0
- package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +182 -0
- package/plugins/@vcmap-show-case/collection-manager-example/src/index.js +79 -0
- package/plugins/@vcmap-show-case/config-editor/README.md +3 -0
- package/plugins/@vcmap-show-case/config-editor/package.json +5 -0
- package/plugins/@vcmap-show-case/config-editor/src/ConfigEditor.vue +62 -0
- package/plugins/@vcmap-show-case/config-editor/src/index.js +49 -0
- package/plugins/@vcmap-show-case/context-menu-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/context-menu-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/context-menu-tester/src/index.js +41 -0
- package/plugins/@vcmap-show-case/form-inputs-example/README.md +4 -0
- package/plugins/@vcmap-show-case/form-inputs-example/config.json +5 -0
- package/plugins/@vcmap-show-case/form-inputs-example/package.json +5 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +516 -0
- package/plugins/@vcmap-show-case/form-inputs-example/src/exampleActions.js +36 -0
- package/plugins/{@vcmap/pluginExample → @vcmap-show-case/form-inputs-example/src}/index.js +123 -39
- package/plugins/{@vcmap/pluginExample → @vcmap-show-case/form-inputs-example/src}/validation.js +14 -2
- package/plugins/@vcmap-show-case/hello-world/README.md +31 -0
- package/plugins/@vcmap-show-case/hello-world/package.json +6 -0
- package/plugins/@vcmap-show-case/hello-world/plugin-assets/vcs_logo.png +0 -0
- package/plugins/@vcmap-show-case/hello-world/src/defaultOptions.js +4 -0
- package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +69 -0
- package/plugins/@vcmap-show-case/hello-world/src/index.js +142 -0
- package/plugins/@vcmap-show-case/hello-world/tests/helloWorld.spec.js +53 -0
- package/plugins/@vcmap-show-case/icons-example/README.md +5 -0
- package/plugins/@vcmap-show-case/icons-example/package.json +5 -0
- package/plugins/@vcmap-show-case/icons-example/src/AllIconsComponent.vue +51 -0
- package/plugins/@vcmap-show-case/icons-example/src/index.js +46 -0
- package/plugins/@vcmap-show-case/list-example/README.md +3 -0
- package/plugins/@vcmap-show-case/list-example/package.json +5 -0
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +411 -0
- package/plugins/@vcmap-show-case/list-example/src/index.js +46 -0
- package/plugins/@vcmap-show-case/notifier-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/notifier-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/notifier-tester/src/NotifierTester.vue +82 -0
- package/plugins/@vcmap-show-case/notifier-tester/src/index.js +42 -0
- package/plugins/@vcmap-show-case/plugin-editors/README.md +4 -0
- package/plugins/@vcmap-show-case/plugin-editors/package.json +5 -0
- package/plugins/@vcmap-show-case/plugin-editors/src/PluginEditors.vue +119 -0
- package/plugins/@vcmap-show-case/plugin-editors/src/index.js +41 -0
- package/plugins/@vcmap-show-case/project-selector/README.md +25 -0
- package/plugins/@vcmap-show-case/project-selector/config.json +15 -0
- package/plugins/@vcmap-show-case/project-selector/package.json +13 -0
- package/plugins/@vcmap-show-case/project-selector/src/ModulesListComponent.vue +65 -0
- package/plugins/@vcmap-show-case/project-selector/src/ProjectSelectorComponent.vue +102 -0
- package/plugins/@vcmap-show-case/project-selector/src/de.json +10 -0
- package/plugins/@vcmap-show-case/project-selector/src/en.json +10 -0
- package/plugins/@vcmap-show-case/project-selector/src/index.js +269 -0
- package/plugins/@vcmap-show-case/simple-graph/README.md +71 -0
- package/plugins/@vcmap-show-case/simple-graph/package.json +11 -0
- package/plugins/@vcmap-show-case/simple-graph/src/SimpleGraphComponent.vue +59 -0
- package/plugins/@vcmap-show-case/simple-graph/src/index.js +17 -0
- package/plugins/@vcmap-show-case/simple-graph/src/simpleGraphView.js +78 -0
- package/plugins/@vcmap-show-case/style-input-example/README.md +4 -0
- package/plugins/@vcmap-show-case/style-input-example/package.json +5 -0
- package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +190 -0
- package/plugins/@vcmap-show-case/style-input-example/src/index.js +42 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/README.md +21 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/config.json +3 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/package.json +5 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/src/index.js +34 -0
- package/plugins/@vcmap-show-case/switch-map-callback-example/src/switchMapCallback.js +47 -0
- package/plugins/@vcmap-show-case/table-example/README.md +3 -0
- package/plugins/@vcmap-show-case/table-example/package.json +5 -0
- package/plugins/@vcmap-show-case/table-example/src/DataTableExample.vue +182 -0
- package/plugins/@vcmap-show-case/table-example/src/index.js +49 -0
- package/plugins/@vcmap-show-case/textfields-example/README.md +3 -0
- package/plugins/@vcmap-show-case/textfields-example/package.json +5 -0
- package/plugins/{example/mySuperComponent.vue → @vcmap-show-case/textfields-example/src/TextfieldsExample.vue} +13 -31
- package/plugins/@vcmap-show-case/textfields-example/src/index.js +64 -0
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/README.md +5 -3
- package/plugins/@vcmap-show-case/theme-changer/config.json +69 -0
- package/plugins/@vcmap-show-case/theme-changer/package.json +11 -0
- package/plugins/{@vcmap/theme-changer → @vcmap-show-case/theme-changer/src}/ThemeChangerComponent.vue +36 -8
- package/plugins/{@vcmap/theme-changer → @vcmap-show-case/theme-changer/src}/index.js +20 -14
- package/plugins/@vcmap-show-case/vector-properties-example/package.json +5 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +128 -0
- package/plugins/@vcmap-show-case/vector-properties-example/src/index.js +40 -0
- package/plugins/@vcmap-show-case/window-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/window-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/window-tester/src/EmptyComponent.vue +18 -0
- package/plugins/@vcmap-show-case/window-tester/src/MyCustomHeader.vue +31 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +185 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleContent.vue +18 -0
- package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +45 -0
- package/plugins/@vcmap-show-case/window-tester/src/index.js +80 -0
- package/plugins/@vcmap-show-case/window-tester/src/toolboxData.js +288 -0
- package/plugins/@vcmap-show-case/wizard-example/README.md +3 -0
- package/plugins/@vcmap-show-case/wizard-example/package.json +5 -0
- package/plugins/@vcmap-show-case/wizard-example/src/WizardExample.vue +127 -0
- package/plugins/@vcmap-show-case/wizard-example/src/index.js +53 -0
- package/plugins/package.json +9 -2
- package/public/assets/@mdi/font/LICENSE +20 -0
- package/public/assets/@mdi/font/css/materialdesignicons.css.map +16 -0
- package/public/assets/@mdi/font/css/materialdesignicons.min.css +3 -0
- package/public/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/public/assets/favicon-128.png +0 -0
- package/public/assets/favicon-180.png +0 -0
- package/public/assets/favicon-192.png +0 -0
- package/public/assets/favicon-32.png +0 -0
- package/public/assets/favicon.svg +10 -0
- package/public/assets/font/OFL.txt +93 -0
- package/public/assets/font/TitilliumWeb-Regular.woff2 +0 -0
- package/public/assets/style/icon-marker-blue.png +0 -0
- package/public/assets/style/icon-marker-green.png +0 -0
- package/public/assets/style/icon-marker-o-blue.png +0 -0
- package/public/assets/style/icon-marker-o-green.png +0 -0
- package/public/assets/style/icon-marker-o-red.png +0 -0
- package/public/assets/style/icon-marker-o.png +0 -0
- package/public/assets/style/icon-marker-red.png +0 -0
- package/public/assets/style/icon-marker.png +0 -0
- package/public/assets/style/icon-pin-blue.png +0 -0
- package/public/assets/style/icon-pin-green.png +0 -0
- package/public/assets/style/icon-pin-red.png +0 -0
- package/public/assets/style/icon-pin.png +0 -0
- package/src/actions/StyleSelector.vue +121 -0
- package/src/actions/actionHelper.js +186 -50
- package/src/actions/stateRefAction.js +2 -3
- package/src/application/VcsApp.vue +539 -93
- package/src/application/VcsAppWrapper.vue +32 -0
- package/src/application/VcsAttributions.vue +83 -0
- package/src/application/VcsAttributionsFooter.vue +83 -0
- package/src/application/VcsMap.vue +22 -5
- package/src/application/VcsNavbar.vue +217 -0
- package/src/application/VcsSettings.vue +98 -0
- package/src/application/attributionsHelper.js +162 -0
- package/src/callback/activateLayersCallback.js +54 -0
- package/src/callback/applyLayerStyleCallback.js +63 -0
- package/src/callback/deactivateLayersCallback.js +54 -0
- package/src/callback/goToViewpointCallback.js +54 -0
- package/src/callback/vcsCallback.js +66 -0
- package/src/components/ImageElementInjector.vue +24 -0
- package/src/components/buttons/VcsActionButtonList.vue +129 -0
- package/src/components/buttons/VcsButton.vue +151 -0
- package/src/components/buttons/VcsFormButton.vue +178 -0
- package/src/components/buttons/VcsToolButton.vue +161 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +115 -0
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +290 -0
- package/src/components/form-inputs-controls/VcsDatePicker.vue +156 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +150 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +56 -0
- package/src/components/form-inputs-controls/VcsRadio.vue +149 -0
- package/src/components/form-inputs-controls/VcsRadioGrid.vue +175 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +211 -0
- package/src/components/form-inputs-controls/VcsSlider.vue +73 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue +180 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +298 -0
- package/src/components/form-inputs-controls/VcsWizard.vue +137 -0
- package/src/components/form-inputs-controls/VcsWizardStep.vue +161 -0
- package/src/components/form-inputs-controls/composables.js +31 -0
- package/src/components/form-output/VcsFormattedNumber.vue +103 -0
- package/src/components/icons/+all.js +463 -0
- package/src/components/icons/2DAreaIcon.vue +58 -0
- package/src/components/icons/2DDistanceIcon.vue +24 -0
- package/src/components/icons/3DAreaIcon.vue +58 -0
- package/src/components/icons/3DDistanceIcon.vue +24 -0
- package/src/components/icons/3DHeightIcon.vue +24 -0
- package/src/components/icons/AngleIcon.vue +16 -0
- package/src/components/icons/AssociationsIcon.vue +37 -0
- package/src/components/icons/AxisIcon.vue +35 -0
- package/src/components/icons/BoundingBoxIcon.vue +38 -0
- package/src/components/icons/CheckboxCheckedIcon.vue +12 -0
- package/src/components/icons/CheckboxIcon.vue +21 -0
- package/src/components/icons/CheckboxIndeterminateIcon.vue +10 -0
- package/src/components/icons/CircleIcon.vue +25 -0
- package/src/components/icons/ClippingHorizontalIcon.vue +18 -0
- package/src/components/icons/ClippingIcon.vue +17 -0
- package/src/components/icons/ClippingVerticalIcon.vue +18 -0
- package/src/components/icons/ColorPickerIcon.vue +17 -0
- package/src/components/icons/ColorSwatchIcon.vue +21 -0
- package/src/components/icons/CommentIcon.vue +19 -0
- package/src/components/icons/CompassIcon.vue +24 -0
- package/src/components/icons/ComponentsIcon.vue +18 -0
- package/src/components/icons/ConeIcon.vue +30 -0
- package/src/components/icons/DimensionsHouseIcon.vue +20 -0
- package/src/components/icons/EditIcon.vue +17 -0
- package/src/components/icons/EditVerticesIcon.vue +35 -0
- package/src/components/icons/ElevationProfileIcon.vue +104 -0
- package/src/components/icons/ExportAreaIcon.vue +17 -0
- package/src/components/icons/ExportFlightIcon.vue +17 -0
- package/src/components/icons/ExportIcon.vue +24 -0
- package/src/components/icons/ExternalLinkIcon.vue +23 -0
- package/src/components/icons/EyeIcon.vue +17 -0
- package/src/components/icons/FastForwardIcon.vue +17 -0
- package/src/components/icons/FilterIcon.vue +18 -0
- package/src/components/icons/GlobalTerrainIcon.vue +19 -0
- package/src/components/icons/GlobeNatureIcon.vue +17 -0
- package/src/components/icons/GroundIcon.vue +27 -0
- package/src/components/icons/HealthCareIndustriesIcon.vue +113 -0
- package/src/components/icons/HelpIcon.vue +17 -0
- package/src/components/icons/HideIcon.vue +25 -0
- package/src/components/icons/HomePointIcon.vue +17 -0
- package/src/components/icons/HospitalsIcon.vue +223 -0
- package/src/components/icons/HouseIcon.vue +32 -0
- package/src/components/icons/ImportIcon.vue +18 -0
- package/src/components/icons/InfoIcon.vue +24 -0
- package/src/components/icons/KebabIcon.vue +38 -0
- package/src/components/icons/LabelIcon.vue +23 -0
- package/src/components/icons/LayersIcon.vue +28 -0
- package/src/components/icons/LegendIcon.vue +24 -0
- package/src/components/icons/LineIcon.vue +22 -0
- package/src/components/icons/LinkIcon.vue +17 -0
- package/src/components/icons/LogoutIcon.vue +17 -0
- package/src/components/icons/MapIcon.vue +18 -0
- package/src/components/icons/MenuIcon.vue +36 -0
- package/src/components/icons/MinusIcon.vue +18 -0
- package/src/components/icons/ObjectAttributeIcon.vue +18 -0
- package/src/components/icons/ObjectSelectIcon.vue +18 -0
- package/src/components/icons/ObliqueViewIcon.vue +19 -0
- package/src/components/icons/PdfIcon.vue +19 -0
- package/src/components/icons/PedestrianIcon.vue +17 -0
- package/src/components/icons/PenIcon.vue +16 -0
- package/src/components/icons/PlayCircleIcon.vue +20 -0
- package/src/components/icons/PlusIcon.vue +18 -0
- package/src/components/icons/PoiIcon.vue +23 -0
- package/src/components/icons/PointIcon.vue +40 -0
- package/src/components/icons/PointSelectIcon.vue +18 -0
- package/src/components/icons/PresentationModeIcon.vue +17 -0
- package/src/components/icons/ProgressIcon.vue +26 -0
- package/src/components/icons/QueryIcon.vue +39 -0
- package/src/components/icons/RectangleIcon.vue +24 -0
- package/src/components/icons/ReturnIcon.vue +17 -0
- package/src/components/icons/RewindIcon.vue +16 -0
- package/src/components/icons/RotateLeftIcon.vue +17 -0
- package/src/components/icons/RotateRightIcon.vue +17 -0
- package/src/components/icons/ScreenshotIcon.vue +53 -0
- package/src/components/icons/SearchIcon.vue +17 -0
- package/src/components/icons/ShadowIcon.vue +18 -0
- package/src/components/icons/ShapesIcon.vue +35 -0
- package/src/components/icons/ShareIcon.vue +22 -0
- package/src/components/icons/SimpleCircleFilledIcon.vue +18 -0
- package/src/components/icons/SimpleCircleHalfFilledIcon.vue +16 -0
- package/src/components/icons/SimpleCircleOutlinedIcon.vue +13 -0
- package/src/components/icons/SkipNextIcon.vue +18 -0
- package/src/components/icons/SkipPreviousIcon.vue +18 -0
- package/src/components/icons/SplitViewIcon.vue +19 -0
- package/src/components/icons/TerrainBoxIcon.vue +19 -0
- package/src/components/icons/TextStyleIcon.vue +17 -0
- package/src/components/icons/ThreeDimensionsIcon.vue +17 -0
- package/src/components/icons/ToolsIcon.vue +16 -0
- package/src/components/icons/TouchIcon.vue +18 -0
- package/src/components/icons/TrashCanIcon.vue +18 -0
- package/src/components/icons/TriangleIcon.vue +16 -0
- package/src/components/icons/TwoDimensionsIcon.vue +18 -0
- package/src/components/icons/UploadIcon.vue +17 -0
- package/src/components/icons/UserProfileIcon.vue +17 -0
- package/src/components/icons/UserShareIcon.vue +16 -0
- package/src/components/icons/VideoRecorderIcon.vue +23 -0
- package/src/components/icons/ViewpointFlightIcon.vue +28 -0
- package/src/components/icons/ViewpointIcon.vue +28 -0
- package/src/components/icons/Viewshed360Icon.vue +18 -0
- package/src/components/icons/ViewshedConeIcon.vue +17 -0
- package/src/components/icons/ViewshedIcon.vue +18 -0
- package/src/components/icons/WalkingIcon.vue +17 -0
- package/src/components/icons/WallIcon.vue +22 -0
- package/src/components/icons/WandIcon.vue +123 -0
- package/src/components/lists/VcsActionList.vue +132 -0
- package/src/components/lists/VcsList.vue +590 -0
- package/src/components/lists/VcsTreeview.vue +112 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +81 -0
- package/src/components/lists/VcsTreeviewSearchbar.vue +148 -0
- package/src/components/notification/VcsBadge.vue +29 -0
- package/src/components/notification/VcsHelp.vue +39 -0
- package/src/components/notification/VcsTooltip.vue +160 -0
- package/src/components/notification/validation.js +19 -0
- package/src/components/plugins/AbstractConfigEditor.vue +84 -0
- package/src/components/style/MenuWrapper.vue +140 -0
- package/src/components/style/VcsFillMenu.vue +61 -0
- package/src/components/style/VcsFillSelector.vue +45 -0
- package/src/components/style/VcsImageMenu.vue +83 -0
- package/src/components/style/VcsImageSelector.vue +577 -0
- package/src/components/style/VcsStrokeMenu.vue +73 -0
- package/src/components/style/VcsStrokeSelector.vue +88 -0
- package/src/components/style/VcsTextMenu.vue +81 -0
- package/src/components/style/VcsTextSelector.vue +269 -0
- package/src/components/style/VcsVectorStyleComponent.vue +114 -0
- package/src/components/style/composables.js +84 -0
- package/src/components/tables/VcsDataTable.vue +475 -0
- package/src/components/tables/VcsTable.vue +145 -0
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +778 -0
- package/src/components/vector-properties/composables.js +93 -0
- package/src/contentTree/LayerTree.vue +19 -15
- package/src/contentTree/contentTreeCollection.js +114 -42
- package/src/contentTree/contentTreeItem.js +109 -43
- package/src/contentTree/groupContentTreeItem.js +46 -23
- package/src/contentTree/layerContentTreeItem.js +54 -23
- package/src/contentTree/layerGroupContentTreeItem.js +58 -26
- package/src/contentTree/nodeContentTreeItem.js +19 -8
- package/src/contentTree/obliqueCollectionContentTreeItem.js +51 -22
- package/src/contentTree/subContentTreeItem.js +14 -5
- package/src/contentTree/vcsObjectContentTreeItem.js +27 -16
- package/src/contentTree/viewpointContentTreeItem.js +121 -0
- package/src/downloadHelper.js +52 -0
- package/src/featureInfo/AddressBalloonComponent.vue +58 -0
- package/src/featureInfo/BalloonComponent.vue +193 -0
- package/src/featureInfo/abstractFeatureInfoView.js +346 -0
- package/src/featureInfo/addressBalloonFeatureInfoView.js +130 -0
- package/src/featureInfo/balloonFeatureInfoView.js +159 -0
- package/src/featureInfo/balloonHelper.js +172 -0
- package/src/featureInfo/featureInfo.js +525 -0
- package/src/featureInfo/featureInfoInteraction.js +48 -0
- package/src/featureInfo/iframeFeatureInfoView.js +97 -0
- package/src/featureInfo/tableFeatureInfoView.js +120 -0
- package/src/i18n/de.js +195 -0
- package/src/i18n/en.js +195 -0
- package/src/i18n/i18nCollection.js +137 -0
- package/src/init.js +121 -36
- package/src/legend/StyleLegendItem.vue +176 -0
- package/src/legend/VcsLegend.vue +140 -0
- package/src/legend/legendHelper.js +204 -0
- package/src/logo-mobile.svg +9 -0
- package/src/logo.svg +26 -0
- package/src/manager/buttonManager.js +30 -61
- package/src/manager/collectionManager/CollectionComponent.vue +140 -0
- package/src/manager/collectionManager/CollectionComponentList.vue +77 -0
- package/src/manager/collectionManager/CollectionComponentProvider.vue +39 -0
- package/src/manager/collectionManager/CollectionManager.vue +62 -0
- package/src/manager/collectionManager/categoryManager.js +83 -0
- package/src/manager/collectionManager/collectionComponent.js +470 -0
- package/src/manager/collectionManager/collectionManager.js +432 -0
- package/src/manager/contextMenu/ContextMenuComponent.vue +43 -0
- package/src/manager/contextMenu/contextMenuInteraction.js +47 -0
- package/src/manager/contextMenu/contextMenuManager.js +220 -0
- package/src/manager/navbarManager.js +115 -0
- package/src/manager/toolbox/GroupToolboxComponent.vue +128 -0
- package/src/manager/toolbox/SelectToolboxComponent.vue +144 -0
- package/src/manager/toolbox/ToolboxManager.vue +139 -74
- package/src/manager/toolbox/toolboxManager.js +371 -0
- package/src/manager/window/WindowComponent.vue +105 -85
- package/src/manager/window/WindowComponentHeader.vue +116 -25
- package/src/manager/window/WindowManager.vue +133 -50
- package/src/manager/window/windowHelper.js +465 -0
- package/src/manager/window/windowManager.js +297 -91
- package/src/navigation/{mapNavCompass.vue → MapNavCompass.vue} +31 -11
- package/src/navigation/MapNavigation.vue +291 -0
- package/src/navigation/ObliqueRotation.vue +69 -0
- package/src/navigation/{orientationToolsButton.vue → OrientationToolsButton.vue} +14 -13
- package/src/navigation/{tiltSlider.vue → TiltSlider.vue} +40 -17
- package/src/navigation/VcsCompass.vue +69 -0
- package/src/navigation/VcsZoomButton.vue +52 -0
- package/src/navigation/overviewMap.js +142 -104
- package/src/navigation/overviewMapClickedInteraction.js +6 -1
- package/src/notifier/NotifierComponent.vue +86 -0
- package/src/notifier/notifier.js +129 -0
- package/src/pluginHelper.js +148 -20
- package/src/search/ResultItem.vue +83 -0
- package/src/search/ResultsComponent.vue +103 -0
- package/src/search/SearchComponent.vue +116 -0
- package/src/search/search.js +342 -0
- package/src/setup.js +9 -10
- package/src/state.js +272 -0
- package/src/styles/_theming.scss +69 -11
- package/src/styles/_typography.scss +3 -6
- package/src/styles/main.scss +12 -0
- package/src/styles/shades.scss +4 -0
- package/src/styles/utils/_border.scss +1 -1
- package/src/styles/utils/_cursor.scss +4 -0
- package/src/styles/utils/_display.scss +1 -1
- package/src/styles/variables.scss +138 -0
- package/src/styles/vcsFont.scss +2 -0
- package/src/styles/vcsGrid.scss +13 -0
- package/src/uiConfig.js +83 -0
- package/src/vcsUiApp.js +510 -69
- package/src/vuePlugins/i18n.js +51 -13
- package/src/vuePlugins/vuetify.js +104 -43
- package/config/berlin.config.json +0 -529
- package/dist/assets/cesium/Workers/ArcType-fc72c06c.js +0 -1
- package/dist/assets/cesium/Workers/AttributeCompression-80665726.js +0 -1
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-a655a4bc.js +0 -1
- package/dist/assets/cesium/Workers/BoundingRectangle-c3b79029.js +0 -1
- package/dist/assets/cesium/Workers/BoxGeometry-f8f9c981.js +0 -1
- package/dist/assets/cesium/Workers/Color-de06a177.js +0 -1
- package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +0 -1
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-48cdc26d.js +0 -1
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-ddc027d3.js +0 -1
- package/dist/assets/cesium/Workers/CylinderGeometry-82a8cbe6.js +0 -1
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +0 -1
- package/dist/assets/cesium/Workers/EllipseGeometry-32d55454.js +0 -1
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-b2ae188a.js +0 -1
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-f05a5a27.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-19e75e11.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidGeometry-7c99fc81.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-21c243df.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-6145377b.js +0 -1
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-a01286f6.js +0 -1
- package/dist/assets/cesium/Workers/EncodedCartesian3-d9f5c4a4.js +0 -1
- package/dist/assets/cesium/Workers/FrustumGeometry-17776af8.js +0 -1
- package/dist/assets/cesium/Workers/GeometryAttribute-89a520b9.js +0 -1
- package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +0 -1
- package/dist/assets/cesium/Workers/GeometryInstance-4fbf16ba.js +0 -1
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +0 -1
- package/dist/assets/cesium/Workers/GeometryPipeline-309fad76.js +0 -1
- package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +0 -1
- package/dist/assets/cesium/Workers/IntersectionTests-58aa8f80.js +0 -1
- package/dist/assets/cesium/Workers/Matrix2-47e98d76.js +0 -1
- package/dist/assets/cesium/Workers/OrientedBoundingBox-fcb5b750.js +0 -1
- package/dist/assets/cesium/Workers/Plane-3f01019d.js +0 -1
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-0b29eb16.js +0 -1
- package/dist/assets/cesium/Workers/PolygonPipeline-a934c4dd.js +0 -1
- package/dist/assets/cesium/Workers/PolylinePipeline-8095c9bc.js +0 -1
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-67d12fff.js +0 -1
- package/dist/assets/cesium/Workers/PrimitivePipeline-980e44c5.js +0 -1
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-621c6de8.js +0 -1
- package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +0 -1
- package/dist/assets/cesium/Workers/TerrainEncoding-f96552d5.js +0 -1
- package/dist/assets/cesium/Workers/Transforms-c8cb8f43.js +0 -39
- package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +0 -1
- package/dist/assets/cesium/Workers/WallGeometryLibrary-c03d8479.js +0 -1
- package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +0 -1
- package/dist/assets/cesium/Workers/WebMercatorProjection-79b3214e.js +0 -1
- package/dist/assets/cesium/Workers/_commonjsHelpers-3aae1032-26891ab7.js +0 -1
- package/dist/assets/cesium/Workers/_rollup_plugin_ignore_empty_module_placeholder-57d574d0.js +0 -1
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-dc2f4046.js +0 -1
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +0 -6
- package/dist/assets/cesium/Workers/combine-3c023bda.js +0 -1
- package/dist/assets/cesium/Workers/defaultValue-81eec7ed.js +0 -1
- package/dist/assets/cesium.6b5bb6.js +0 -9105
- package/dist/assets/core.98f9bb.js +0 -4
- package/dist/assets/index.0be2842f.js +0 -1
- package/dist/assets/index.60dea538.css +0 -1
- package/dist/assets/ol.0561aa.js +0 -318
- package/dist/assets/ui.b7c1e3.css +0 -1
- package/dist/assets/ui.b7c1e3.js +0 -39
- package/dist/assets/uicomponents.682c5f.css +0 -1
- package/dist/assets/uicomponents.682c5f.js +0 -32
- package/dist/assets/uicomponents.js +0 -1
- package/dist/assets/vue-composition-api.f926fa.js +0 -14
- package/dist/assets/vue-composition-api.js +0 -2
- package/dist/assets/vue.ddcb6b.js +0 -9
- package/dist/assets/vuetify.d21163.css +0 -5
- package/dist/assets/vuetify.d21163.js +0 -48
- package/lib/uicomponents.js +0 -1
- package/lib/vue-composition-api.js +0 -2
- package/map.config.json +0 -35
- package/plugins/@vcmap/pluginExample/config.json +0 -6
- package/plugins/@vcmap/pluginExample/package.json +0 -7
- package/plugins/@vcmap/pluginExample/pluginExampleComponent.vue +0 -374
- package/plugins/@vcmap/project-selector/ContextsListComponent.vue +0 -62
- package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +0 -81
- package/plugins/@vcmap/project-selector/README.md +0 -29
- package/plugins/@vcmap/project-selector/config.json +0 -15
- package/plugins/@vcmap/project-selector/index.js +0 -254
- package/plugins/@vcmap/project-selector/package.json +0 -15
- package/plugins/@vcmap/theme-changer/config.json +0 -69
- package/plugins/@vcmap/theme-changer/package.json +0 -12
- package/plugins/buttonExamples/ButtonExamples.vue +0 -190
- package/plugins/buttonExamples/index.js +0 -40
- package/plugins/categoryTest/Categories.vue +0 -145
- package/plugins/categoryTest/Category.vue +0 -114
- package/plugins/categoryTest/ItemEditor.vue +0 -13
- package/plugins/categoryTest/index.js +0 -41
- package/plugins/example/index.js +0 -56
- package/plugins/test/editor.vue +0 -63
- package/plugins/test/index.js +0 -93
- package/plugins/test/myCustomHeader.vue +0 -19
- package/plugins/test/toolbox-data.js +0 -49
- package/plugins/test/vcsContent.vue +0 -23
- package/plugins/test/windowManagerExample.vue +0 -144
- package/src/actions/styleSelector.vue +0 -90
- package/src/application/Navbar.vue +0 -118
- package/src/application/empty-cmp.vue +0 -6
- package/src/assets/logo.svg +0 -26
- package/src/contentTree/viewPointContentTreeItem.js +0 -107
- package/src/lang/de.js +0 -60
- package/src/lang/en.js +0 -53
- package/src/manager/toolbox/ToolboxMultiSelectButton.vue +0 -96
- package/src/manager/toolbox/ToolboxSingleSelectButton.vue +0 -98
- package/src/manager/toolbox/toolbox-manager.js +0 -203
- package/src/navigation/mapNavigation.vue +0 -201
- package/src/navigation/obliqueRotation.vue +0 -48
- package/src/navigation/vcsCompass.vue +0 -144
- package/src/navigation/vcsZoomButton.vue +0 -27
- package/start.js +0 -3
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="SvgjsSvg1004" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
|
|
3
|
+
<rect width="128" height="128" style="fill: none;"/>
|
|
4
|
+
<g>
|
|
5
|
+
<path id="SvgjsPath1003" d="m120.44,41.1l-22.64,22.9-30.07-30.44c-.98-1-2.33-1.56-3.73-1.56h52.71c1.4,0,2.73.56,3.73,1.56,2.04,2.05,2.06,5.4.05,7.48,0,0-.05.06-.05.06Z" style="fill: #86b110; isolation: isolate; opacity: .9;"/>
|
|
6
|
+
<path id="SvgjsPath1002" d="m97.8,64l-30.09,30.44c-2.06,2.08-5.39,2.08-7.45,0-.98-1-1.55-2.36-1.55-3.78v-53.32c0-1.41.56-2.77,1.55-3.78,2.06-2.08,5.39-2.08,7.45,0l30.09,30.44Z" style="fill: #005434; isolation: isolate; opacity: .9;"/>
|
|
7
|
+
<path id="SvgjsPath1001" d="m58.71,37.34v53.32c0,1.41.56,2.77,1.55,3.78L7.54,41.1c-2.04-2.05-2.06-5.4-.05-7.48l.05-.06c1-1,2.33-1.56,3.73-1.56h52.71c-1.4,0-2.73.56-3.73,1.56-.98.99-1.55,2.34-1.55,3.78Z" style="fill: #409d76; isolation: isolate; opacity: .9;"/>
|
|
8
|
+
<path id="SvgjsPath1000" d="m120.44,94.44c-.98,1-2.33,1.56-3.73,1.56h-52.71c1.4,0,2.73-.56,3.73-1.56l30.09-30.44,22.64,22.9c2.04,2.05,2.06,5.4.05,7.48l-.05.06h-.02Z" style="fill: #00a0ba; isolation: isolate; opacity: .9;"/>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright (c) 2009-2011 by Accademia di Belle Arti di Urbino and students of MA course of Visual design. Some rights reserved.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-sheet v-if="items" class="pt-1 pb-0 px-0">
|
|
3
|
+
<v-list>
|
|
4
|
+
<v-list-item
|
|
5
|
+
v-for="(item, index) in items"
|
|
6
|
+
:key="index"
|
|
7
|
+
@click.stop="select(item.value)"
|
|
8
|
+
>
|
|
9
|
+
<v-list-item-title
|
|
10
|
+
:class="{ 'primary--text': item.value === currentStyleName }"
|
|
11
|
+
>
|
|
12
|
+
{{ item.text }}
|
|
13
|
+
</v-list-item-title>
|
|
14
|
+
</v-list-item>
|
|
15
|
+
</v-list>
|
|
16
|
+
<v-list v-if="currentStyleLegend.length > 0">
|
|
17
|
+
<v-list-item
|
|
18
|
+
v-for="(entry, index) in currentStyleLegend"
|
|
19
|
+
:key="`style-legend-${index}`"
|
|
20
|
+
dense
|
|
21
|
+
>
|
|
22
|
+
<v-list-item-icon>
|
|
23
|
+
<v-chip :color="entry.color" />
|
|
24
|
+
</v-list-item-icon>
|
|
25
|
+
<v-list-item-content>
|
|
26
|
+
{{ entry.title }}
|
|
27
|
+
</v-list-item-content>
|
|
28
|
+
</v-list-item>
|
|
29
|
+
</v-list>
|
|
30
|
+
</v-sheet>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import { computed, inject, onUnmounted, ref } from 'vue';
|
|
35
|
+
import {
|
|
36
|
+
VChip,
|
|
37
|
+
VList,
|
|
38
|
+
VListItem,
|
|
39
|
+
VListItemContent,
|
|
40
|
+
VListItemIcon,
|
|
41
|
+
VListItemTitle,
|
|
42
|
+
VSheet,
|
|
43
|
+
} from 'vuetify/lib';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @description Modal listing available styles.
|
|
47
|
+
* On selection style is set to provided layer.
|
|
48
|
+
* @vue-prop {Array<string>} availableStyles - Name of available styles
|
|
49
|
+
* @vue-prop {string} layerName - Name of a layer, the style shall be applied to on selection
|
|
50
|
+
*/
|
|
51
|
+
export default {
|
|
52
|
+
name: 'StyleSelector',
|
|
53
|
+
components: {
|
|
54
|
+
VSheet,
|
|
55
|
+
VList,
|
|
56
|
+
VListItem,
|
|
57
|
+
VListItemIcon,
|
|
58
|
+
VListItemTitle,
|
|
59
|
+
VChip,
|
|
60
|
+
VListItemContent,
|
|
61
|
+
},
|
|
62
|
+
props: {
|
|
63
|
+
availableStyles: {
|
|
64
|
+
type: Array,
|
|
65
|
+
default: () => [],
|
|
66
|
+
},
|
|
67
|
+
layerName: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
setup(props, { attrs }) {
|
|
73
|
+
/** @type {VcsUiApp} */
|
|
74
|
+
const app = inject('vcsApp');
|
|
75
|
+
/** @type {import("@vcmap/core").FeatureLayer} */
|
|
76
|
+
const layer = app.layers.getByKey(props.layerName);
|
|
77
|
+
const currentStyleName = ref(layer.style.name);
|
|
78
|
+
const currentStyleLegend = ref([]);
|
|
79
|
+
const defaultStyle = layer.defaultStyle.name;
|
|
80
|
+
|
|
81
|
+
function setStyle(styleItem) {
|
|
82
|
+
currentStyleName.value = layer.style.name;
|
|
83
|
+
if (styleItem.legend) {
|
|
84
|
+
currentStyleLegend.value = styleItem.legend;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
setStyle(layer.style);
|
|
88
|
+
// TODO error handling if layer is missing or not a feature layer
|
|
89
|
+
const styleChangedListener =
|
|
90
|
+
layer.styleChanged.addEventListener(setStyle);
|
|
91
|
+
onUnmounted(() => {
|
|
92
|
+
styleChangedListener();
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const items = computed(() => {
|
|
96
|
+
return [
|
|
97
|
+
{ text: 'Default', value: defaultStyle },
|
|
98
|
+
...props.availableStyles.map((s) => ({ text: s, value: s })),
|
|
99
|
+
];
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
function select(styleName) {
|
|
103
|
+
const style =
|
|
104
|
+
styleName === defaultStyle
|
|
105
|
+
? layer.defaultStyle
|
|
106
|
+
: app.styles.getByKey(styleName);
|
|
107
|
+
layer.setStyle(style);
|
|
108
|
+
app.windowManager.remove(attrs['window-state'].id);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
currentStyleName,
|
|
113
|
+
currentStyleLegend,
|
|
114
|
+
items,
|
|
115
|
+
select,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<style scoped></style>
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { v4 as uuid } from 'uuid';
|
|
2
2
|
import { check } from '@vcsuite/check';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Collection,
|
|
5
|
+
Extent,
|
|
6
|
+
MapCollection,
|
|
7
|
+
mercatorProjection,
|
|
8
|
+
Viewpoint,
|
|
9
|
+
} from '@vcmap/core';
|
|
10
|
+
import { Feature } from 'ol';
|
|
11
|
+
import { reactive, ref } from 'vue';
|
|
4
12
|
import { vcsAppSymbol } from '../pluginHelper.js';
|
|
5
|
-
import {
|
|
13
|
+
import { WindowSlot } from '../manager/window/windowManager.js';
|
|
14
|
+
import { getWindowPositionOptions } from '../manager/window/windowHelper.js';
|
|
15
|
+
import SearchComponent from '../search/SearchComponent.vue';
|
|
6
16
|
|
|
7
17
|
/**
|
|
8
18
|
* @typedef {Object} ActionOptions
|
|
@@ -14,7 +24,7 @@ import { getWindowPositionOptions } from '../manager/window/windowManager.js';
|
|
|
14
24
|
/**
|
|
15
25
|
* @param {ActionOptions} actionOptions
|
|
16
26
|
* @param {string} mapName
|
|
17
|
-
* @param {OverrideMapCollection} maps
|
|
27
|
+
* @param {import("@vcmap/core").OverrideMapCollection} maps
|
|
18
28
|
* @returns {{action: VcsAction, destroy: Function}}
|
|
19
29
|
*/
|
|
20
30
|
export function createMapButtonAction(actionOptions, mapName, maps) {
|
|
@@ -26,9 +36,10 @@ export function createMapButtonAction(actionOptions, mapName, maps) {
|
|
|
26
36
|
check(mapName, String);
|
|
27
37
|
check(maps, MapCollection);
|
|
28
38
|
|
|
39
|
+
const active = maps.activeMap?.name === mapName;
|
|
29
40
|
const action = {
|
|
30
41
|
...actionOptions,
|
|
31
|
-
active
|
|
42
|
+
active,
|
|
32
43
|
callback() {
|
|
33
44
|
maps.setActiveMap(mapName);
|
|
34
45
|
},
|
|
@@ -48,11 +59,17 @@ export function createMapButtonAction(actionOptions, mapName, maps) {
|
|
|
48
59
|
* @param {string|symbol} owner
|
|
49
60
|
* @returns {{action: VcsAction, destroy: Function}}
|
|
50
61
|
*/
|
|
51
|
-
export function createToggleAction(
|
|
62
|
+
export function createToggleAction(
|
|
63
|
+
actionOptions,
|
|
64
|
+
windowComponent,
|
|
65
|
+
windowManager,
|
|
66
|
+
owner,
|
|
67
|
+
) {
|
|
52
68
|
check(actionOptions, {
|
|
53
69
|
name: String,
|
|
54
70
|
icon: [undefined, String],
|
|
55
71
|
title: [undefined, String],
|
|
72
|
+
hasUpdate: [undefined, Boolean],
|
|
56
73
|
});
|
|
57
74
|
check(windowComponent, { id: String });
|
|
58
75
|
check(owner, [String, vcsAppSymbol]);
|
|
@@ -83,10 +100,68 @@ export function createToggleAction(actionOptions, windowComponent, windowManager
|
|
|
83
100
|
}),
|
|
84
101
|
];
|
|
85
102
|
|
|
86
|
-
const destroy = () => {
|
|
103
|
+
const destroy = () => {
|
|
104
|
+
listeners.forEach((cb) => {
|
|
105
|
+
cb();
|
|
106
|
+
});
|
|
107
|
+
};
|
|
87
108
|
return { action, destroy };
|
|
88
109
|
}
|
|
89
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Creates a toggle button for the search tool, which is only available, if at least one search implementation is registered.
|
|
113
|
+
* @param {VcsUiApp} app
|
|
114
|
+
* @returns {{ searchAction: import("vue").Ref<import("vue").UnwrapRef<VcsAction>|null>, destroy: function():void }}
|
|
115
|
+
*/
|
|
116
|
+
export function createSearchButtonAction(app) {
|
|
117
|
+
let destroyAction = () => {};
|
|
118
|
+
const searchAction = ref(null);
|
|
119
|
+
const determineAction = () => {
|
|
120
|
+
if (app.windowManager.has('searchId')) {
|
|
121
|
+
app.windowManager.remove('searchId');
|
|
122
|
+
}
|
|
123
|
+
if (app.search.size > 0 && searchAction.value === null) {
|
|
124
|
+
const action = createToggleAction(
|
|
125
|
+
{
|
|
126
|
+
name: 'search.title',
|
|
127
|
+
icon: '$vcsSearch',
|
|
128
|
+
title: 'search.tooltip',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: 'searchId',
|
|
132
|
+
component: SearchComponent,
|
|
133
|
+
state: { hideHeader: true },
|
|
134
|
+
slot: WindowSlot.DYNAMIC_RIGHT,
|
|
135
|
+
position: {
|
|
136
|
+
width: 440,
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
app.windowManager,
|
|
140
|
+
vcsAppSymbol,
|
|
141
|
+
);
|
|
142
|
+
destroyAction = action.destroy;
|
|
143
|
+
searchAction.value = reactive(action.action);
|
|
144
|
+
} else if (searchAction.value !== null) {
|
|
145
|
+
destroyAction();
|
|
146
|
+
destroyAction = () => {};
|
|
147
|
+
searchAction.value = null;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
determineAction();
|
|
151
|
+
const listeners = [
|
|
152
|
+
app.search.added.addEventListener(determineAction),
|
|
153
|
+
app.search.removed.addEventListener(determineAction),
|
|
154
|
+
];
|
|
155
|
+
const destroy = () => {
|
|
156
|
+
destroyAction();
|
|
157
|
+
listeners.forEach((cb) => {
|
|
158
|
+
cb();
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
return { searchAction, destroy };
|
|
163
|
+
}
|
|
164
|
+
|
|
90
165
|
/**
|
|
91
166
|
* Creates an action which will toggle the overview map (opening & closing the window and activating/ deactivating the overview map).
|
|
92
167
|
* @param {OverviewMap} overviewMap
|
|
@@ -94,12 +169,16 @@ export function createToggleAction(actionOptions, windowComponent, windowManager
|
|
|
94
169
|
* @param {WindowManager} windowManager
|
|
95
170
|
* @returns {(function(): void)|*}
|
|
96
171
|
*/
|
|
97
|
-
export function createOverviewMapAction(
|
|
172
|
+
export function createOverviewMapAction(
|
|
173
|
+
overviewMap,
|
|
174
|
+
windowComponent,
|
|
175
|
+
windowManager,
|
|
176
|
+
) {
|
|
98
177
|
const { action, destroy } = createToggleAction(
|
|
99
178
|
{
|
|
100
179
|
name: 'overviewMapToggle',
|
|
101
180
|
icon: '$vcsMap',
|
|
102
|
-
title: '
|
|
181
|
+
title: 'navigation.overviewMapTooltip',
|
|
103
182
|
},
|
|
104
183
|
windowComponent,
|
|
105
184
|
windowManager,
|
|
@@ -121,7 +200,9 @@ export function createOverviewMapAction(overviewMap, windowComponent, windowMana
|
|
|
121
200
|
|
|
122
201
|
const destroyAction = () => {
|
|
123
202
|
destroy();
|
|
124
|
-
listeners.forEach((cb) => {
|
|
203
|
+
listeners.forEach((cb) => {
|
|
204
|
+
cb();
|
|
205
|
+
});
|
|
125
206
|
};
|
|
126
207
|
return { action, destroy: destroyAction };
|
|
127
208
|
}
|
|
@@ -131,11 +212,11 @@ export function createOverviewMapAction(overviewMap, windowComponent, windowMana
|
|
|
131
212
|
* at the clicked position (the actions position) by default, unless the window component already has a position set.
|
|
132
213
|
* @param {ActionOptions} actionOptions
|
|
133
214
|
* @param {WindowComponentOptions} modalComponent
|
|
134
|
-
* @param {
|
|
215
|
+
* @param {VcsUiApp} app
|
|
135
216
|
* @param {string|symbol} owner
|
|
136
217
|
* @returns {{action: VcsAction, destroy: Function}}
|
|
137
218
|
*/
|
|
138
|
-
export function createModalAction(actionOptions, modalComponent,
|
|
219
|
+
export function createModalAction(actionOptions, modalComponent, app, owner) {
|
|
139
220
|
check(actionOptions, {
|
|
140
221
|
name: String,
|
|
141
222
|
icon: [undefined, String],
|
|
@@ -144,29 +225,18 @@ export function createModalAction(actionOptions, modalComponent, windowManager,
|
|
|
144
225
|
check(owner, [String, vcsAppSymbol]);
|
|
145
226
|
|
|
146
227
|
const id = uuid();
|
|
228
|
+
const { position: windowPositionOptions, ...component } = modalComponent;
|
|
229
|
+
let modalActivator = null;
|
|
147
230
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
bottom: 0,
|
|
158
|
-
left: 0,
|
|
159
|
-
right: 0,
|
|
160
|
-
});
|
|
161
|
-
elem.onclick = () => { windowManager.remove(id); };
|
|
162
|
-
document.body.appendChild(elem);
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
const removeModal = () => {
|
|
167
|
-
const child = document.getElementById(id);
|
|
168
|
-
if (child) {
|
|
169
|
-
child.parentElement.removeChild(child);
|
|
231
|
+
/**
|
|
232
|
+
* Closes the modal at mousedown on an app element
|
|
233
|
+
* Requires mousedown event bubbling on app elements (same behaviour as v-menu).
|
|
234
|
+
* @param {MouseEvent} e
|
|
235
|
+
*/
|
|
236
|
+
const handleMouseDown = (e) => {
|
|
237
|
+
const div = document.getElementById(`window-component--${id}`);
|
|
238
|
+
if (!div?.contains(e.target) && !modalActivator?.contains(e.target)) {
|
|
239
|
+
app.windowManager.remove(id);
|
|
170
240
|
}
|
|
171
241
|
};
|
|
172
242
|
|
|
@@ -176,37 +246,45 @@ export function createModalAction(actionOptions, modalComponent, windowManager,
|
|
|
176
246
|
callback(event) {
|
|
177
247
|
if (!this.active) {
|
|
178
248
|
this.active = true;
|
|
179
|
-
const { left, top, width } =
|
|
180
|
-
|
|
249
|
+
const { left, top, width } =
|
|
250
|
+
event.currentTarget.getBoundingClientRect();
|
|
251
|
+
modalActivator = event.currentTarget;
|
|
252
|
+
const position = {
|
|
253
|
+
...getWindowPositionOptions(left + width, top, app.maps.target),
|
|
254
|
+
...windowPositionOptions,
|
|
255
|
+
};
|
|
181
256
|
const state = { ...modalComponent?.state, hideHeader: true };
|
|
182
|
-
windowManager.add({ position, ...
|
|
183
|
-
|
|
257
|
+
app.windowManager.add({ position, ...component, id, state }, owner);
|
|
258
|
+
document.addEventListener('mousedown', handleMouseDown);
|
|
184
259
|
} else {
|
|
185
260
|
this.active = false;
|
|
186
|
-
windowManager.remove(id);
|
|
261
|
+
app.windowManager.remove(id);
|
|
187
262
|
}
|
|
188
263
|
return null;
|
|
189
264
|
},
|
|
190
265
|
};
|
|
191
266
|
|
|
192
267
|
const listeners = [
|
|
193
|
-
windowManager.removed.addEventListener(({ id: windowId }) => {
|
|
268
|
+
app.windowManager.removed.addEventListener(({ id: windowId }) => {
|
|
194
269
|
if (windowId === id) {
|
|
195
270
|
action.active = false;
|
|
196
|
-
|
|
271
|
+
document.removeEventListener('mousedown', handleMouseDown);
|
|
197
272
|
}
|
|
198
273
|
}),
|
|
199
|
-
removeModal,
|
|
200
274
|
];
|
|
201
275
|
|
|
202
|
-
const destroy = () => {
|
|
276
|
+
const destroy = () => {
|
|
277
|
+
listeners.forEach((cb) => {
|
|
278
|
+
cb();
|
|
279
|
+
});
|
|
280
|
+
};
|
|
203
281
|
return { action, destroy };
|
|
204
282
|
}
|
|
205
283
|
|
|
206
284
|
/**
|
|
207
285
|
* Creates an action which opens a given link in a new tab
|
|
208
286
|
* @param {ActionOptions} actionOptions
|
|
209
|
-
* @param {string} url
|
|
287
|
+
* @param {string|function():string} url
|
|
210
288
|
* @returns {VcsAction}
|
|
211
289
|
*/
|
|
212
290
|
export function createLinkAction(actionOptions, url) {
|
|
@@ -215,13 +293,17 @@ export function createLinkAction(actionOptions, url) {
|
|
|
215
293
|
icon: [undefined, String],
|
|
216
294
|
title: [undefined, String],
|
|
217
295
|
});
|
|
218
|
-
check(url, String);
|
|
296
|
+
check(url, [String, Function]);
|
|
219
297
|
|
|
220
298
|
return {
|
|
221
299
|
...actionOptions,
|
|
222
300
|
callback() {
|
|
223
301
|
const link = document.createElement('a');
|
|
224
|
-
|
|
302
|
+
if (typeof url === 'string') {
|
|
303
|
+
link.href = url;
|
|
304
|
+
} else {
|
|
305
|
+
link.href = url();
|
|
306
|
+
}
|
|
225
307
|
link.target = '_blank';
|
|
226
308
|
link.click();
|
|
227
309
|
},
|
|
@@ -230,22 +312,28 @@ export function createLinkAction(actionOptions, url) {
|
|
|
230
312
|
|
|
231
313
|
/**
|
|
232
314
|
* @param {ActionOptions} actionOptions
|
|
233
|
-
* @param {string|import("@vcmap/core").
|
|
234
|
-
* @param {import("@vcmap/core").Collection<import("@vcmap/core").
|
|
315
|
+
* @param {string|import("@vcmap/core").Viewpoint} viewpoint
|
|
316
|
+
* @param {import("@vcmap/core").Collection<import("@vcmap/core").Viewpoint>} viewpointCollection
|
|
235
317
|
* @param {import("@vcmap/core").MapCollection} mapCollection
|
|
236
318
|
* @returns {VcsAction}
|
|
237
319
|
*/
|
|
238
|
-
export function createGoToViewpointAction(
|
|
320
|
+
export function createGoToViewpointAction(
|
|
321
|
+
actionOptions,
|
|
322
|
+
viewpoint,
|
|
323
|
+
viewpointCollection,
|
|
324
|
+
mapCollection,
|
|
325
|
+
) {
|
|
239
326
|
check(actionOptions, {
|
|
240
327
|
name: String,
|
|
241
328
|
icon: [undefined, String],
|
|
242
329
|
title: [undefined, String],
|
|
243
330
|
});
|
|
244
|
-
check(viewpoint, [
|
|
331
|
+
check(viewpoint, [Viewpoint, String]);
|
|
245
332
|
check(viewpointCollection, Collection);
|
|
246
333
|
check(mapCollection, MapCollection);
|
|
247
334
|
|
|
248
335
|
return {
|
|
336
|
+
title: 'content.viewpointAction.title',
|
|
249
337
|
...actionOptions,
|
|
250
338
|
async callback() {
|
|
251
339
|
let viewpointItem = viewpoint;
|
|
@@ -253,8 +341,56 @@ export function createGoToViewpointAction(actionOptions, viewpoint, viewpointCol
|
|
|
253
341
|
viewpointItem = viewpointCollection.getByKey(viewpoint);
|
|
254
342
|
}
|
|
255
343
|
if (viewpointItem) {
|
|
256
|
-
await mapCollection.activeMap.
|
|
344
|
+
await mapCollection.activeMap.gotoViewpoint(viewpointItem);
|
|
257
345
|
}
|
|
258
346
|
},
|
|
259
347
|
};
|
|
260
348
|
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* calculates and returns a viewpoint using feature's extent
|
|
352
|
+
* @param {import("ol").Feature<import("ol/geom/Geometry").default>} feature
|
|
353
|
+
* @returns {Viewpoint|null}
|
|
354
|
+
*/
|
|
355
|
+
export function getViewpointFromFeature(feature) {
|
|
356
|
+
const extent = new Extent({
|
|
357
|
+
coordinates: feature.getGeometry()?.getExtent?.(),
|
|
358
|
+
projection: mercatorProjection,
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
if (!extent || !extent.isValid()) {
|
|
362
|
+
return null;
|
|
363
|
+
}
|
|
364
|
+
return Viewpoint.createViewpointFromExtent(extent);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Creates an action, which when clicked, zooms to the provided feature
|
|
369
|
+
* @param {ActionOptions} actionOptions
|
|
370
|
+
* @param {import("ol").Feature<import("ol/geom/Geometry").default>} feature
|
|
371
|
+
* @param {import("@vcmap/core").MapCollection} mapCollection
|
|
372
|
+
* @returns {VcsAction|null} returns null if the feature does not have a geometry with a valid extent
|
|
373
|
+
*/
|
|
374
|
+
export function createZoomToFeatureAction(
|
|
375
|
+
actionOptions,
|
|
376
|
+
feature,
|
|
377
|
+
mapCollection,
|
|
378
|
+
) {
|
|
379
|
+
check(actionOptions, {
|
|
380
|
+
name: String,
|
|
381
|
+
icon: [undefined, String],
|
|
382
|
+
title: [undefined, String],
|
|
383
|
+
});
|
|
384
|
+
check(feature, Feature);
|
|
385
|
+
check(mapCollection, MapCollection);
|
|
386
|
+
|
|
387
|
+
const viewpoint = getViewpointFromFeature(feature);
|
|
388
|
+
|
|
389
|
+
return {
|
|
390
|
+
title: 'search.zoomToFeatureAction',
|
|
391
|
+
...actionOptions,
|
|
392
|
+
async callback() {
|
|
393
|
+
await mapCollection.activeMap.gotoViewpoint(viewpoint);
|
|
394
|
+
},
|
|
395
|
+
};
|
|
396
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { watch } from '
|
|
1
|
+
import { watch } from 'vue';
|
|
2
2
|
import { check } from '@vcsuite/check';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -22,7 +22,7 @@ const stateIconMap = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Creates an action
|
|
24
24
|
* @param {string} name
|
|
25
|
-
* @param {import("
|
|
25
|
+
* @param {import("vue").Ref<StateActionState>} stateRef
|
|
26
26
|
* @param {function():void} callback
|
|
27
27
|
* @returns {{ action: VcsAction, destroy: function():void }}
|
|
28
28
|
*/
|
|
@@ -34,7 +34,6 @@ export function createStateRefAction(name, stateRef, callback) {
|
|
|
34
34
|
const currentState = stateRef.value;
|
|
35
35
|
const action = {
|
|
36
36
|
name,
|
|
37
|
-
title: 'Activate', // XXX make reactive i18n key based on state
|
|
38
37
|
icon: stateIconMap[currentState],
|
|
39
38
|
callback,
|
|
40
39
|
};
|