@vcmap/ui 5.0.0-rc.22 → 5.0.0-rc.24
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 +38 -20
- package/app.config.json +3 -0
- package/build/.eslintrc +3 -0
- package/build/build.js +184 -174
- package/build/buildCesium.js +32 -19
- package/build/buildHelpers.js +117 -48
- package/build/buildPreview.js +9 -6
- package/build/commonViteConfig.js +1 -3
- package/build/determineHost.js +17 -4
- package/build/generateOLLib.js +13 -16
- package/build/getPluginProxies.js +16 -3
- package/build/info/conf.json +21 -21
- package/build/info/publish.js +15 -4
- package/config/aerowest.config.json +18 -44
- package/config/base.config.json +72 -246
- package/config/codes.config.json +4 -0
- package/config/dev.config.json +11 -13
- package/config/graphFeatureInfo.config.json +58 -17
- package/config/projects.config.json +30 -0
- package/config/www.config.json +98 -297
- package/dist/assets/cesium/Workers/{ArcType-ce2e50ab.js → ArcType-2d9abbbc.js} +4 -4
- package/dist/assets/cesium/Workers/{AttributeCompression-b646d393.js → AttributeCompression-f9f6c717.js} +24 -24
- package/dist/assets/cesium/Workers/{AxisAlignedBoundingBox-ff186ccc.js → AxisAlignedBoundingBox-85d9e53a.js} +3 -3
- package/dist/assets/cesium/Workers/{BoundingRectangle-be5924f4.js → BoundingRectangle-1ee7eb47.js} +18 -18
- package/dist/assets/cesium/Workers/{BoxGeometry-12eeccaf.js → BoxGeometry-3b2be784.js} +9 -9
- package/dist/assets/cesium/Workers/{Check-666ab1a0.js → Check-6ede7e26.js} +22 -22
- package/dist/assets/cesium/Workers/{Color-a84038cb.js → Color-f107c84d.js} +59 -59
- package/dist/assets/cesium/Workers/{ComponentDatatype-f7b11d02.js → ComponentDatatype-cf1fa08e.js} +16 -16
- package/dist/assets/cesium/Workers/{CoplanarPolygonGeometryLibrary-3272c1b3.js → CoplanarPolygonGeometryLibrary-78d71993.js} +1 -1
- package/dist/assets/cesium/Workers/{CorridorGeometryLibrary-0170e093.js → CorridorGeometryLibrary-50d99b33.js} +1 -1
- package/dist/assets/cesium/Workers/{CylinderGeometry-7c5da648.js → CylinderGeometry-51b0d9bf.js} +12 -12
- package/dist/assets/cesium/Workers/{CylinderGeometryLibrary-372c07d8.js → CylinderGeometryLibrary-7bf291b4.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipseGeometry-797d580e.js → EllipseGeometry-bcfb5d87.js} +20 -20
- package/dist/assets/cesium/Workers/{EllipseGeometryLibrary-2939e1dc.js → EllipseGeometryLibrary-e94f8472.js} +1 -1
- package/dist/assets/cesium/Workers/{EllipseOutlineGeometry-8b50870f.js → EllipseOutlineGeometry-28e3a1bb.js} +15 -15
- package/dist/assets/cesium/Workers/{EllipsoidGeodesic-98c62a56.js → EllipsoidGeodesic-5b3623dc.js} +6 -6
- package/dist/assets/cesium/Workers/{EllipsoidGeometry-21c0e3a5.js → EllipsoidGeometry-b222fa63.js} +14 -14
- package/dist/assets/cesium/Workers/{EllipsoidOutlineGeometry-eff247c8.js → EllipsoidOutlineGeometry-38a3fb5b.js} +15 -15
- package/dist/assets/cesium/Workers/{EllipsoidRhumbLine-19756602.js → EllipsoidRhumbLine-ef872433.js} +9 -9
- package/dist/assets/cesium/Workers/{EllipsoidTangentPlane-214683dc.js → EllipsoidTangentPlane-8c89f28c.js} +1 -1
- package/dist/assets/cesium/Workers/{EncodedCartesian3-81f70735.js → EncodedCartesian3-57415c8a.js} +6 -6
- package/dist/assets/cesium/Workers/{FrustumGeometry-ac42a6d9.js → FrustumGeometry-bdd3a04d.js} +139 -111
- package/dist/assets/cesium/Workers/{GeometryAttribute-7d6f1732.js → GeometryAttribute-153115c5.js} +20 -20
- package/dist/assets/cesium/Workers/{GeometryAttributes-f06a2792.js → GeometryAttributes-ad136444.js} +1 -1
- package/dist/assets/cesium/Workers/{GeometryInstance-451dc1cd.js → GeometryInstance-34d9e21e.js} +6 -6
- package/dist/assets/cesium/Workers/{GeometryPipeline-ce4339ed.js → GeometryPipeline-acb2399c.js} +22 -22
- package/dist/assets/cesium/Workers/{IndexDatatype-a55ceaa1.js → IndexDatatype-2643aa47.js} +13 -13
- package/dist/assets/cesium/Workers/{IntersectionTests-f6e6bd8a.js → IntersectionTests-271e513e.js} +37 -37
- package/dist/assets/cesium/Workers/{Math-2dbd6b93.js → Math-0a2ac845.js} +149 -139
- package/dist/assets/cesium/Workers/{Matrix2-13178034.js → Matrix2-e1298525.js} +256 -256
- package/dist/assets/cesium/Workers/{Matrix3-315394f6.js → Matrix3-41c58dde.js} +150 -150
- package/dist/assets/cesium/Workers/{OrientedBoundingBox-04920dc7.js → OrientedBoundingBox-5e04e31f.js} +19 -17
- package/dist/assets/cesium/Workers/{Plane-900aa728.js → Plane-4c3d403b.js} +5 -5
- package/dist/assets/cesium/Workers/{PolygonGeometryLibrary-a8680d96.js → PolygonGeometryLibrary-6762b65b.js} +6 -6
- package/dist/assets/cesium/Workers/PolygonPipeline-7dc7a431.js +1344 -0
- package/dist/assets/cesium/Workers/{PolylinePipeline-32f36d2a.js → PolylinePipeline-15fde655.js} +16 -16
- package/dist/assets/cesium/Workers/{PolylineVolumeGeometryLibrary-a510d657.js → PolylineVolumeGeometryLibrary-ba7dfed5.js} +7 -7
- package/dist/assets/cesium/Workers/{PrimitivePipeline-ba38434a.js → PrimitivePipeline-68f0b9a2.js} +6 -6
- package/dist/assets/cesium/Workers/{RectangleGeometryLibrary-bdba697e.js → RectangleGeometryLibrary-8eaf23da.js} +1 -1
- package/dist/assets/cesium/Workers/{RuntimeError-06c93819.js → RuntimeError-ef395448.js} +5 -5
- package/dist/assets/cesium/Workers/{TerrainEncoding-833187da.js → TerrainEncoding-eb8a645a.js} +30 -30
- package/dist/assets/cesium/Workers/Transforms-f6451f99.js +14698 -0
- package/dist/assets/cesium/Workers/{VertexFormat-6b480673.js → VertexFormat-030f11ff.js} +14 -14
- package/dist/assets/cesium/Workers/{WallGeometryLibrary-919eed92.js → WallGeometryLibrary-feef3109.js} +1 -1
- package/dist/assets/cesium/Workers/{WebGLConstants-a8cc3e8c.js → WebGLConstants-0b1ce7ba.js} +1 -1
- package/dist/assets/cesium/Workers/{WebMercatorProjection-13a90d41.js → WebMercatorProjection-13ed1a6e.js} +6 -6
- package/dist/assets/cesium/Workers/{arrayRemoveDuplicates-c2038105.js → arrayRemoveDuplicates-d2061e85.js} +5 -5
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +5 -5
- package/dist/assets/cesium/Workers/{combine-ca22a614.js → combine-d9581036.js} +5 -5
- package/dist/assets/cesium/Workers/combineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createBoxGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +9 -9
- package/dist/assets/cesium/Workers/createCircleGeometry.js +13 -13
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +13 -13
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +11 -11
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +9 -9
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +14 -14
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +12 -12
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +13 -13
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +8 -8
- package/dist/assets/cesium/Workers/createGeometry.js +1 -1
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +33 -33
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +8 -8
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +6 -6
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +25 -25
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +17 -17
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +11 -11
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +9 -9
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +9 -9
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +16 -16
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +12 -12
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +10 -10
- package/dist/assets/cesium/Workers/createSphereGeometry.js +11 -11
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +12 -12
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +8 -8
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +1 -1
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +1 -1
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +27 -28
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +33 -38
- package/dist/assets/cesium/Workers/createWallGeometry.js +14 -14
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +14 -14
- package/dist/assets/cesium/Workers/decodeDraco.js +10 -2
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +15 -15
- package/dist/assets/cesium/Workers/decodeI3S.js +1 -1
- package/dist/assets/cesium/Workers/{defaultValue-0a909f67.js → defaultValue-fe22d8c0.js} +2 -2
- package/dist/assets/cesium/Workers/package.js +1 -1
- package/dist/assets/cesium/Workers/transcodeKTX2.js +46 -26
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -1
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +24 -24
- package/dist/assets/{cesium.88cffd.js → cesium.253914.js} +36578 -33768
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.a66593.js → core.3a8205.js} +7824 -5377
- package/dist/assets/core.js +1 -1
- package/dist/assets/index.91ae2d55.js +1 -0
- package/dist/assets/{ol.d4539f.js → ol.1c946a.js} +5550 -5491
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui.0025be.css +5 -0
- package/dist/assets/{ui.d760e4.js → ui.0025be.js} +6260 -5164
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.427322.css → vuetify.6efa21.css} +2 -2
- package/dist/assets/{vuetify.427322.js → vuetify.6efa21.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +27 -7
- package/index.html +26 -6
- package/index.js +68 -15
- package/lib/cesium.js +1 -1
- package/lib/core.js +1 -1
- package/lib/ui.js +1 -1
- package/lib/vue.js +2 -2
- package/lib/vuetify.js +2 -2
- package/package.json +19 -10
- package/plugins/.eslintrc +9 -0
- package/plugins/@vcmap/create-link/fallbackCreateLink.vue +13 -9
- package/plugins/@vcmap/create-link/index.js +15 -6
- package/plugins/@vcmap/project-selector/{ContextsListComponent.vue → ModulesListComponent.vue} +14 -18
- package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +19 -24
- package/plugins/@vcmap/project-selector/README.md +16 -20
- package/plugins/@vcmap/project-selector/config.json +13 -13
- package/plugins/@vcmap/project-selector/de.json +4 -1
- package/plugins/@vcmap/project-selector/en.json +4 -1
- package/plugins/@vcmap/project-selector/index.js +117 -107
- package/plugins/@vcmap/search-nominatim/LICENSE.md +5 -6
- package/plugins/@vcmap/search-nominatim/README.md +2 -1
- package/plugins/@vcmap/search-nominatim/config.json +1 -2
- package/plugins/@vcmap/search-nominatim/index.js +7 -4
- package/plugins/@vcmap/search-nominatim/nominatim.js +7 -2
- package/plugins/@vcmap/search-nominatim/package.json +2 -36
- package/plugins/@vcmap/simple-graph/README.md +29 -9
- package/plugins/@vcmap/simple-graph/SimpleGraphComponent.vue +2 -7
- package/plugins/@vcmap/simple-graph/index.js +2 -2
- package/plugins/@vcmap/simple-graph/simpleGraphView.js +3 -1
- package/plugins/@vcmap/theme-changer/README.md +5 -3
- package/plugins/@vcmap/theme-changer/ThemeChangerComponent.vue +6 -10
- package/plugins/@vcmap/theme-changer/config.json +67 -67
- package/plugins/@vcmap/theme-changer/index.js +11 -5
- package/plugins/@vcmap-show-case/buttons-example/ButtonsExample.vue +76 -11
- package/plugins/@vcmap-show-case/buttons-example/index.js +10 -8
- package/plugins/@vcmap-show-case/category-tester/Categories.vue +144 -117
- package/plugins/@vcmap-show-case/category-tester/Category.vue +46 -29
- package/plugins/@vcmap-show-case/category-tester/index.js +9 -3
- package/plugins/@vcmap-show-case/config-editor/ConfigEditor.vue +62 -0
- package/plugins/@vcmap-show-case/config-editor/index.js +13 -11
- package/plugins/@vcmap-show-case/context-menu-tester/index.js +18 -10
- package/plugins/@vcmap-show-case/form-inputs-example/FormInputsExample.vue +97 -109
- package/plugins/@vcmap-show-case/form-inputs-example/config.json +3 -3
- package/plugins/@vcmap-show-case/form-inputs-example/exampleActions.js +14 -4
- package/plugins/@vcmap-show-case/form-inputs-example/index.js +42 -19
- package/plugins/@vcmap-show-case/form-inputs-example/validation.js +2 -1
- package/plugins/@vcmap-show-case/icons-example/README.md +1 -1
- package/plugins/@vcmap-show-case/icons-example/allIconsComponent.vue +10 -10
- package/plugins/@vcmap-show-case/icons-example/index.js +10 -8
- package/plugins/@vcmap-show-case/list-example/ListExample.vue +221 -103
- package/plugins/@vcmap-show-case/list-example/index.js +10 -8
- package/plugins/@vcmap-show-case/notifier-tester/index.js +9 -3
- package/plugins/@vcmap-show-case/notifier-tester/notifierTester.vue +15 -21
- package/plugins/@vcmap-show-case/table-example/DataTableExample.vue +183 -0
- package/plugins/@vcmap-show-case/table-example/README.md +3 -0
- package/plugins/@vcmap-show-case/table-example/index.js +49 -0
- package/plugins/@vcmap-show-case/table-example/package.json +5 -0
- package/plugins/@vcmap-show-case/textfields-example/TextfieldsExample.vue +7 -30
- package/plugins/@vcmap-show-case/textfields-example/index.js +10 -4
- package/plugins/@vcmap-show-case/window-tester/WindowExample.vue +16 -13
- package/plugins/@vcmap-show-case/window-tester/emptyComponent.vue +4 -7
- package/plugins/@vcmap-show-case/window-tester/index.js +26 -20
- package/plugins/@vcmap-show-case/window-tester/myCustomHeader.vue +7 -3
- package/plugins/@vcmap-show-case/window-tester/toolbox-data.js +82 -5
- package/plugins/@vcmap-show-case/window-tester/windowExampleContent.vue +3 -7
- package/plugins/@vcmap-show-case/wizard-example/index.js +9 -3
- package/plugins/@vcmap-show-case/wizard-example/wizardExample.vue +36 -38
- package/src/actions/actionHelper.js +64 -37
- package/src/actions/styleSelector.vue +40 -24
- package/src/application/VcsApp.vue +117 -80
- package/src/application/VcsAttributions.vue +8 -9
- package/src/application/VcsAttributionsFooter.vue +12 -9
- package/src/application/VcsMap.vue +9 -5
- package/src/application/VcsNavbar.vue +44 -27
- package/src/application/VcsSettings.vue +5 -12
- package/src/application/attributionsHelper.js +23 -11
- package/src/application/vcsAppWrapper.vue +1 -3
- package/src/components/buttons/VcsActionButtonList.vue +20 -17
- package/src/components/buttons/VcsButton.vue +19 -23
- package/src/components/buttons/VcsFormButton.vue +176 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +6 -7
- package/src/components/form-inputs-controls/VcsDatePicker.vue +142 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +11 -12
- package/src/components/form-inputs-controls/VcsLabel.vue +9 -10
- package/src/components/form-inputs-controls/VcsRadio.vue +44 -44
- package/src/components/form-inputs-controls/VcsSelect.vue +16 -13
- package/src/components/form-inputs-controls/VcsTextArea.vue +21 -14
- package/src/components/form-inputs-controls/VcsTextField.vue +44 -19
- package/src/components/form-inputs-controls/VcsWizard.vue +79 -77
- package/src/components/form-inputs-controls/VcsWizardStep.vue +20 -20
- package/src/components/form-inputs-controls/composables.js +13 -8
- package/src/components/form-output/VcsFormattedNumber.vue +26 -26
- package/src/components/icons/+all.js +13 -5
- package/src/components/icons/2DAreaIcon.vue +62 -10
- package/src/components/icons/2DDistanceIcon.vue +14 -2
- package/src/components/icons/3DAreaIcon.vue +62 -10
- package/src/components/icons/3DDistanceIcon.vue +14 -2
- package/src/components/icons/3DHeightIcon.vue +14 -2
- package/src/components/icons/AngleIcon.vue +12 -3
- package/src/components/icons/AssociationsIcon.vue +6 -1
- package/src/components/icons/AxisIcon.vue +34 -5
- package/src/components/icons/BoundingBoxIcon.vue +31 -5
- package/src/components/icons/CheckboxCheckedIcon.vue +4 -1
- package/src/components/icons/CheckboxIcon.vue +1 -8
- package/src/components/icons/CheckboxIndeterminateIcon.vue +9 -2
- package/src/components/icons/CircleIcon.vue +24 -4
- package/src/components/icons/ClippingHorizontalIcon.vue +14 -2
- package/src/components/icons/ClippingIcon.vue +13 -2
- package/src/components/icons/ClippingVerticalIcon.vue +14 -2
- package/src/components/icons/ColorPickerIcon.vue +13 -2
- package/src/components/icons/ColorSwatchIcon.vue +7 -1
- package/src/components/icons/CommentIcon.vue +6 -1
- package/src/components/icons/CompassIcon.vue +21 -3
- package/src/components/icons/ComponentsIcon.vue +14 -2
- package/src/components/icons/ConeIcon.vue +26 -4
- package/src/components/icons/DimensionsHouseIcon.vue +7 -1
- package/src/components/icons/EditIcon.vue +13 -2
- package/src/components/icons/ElevationProfileIcon.vue +6 -1
- package/src/components/icons/ExportAreaIcon.vue +13 -2
- package/src/components/icons/ExportFlightIcon.vue +13 -2
- package/src/components/icons/ExportIcon.vue +14 -2
- package/src/components/icons/ExternalLinkIcon.vue +18 -3
- package/src/components/icons/EyeIcon.vue +12 -2
- package/src/components/icons/FastForwardIcon.vue +13 -2
- package/src/components/icons/FilterIcon.vue +13 -2
- package/src/components/icons/GlobalTerrainIcon.vue +12 -2
- package/src/components/icons/GlobeNatureIcon.vue +7 -1
- package/src/components/icons/GroundIcon.vue +12 -2
- package/src/components/icons/HealthCareIndustriesIcon.vue +6 -1
- package/src/components/icons/HelpIcon.vue +12 -2
- package/src/components/icons/HideIcon.vue +17 -3
- package/src/components/icons/HomePointIcon.vue +13 -3
- package/src/components/icons/HospitalsIcon.vue +6 -1
- package/src/components/icons/HouseIcon.vue +20 -3
- package/src/components/icons/ImportIcon.vue +21 -3
- package/src/components/icons/InfoIcon.vue +19 -3
- package/src/components/icons/KebabIcon.vue +12 -2
- package/src/components/icons/LabelIcon.vue +21 -3
- package/src/components/icons/LayersIcon.vue +12 -2
- package/src/components/icons/LegendIcon.vue +20 -60
- package/src/components/icons/LineIcon.vue +20 -3
- package/src/components/icons/LinkIcon.vue +13 -2
- package/src/components/icons/LogoutIcon.vue +13 -2
- package/src/components/icons/MapIcon.vue +14 -2
- package/src/components/icons/MenuIcon.vue +7 -1
- package/src/components/icons/MinusIcon.vue +14 -2
- package/src/components/icons/ObjectAttributeIcon.vue +13 -2
- package/src/components/icons/ObjectSelectIcon.vue +14 -2
- package/src/components/icons/ObliqueViewIcon.vue +11 -2
- package/src/components/icons/PdfIcon.vue +12 -2
- package/src/components/icons/PedestrianIcon.vue +13 -2
- package/src/components/icons/PenIcon.vue +13 -3
- package/src/components/icons/PlayCircleIcon.vue +20 -3
- package/src/components/icons/PlusIcon.vue +14 -3
- package/src/components/icons/PoiIcon.vue +17 -3
- package/src/components/icons/PointSelectIcon.vue +12 -2
- package/src/components/icons/PolygonIcon.vue +7 -1
- package/src/components/icons/PresentationModeIcon.vue +13 -2
- package/src/components/icons/ProgressIcon.vue +8 -6
- package/src/components/icons/QueryIcon.vue +31 -5
- package/src/components/icons/RectangleIcon.vue +24 -4
- package/src/components/icons/ReturnIcon.vue +13 -2
- package/src/components/icons/RewindIcon.vue +13 -2
- package/src/components/icons/RotateLeftIcon.vue +13 -2
- package/src/components/icons/RotateRightIcon.vue +13 -2
- package/src/components/icons/ScreenshotIcon.vue +52 -10
- package/src/components/icons/SearchIcon.vue +13 -3
- package/src/components/icons/ShadowIcon.vue +14 -3
- package/src/components/icons/ShapesIcon.vue +13 -3
- package/src/components/icons/ShareIcon.vue +17 -4
- package/src/components/icons/SimpleCircleFilledIcon.vue +14 -10
- package/src/components/icons/SimpleCircleHalfFilledIcon.vue +6 -1
- package/src/components/icons/SimpleCircleOutlinedIcon.vue +14 -10
- package/src/components/icons/SkipNextIcon.vue +11 -2
- package/src/components/icons/SkipPreviousIcon.vue +17 -3
- package/src/components/icons/SplitViewIcon.vue +6 -1
- package/src/components/icons/TerrainBoxIcon.vue +12 -2
- package/src/components/icons/TextStyleIcon.vue +7 -1
- package/src/components/icons/ThreeDimensionsIcon.vue +13 -2
- package/src/components/icons/ToolsIcon.vue +12 -2
- package/src/components/icons/TouchIcon.vue +13 -2
- package/src/components/icons/TrashCanIcon.vue +13 -2
- package/src/components/icons/TriangleIcon.vue +6 -2
- package/src/components/icons/TwoDimensionsIcon.vue +14 -2
- package/src/components/icons/UploadIcon.vue +13 -2
- package/src/components/icons/UserProfileIcon.vue +13 -2
- package/src/components/icons/UserShareIcon.vue +12 -2
- package/src/components/icons/VideoRecorderIcon.vue +16 -3
- package/src/components/icons/ViewpointFlightIcon.vue +22 -4
- package/src/components/icons/ViewpointIcon.vue +22 -4
- package/src/components/icons/Viewshed360Icon.vue +14 -2
- package/src/components/icons/ViewshedConeIcon.vue +13 -2
- package/src/components/icons/ViewshedIcon.vue +14 -2
- package/src/components/icons/WalkingIcon.vue +13 -2
- package/src/components/icons/WallIcon.vue +19 -3
- package/src/components/icons/WandIcon.vue +129 -21
- package/src/components/imageElementInjector.vue +1 -3
- package/src/components/lists/VcsActionList.vue +21 -18
- package/src/components/lists/VcsList.vue +226 -97
- package/src/components/lists/VcsTreeview.vue +30 -26
- package/src/components/lists/VcsTreeviewLeaf.vue +23 -22
- package/src/components/lists/VcsTreeviewSearchbar.vue +19 -15
- package/src/components/notification/VcsBadge.vue +4 -6
- package/src/components/notification/VcsTooltip.vue +95 -94
- package/src/components/notification/validation.js +1 -1
- package/src/components/tables/VcsDataTable.vue +398 -0
- package/src/components/tables/VcsTable.vue +63 -300
- package/src/contentTree/LayerTree.vue +2 -3
- package/src/contentTree/contentTreeCollection.js +49 -23
- package/src/contentTree/contentTreeItem.js +36 -14
- package/src/contentTree/groupContentTreeItem.js +44 -22
- package/src/contentTree/layerContentTreeItem.js +45 -20
- package/src/contentTree/layerGroupContentTreeItem.js +53 -31
- package/src/contentTree/nodeContentTreeItem.js +18 -7
- package/src/contentTree/obliqueCollectionContentTreeItem.js +45 -20
- package/src/contentTree/subContentTreeItem.js +13 -4
- package/src/contentTree/vcsObjectContentTreeItem.js +24 -15
- package/src/contentTree/viewpointContentTreeItem.js +19 -6
- package/src/downloadHelper.js +52 -0
- package/src/featureInfo/AddressBalloonComponent.vue +11 -16
- package/src/featureInfo/BalloonComponent.vue +41 -31
- package/src/featureInfo/abstractFeatureInfoView.js +30 -14
- package/src/featureInfo/addressBalloonFeatureInfoView.js +19 -7
- package/src/featureInfo/balloonFeatureInfoView.js +22 -9
- package/src/featureInfo/balloonHelper.js +61 -42
- package/src/featureInfo/featureInfo.js +74 -34
- package/src/featureInfo/featureInfoInteraction.js +13 -7
- package/src/featureInfo/iframeFeatureInfoView.js +3 -1
- package/src/featureInfo/tableFeatureInfoView.js +15 -5
- package/src/i18n/de.js +8 -0
- package/src/i18n/en.js +8 -0
- package/src/i18n/i18nCollection.js +183 -155
- package/src/init.js +124 -38
- package/src/legend/legendHelper.js +11 -6
- package/src/legend/styleLegendItem.vue +18 -12
- package/src/legend/vcsLegend.vue +15 -17
- package/src/manager/buttonManager.js +6 -3
- package/src/manager/categoryManager/CategoryComponent.vue +99 -63
- package/src/manager/categoryManager/CategoryComponentList.vue +33 -8
- package/src/manager/categoryManager/CategoryManager.vue +23 -11
- package/src/manager/categoryManager/categoryManager.js +90 -45
- package/src/manager/contextMenu/contextMenuComponent.vue +2 -6
- package/src/manager/contextMenu/contextMenuInteraction.js +6 -1
- package/src/manager/contextMenu/contextMenuManager.js +37 -22
- package/src/manager/navbarManager.js +28 -3
- package/src/manager/toolbox/GroupToolboxComponent.vue +22 -21
- package/src/manager/toolbox/SelectToolboxComponent.vue +36 -35
- package/src/manager/toolbox/ToolboxManager.vue +18 -10
- package/src/manager/toolbox/toolboxManager.js +30 -12
- package/src/manager/window/WindowComponent.vue +24 -32
- package/src/manager/window/WindowComponentHeader.vue +38 -28
- package/src/manager/window/WindowManager.vue +45 -35
- package/src/manager/window/windowHelper.js +80 -24
- package/src/manager/window/windowManager.js +79 -39
- package/src/navigation/mapNavCompass.vue +18 -4
- package/src/navigation/mapNavigation.vue +65 -46
- package/src/navigation/obliqueRotation.vue +34 -13
- package/src/navigation/orientationToolsButton.vue +6 -10
- package/src/navigation/overviewMap.js +76 -45
- package/src/navigation/overviewMapClickedInteraction.js +6 -1
- package/src/navigation/tiltSlider.vue +6 -10
- package/src/navigation/vcsCompass.vue +1 -9
- package/src/navigation/vcsZoomButton.vue +36 -11
- package/src/notifier/notifier.js +22 -13
- package/src/notifier/notifierComponent.vue +21 -21
- package/src/pluginHelper.js +39 -5
- package/src/search/resultItem.vue +10 -15
- package/src/search/resultsComponent.vue +30 -24
- package/src/search/search.js +48 -22
- package/src/search/searchComponent.vue +35 -10
- package/src/setup.js +9 -9
- package/src/state.js +28 -12
- package/src/styles/_typography.scss +0 -1
- package/src/styles/shades.scss +4 -2
- package/src/styles/utils/_border.scss +1 -1
- package/src/styles/utils/_display.scss +1 -1
- package/src/styles/variables.scss +39 -34
- package/src/styles/vcsFont.scss +6 -5
- package/src/styles/vcsGrid.scss +9 -0
- package/src/uiConfig.js +6 -4
- package/src/vcsUiApp.js +192 -91
- package/src/vuePlugins/i18n.js +5 -4
- package/src/vuePlugins/vuetify.js +4 -0
- package/start.js +8 -2
- package/dist/assets/cesium/Workers/PolygonPipeline-844aab0a.js +0 -1345
- package/dist/assets/cesium/Workers/Transforms-40229881.js +0 -14696
- package/dist/assets/index.8b833ead.js +0 -1
- package/dist/assets/ui.d760e4.css +0 -5
- package/map.config.json +0 -44
- package/plugins/@vcmap-show-case/config-editor/editor.vue +0 -66
- /package/dist/assets/cesium/Workers/{GeometryOffsetAttribute-04332ce7.js → GeometryOffsetAttribute-9ad0019c.js} +0 -0
- /package/dist/assets/{vue.db5102.js → vue.c1ece7.js} +0 -0
@@ -1,4 +1,6 @@
|
|
1
|
-
import ContentTreeItem, {
|
1
|
+
import ContentTreeItem, {
|
2
|
+
contentTreeClassRegistry,
|
3
|
+
} from './contentTreeItem.js';
|
2
4
|
|
3
5
|
/**
|
4
6
|
* @type {symbol}
|
@@ -13,7 +15,9 @@ export const subTreeSymbol = Symbol('SubTree');
|
|
13
15
|
* @extends {ContentTreeItem}
|
14
16
|
*/
|
15
17
|
class SubContentTreeItem extends ContentTreeItem {
|
16
|
-
static get className() {
|
18
|
+
static get className() {
|
19
|
+
return 'SubContentTreeItem';
|
20
|
+
}
|
17
21
|
|
18
22
|
/**
|
19
23
|
* @param {ContentTreeItemOptions} options
|
@@ -23,7 +27,9 @@ class SubContentTreeItem extends ContentTreeItem {
|
|
23
27
|
super(options, app);
|
24
28
|
|
25
29
|
if (!this.name || this.name.split('.').length > 1) {
|
26
|
-
throw new Error(
|
30
|
+
throw new Error(
|
31
|
+
`Sub trees may only be defined on top level. Tree ${this.name} is nested or undefined`,
|
32
|
+
);
|
27
33
|
}
|
28
34
|
this.clickable = false;
|
29
35
|
}
|
@@ -39,4 +45,7 @@ class SubContentTreeItem extends ContentTreeItem {
|
|
39
45
|
}
|
40
46
|
|
41
47
|
export default SubContentTreeItem;
|
42
|
-
contentTreeClassRegistry.registerClass(
|
48
|
+
contentTreeClassRegistry.registerClass(
|
49
|
+
SubContentTreeItem.className,
|
50
|
+
SubContentTreeItem,
|
51
|
+
);
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import ContentTreeItem, {
|
1
|
+
import ContentTreeItem, {
|
2
|
+
contentTreeClassRegistry,
|
3
|
+
} from './contentTreeItem.js';
|
2
4
|
|
3
5
|
/**
|
4
6
|
* @typedef {Object} VcsObjectContentTreeItemProperties
|
@@ -21,7 +23,9 @@ class VcsObjectContentTreeItem extends ContentTreeItem {
|
|
21
23
|
* @type {string}
|
22
24
|
* @readonly
|
23
25
|
*/
|
24
|
-
static get className() {
|
26
|
+
static get className() {
|
27
|
+
return 'VcsObjectContentTreeItem';
|
28
|
+
}
|
25
29
|
|
26
30
|
/**
|
27
31
|
* @param {ContentTreeItemOptions} options
|
@@ -71,12 +75,11 @@ class VcsObjectContentTreeItem extends ContentTreeItem {
|
|
71
75
|
setPropertiesFromObject(object) {
|
72
76
|
this._currentObjectProperties = object.properties;
|
73
77
|
const mergedProperties = { ...this._currentObjectProperties };
|
74
|
-
Object.entries(this._ownProperties)
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
});
|
78
|
+
Object.entries(this._ownProperties).forEach(([key, value]) => {
|
79
|
+
if (value !== undefined) {
|
80
|
+
mergedProperties[key] = value;
|
81
|
+
}
|
82
|
+
});
|
80
83
|
this._setProperties(mergedProperties);
|
81
84
|
}
|
82
85
|
|
@@ -85,16 +88,22 @@ class VcsObjectContentTreeItem extends ContentTreeItem {
|
|
85
88
|
*/
|
86
89
|
toJSON() {
|
87
90
|
const config = super.toJSON();
|
88
|
-
Object.entries(this._currentObjectProperties)
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
Object.entries(this._currentObjectProperties).forEach(([key, value]) => {
|
92
|
+
if (
|
93
|
+
config[key] &&
|
94
|
+
config[key] === value &&
|
95
|
+
this._ownProperties[key] !== value
|
96
|
+
) {
|
97
|
+
delete config[key];
|
98
|
+
}
|
99
|
+
});
|
94
100
|
|
95
101
|
return config;
|
96
102
|
}
|
97
103
|
}
|
98
104
|
|
99
|
-
contentTreeClassRegistry.registerClass(
|
105
|
+
contentTreeClassRegistry.registerClass(
|
106
|
+
VcsObjectContentTreeItem.className,
|
107
|
+
VcsObjectContentTreeItem,
|
108
|
+
);
|
100
109
|
export default VcsObjectContentTreeItem;
|
@@ -12,7 +12,9 @@ import { contentTreeClassRegistry } from './contentTreeItem.js';
|
|
12
12
|
* @class
|
13
13
|
*/
|
14
14
|
class ViewpointContentTreeItem extends VcsObjectContentTreeItem {
|
15
|
-
static get className() {
|
15
|
+
static get className() {
|
16
|
+
return 'ViewpointContentTreeItem';
|
17
|
+
}
|
16
18
|
|
17
19
|
/**
|
18
20
|
* @param {ViewpointContentTreeItemOptions} options
|
@@ -48,7 +50,9 @@ class ViewpointContentTreeItem extends VcsObjectContentTreeItem {
|
|
48
50
|
* @private
|
49
51
|
*/
|
50
52
|
_clearListeners() {
|
51
|
-
this._listeners.forEach((cb) => {
|
53
|
+
this._listeners.forEach((cb) => {
|
54
|
+
cb();
|
55
|
+
});
|
52
56
|
this._listeners.splice(0);
|
53
57
|
}
|
54
58
|
|
@@ -69,12 +73,18 @@ class ViewpointContentTreeItem extends VcsObjectContentTreeItem {
|
|
69
73
|
|
70
74
|
if (!this.viewpoint) {
|
71
75
|
this.visible = false;
|
72
|
-
this._listeners.push(
|
76
|
+
this._listeners.push(
|
77
|
+
this._app.viewpoints.added.addEventListener(resetCallback),
|
78
|
+
);
|
73
79
|
} else {
|
74
80
|
this.visible = true;
|
75
81
|
this.setPropertiesFromObject(this.viewpoint);
|
76
|
-
this._listeners.push(
|
77
|
-
|
82
|
+
this._listeners.push(
|
83
|
+
this._app.viewpoints.added.addEventListener(resetCallback),
|
84
|
+
);
|
85
|
+
this._listeners.push(
|
86
|
+
this._app.viewpoints.removed.addEventListener(resetCallback),
|
87
|
+
);
|
78
88
|
}
|
79
89
|
}
|
80
90
|
|
@@ -104,4 +114,7 @@ class ViewpointContentTreeItem extends VcsObjectContentTreeItem {
|
|
104
114
|
}
|
105
115
|
|
106
116
|
export default ViewpointContentTreeItem;
|
107
|
-
contentTreeClassRegistry.registerClass(
|
117
|
+
contentTreeClassRegistry.registerClass(
|
118
|
+
ViewpointContentTreeItem.className,
|
119
|
+
ViewpointContentTreeItem,
|
120
|
+
);
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { hasSameOrigin } from '@vcmap/core';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Download a blob
|
5
|
+
* @param {string} uri
|
6
|
+
* @param {string} fileName
|
7
|
+
* @api
|
8
|
+
* @export
|
9
|
+
*/
|
10
|
+
export function downloadURI(uri, fileName) {
|
11
|
+
const link = document.createElement('a');
|
12
|
+
link.download = fileName;
|
13
|
+
link.href = uri;
|
14
|
+
if (!hasSameOrigin(uri)) {
|
15
|
+
link.target = '_blank';
|
16
|
+
}
|
17
|
+
link.click();
|
18
|
+
link.remove();
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Download a blob
|
23
|
+
* @param {Blob} blob
|
24
|
+
* @param {string} fileName
|
25
|
+
*/
|
26
|
+
export function downloadBlob(blob, fileName) {
|
27
|
+
downloadURI(URL.createObjectURL(blob), fileName);
|
28
|
+
}
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Download a text as UTF-8
|
32
|
+
* @param {string} text
|
33
|
+
* @param {string} fileName
|
34
|
+
*/
|
35
|
+
export function downloadText(text, fileName) {
|
36
|
+
downloadURI(
|
37
|
+
`data:text/plain;charset=utf-8,${encodeURIComponent(text)}`,
|
38
|
+
fileName,
|
39
|
+
);
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Download a canvas as an image
|
44
|
+
* @param {HTMLCanvasElement} canvas
|
45
|
+
* @param {string} fileName
|
46
|
+
* @param {string=} mimeType
|
47
|
+
*/
|
48
|
+
export function downloadCanvas(canvas, fileName, mimeType) {
|
49
|
+
canvas.toBlob((blob) => {
|
50
|
+
downloadBlob(blob, fileName);
|
51
|
+
}, mimeType);
|
52
|
+
}
|
@@ -1,16 +1,9 @@
|
|
1
1
|
<template>
|
2
|
-
<BalloonComponent
|
3
|
-
v-bind="{...$attrs}"
|
4
|
-
>
|
2
|
+
<BalloonComponent v-bind="{ ...$attrs }">
|
5
3
|
<template #default="{ attrs }">
|
6
4
|
<v-list-item two-line v-if="Object.values(attrs.attributes).length > 0">
|
7
|
-
<v-list-item-avatar
|
8
|
-
|
9
|
-
size="40"
|
10
|
-
>
|
11
|
-
<v-icon size="20">
|
12
|
-
$vcsHomePoint
|
13
|
-
</v-icon>
|
5
|
+
<v-list-item-avatar tile size="40">
|
6
|
+
<v-icon size="20"> $vcsHomePoint </v-icon>
|
14
7
|
</v-list-item-avatar>
|
15
8
|
<v-list-item-content>
|
16
9
|
<v-list-item-title v-if="attrs.attributes.addressName">
|
@@ -22,15 +15,19 @@
|
|
22
15
|
<v-list-item-subtitle v-if="attrs.attributes.name">
|
23
16
|
{{ attrs.attributes.street }} {{ attrs.attributes.number }}
|
24
17
|
</v-list-item-subtitle>
|
25
|
-
<v-list-item-subtitle
|
26
|
-
|
18
|
+
<v-list-item-subtitle
|
19
|
+
>{{ attrs.attributes.zip }}
|
20
|
+
{{ attrs.attributes.city }}</v-list-item-subtitle
|
21
|
+
>
|
22
|
+
<v-list-item-subtitle>{{
|
23
|
+
attrs.attributes.country
|
24
|
+
}}</v-list-item-subtitle>
|
27
25
|
</v-list-item-content>
|
28
26
|
</v-list-item>
|
29
27
|
</template>
|
30
28
|
</BalloonComponent>
|
31
29
|
</template>
|
32
30
|
<script>
|
33
|
-
|
34
31
|
import {
|
35
32
|
VIcon,
|
36
33
|
VListItem,
|
@@ -58,6 +55,4 @@
|
|
58
55
|
};
|
59
56
|
</script>
|
60
57
|
|
61
|
-
<style>
|
62
|
-
|
63
|
-
</style>
|
58
|
+
<style></style>
|
@@ -1,21 +1,11 @@
|
|
1
1
|
<template>
|
2
|
-
<v-card
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<slot name="balloon-header" :attrs="{...$props, ...$attrs}">
|
8
|
-
<v-list-item class="px-2 pr-1 align-start">
|
9
|
-
<v-list-item-avatar
|
10
|
-
tile
|
11
|
-
size="20"
|
12
|
-
class="mr-2 align-self-start"
|
13
|
-
>
|
14
|
-
<v-icon color="primary">
|
15
|
-
$vcsInfo
|
16
|
-
</v-icon>
|
2
|
+
<v-card class="mx-auto elevation-0" max-width="400" v-if="position">
|
3
|
+
<slot name="balloon-header" :attrs="{ ...$props, ...$attrs }">
|
4
|
+
<v-list-item class="px-2 align-center">
|
5
|
+
<v-list-item-avatar tile size="16" class="mr-2">
|
6
|
+
<v-icon color="primary"> $vcsInfo </v-icon>
|
17
7
|
</v-list-item-avatar>
|
18
|
-
<v-list-item-content class="
|
8
|
+
<v-list-item-content class="pr-1">
|
19
9
|
<v-list-item-title>
|
20
10
|
<h3 class="font-weight-bold">
|
21
11
|
{{ $t(balloonTitle) }}
|
@@ -30,16 +20,24 @@
|
|
30
20
|
small
|
31
21
|
icon="mdi-close-thick"
|
32
22
|
tooltip="components.close"
|
33
|
-
class="
|
23
|
+
class="d-flex"
|
34
24
|
/>
|
35
25
|
</v-list-item>
|
36
26
|
</slot>
|
37
27
|
|
38
28
|
<v-divider />
|
39
29
|
|
40
|
-
<v-card
|
41
|
-
|
42
|
-
|
30
|
+
<v-card
|
31
|
+
class="overflow-y-auto py-2 elevation-0"
|
32
|
+
max-height="250"
|
33
|
+
color="transparent"
|
34
|
+
>
|
35
|
+
<slot :attrs="{ ...$props, ...$attrs }">
|
36
|
+
<v-list
|
37
|
+
v-for="(value, name, index) in attributes"
|
38
|
+
:key="`attribute-${index}`"
|
39
|
+
color="transparent"
|
40
|
+
>
|
43
41
|
<v-list-item class="px-2">
|
44
42
|
<v-list-item-content>
|
45
43
|
<v-list-item-title>
|
@@ -54,10 +52,10 @@
|
|
54
52
|
</v-card>
|
55
53
|
</template>
|
56
54
|
<script>
|
57
|
-
|
58
55
|
import { inject, onMounted, onUnmounted, watch } from 'vue';
|
59
56
|
import {
|
60
|
-
VCard,
|
57
|
+
VCard,
|
58
|
+
VDivider,
|
61
59
|
VIcon,
|
62
60
|
VList,
|
63
61
|
VListItem,
|
@@ -128,13 +126,24 @@
|
|
128
126
|
};
|
129
127
|
|
130
128
|
onMounted(async () => {
|
131
|
-
balloonPositionListener = await setupBalloonPositionListener(
|
129
|
+
balloonPositionListener = await setupBalloonPositionListener(
|
130
|
+
app,
|
131
|
+
windowId,
|
132
|
+
props.position,
|
133
|
+
);
|
132
134
|
});
|
133
135
|
|
134
|
-
watch(
|
135
|
-
|
136
|
-
|
137
|
-
|
136
|
+
watch(
|
137
|
+
() => props.featureId,
|
138
|
+
async () => {
|
139
|
+
destroyListener();
|
140
|
+
balloonPositionListener = await setupBalloonPositionListener(
|
141
|
+
app,
|
142
|
+
windowId,
|
143
|
+
props.position,
|
144
|
+
);
|
145
|
+
},
|
146
|
+
);
|
138
147
|
|
139
148
|
onUnmounted(() => {
|
140
149
|
destroyListener();
|
@@ -153,7 +162,7 @@
|
|
153
162
|
</script>
|
154
163
|
|
155
164
|
<style lang="scss">
|
156
|
-
@import '../styles/shades.scss';
|
165
|
+
@import '../styles/shades.scss';
|
157
166
|
|
158
167
|
.balloon {
|
159
168
|
z-index: 0 !important;
|
@@ -162,14 +171,15 @@
|
|
162
171
|
display: none;
|
163
172
|
}
|
164
173
|
.balloon:after {
|
165
|
-
content:
|
174
|
+
content: '';
|
166
175
|
position: absolute;
|
167
|
-
bottom: -
|
176
|
+
bottom: -12px;
|
168
177
|
left: 40px;
|
169
|
-
border-width:
|
178
|
+
border-width: 12px 10px 0;
|
170
179
|
border-style: solid;
|
171
180
|
display: block;
|
172
181
|
width: 0;
|
182
|
+
filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.3));
|
173
183
|
}
|
174
184
|
.theme--light .balloon:after {
|
175
185
|
border-color: map-get($shades, 'white') transparent;
|
@@ -49,11 +49,18 @@ export function applyValueMapping(attributes, mapping) {
|
|
49
49
|
})
|
50
50
|
.forEach((mappingKey) => {
|
51
51
|
if (Object.hasOwn(attributes, mappingKey)) {
|
52
|
-
attributes[mappingKey] = getMappedValue(
|
52
|
+
attributes[mappingKey] = getMappedValue(
|
53
|
+
mapping[mappingKey],
|
54
|
+
attributes[mappingKey],
|
55
|
+
);
|
53
56
|
} else {
|
54
57
|
const mappingKeys = mappingKey.split('.');
|
55
58
|
mappingKeys.reduce((obj, key, index) => {
|
56
|
-
if (
|
59
|
+
if (
|
60
|
+
obj &&
|
61
|
+
Object.hasOwn(obj, key) &&
|
62
|
+
index === mappingKeys.length - 1
|
63
|
+
) {
|
57
64
|
obj[key] = getMappedValue(mapping[mappingKey], obj[key]);
|
58
65
|
}
|
59
66
|
return obj?.[key];
|
@@ -109,7 +116,11 @@ export function applyKeyMapping(attributes, mapping) {
|
|
109
116
|
} else {
|
110
117
|
const mappingKeys = mappingKey.split('.');
|
111
118
|
mappingKeys.reduce((obj, key, index) => {
|
112
|
-
if (
|
119
|
+
if (
|
120
|
+
obj &&
|
121
|
+
Object.hasOwn(obj, key) &&
|
122
|
+
index === mappingKeys.length - 1
|
123
|
+
) {
|
113
124
|
attributes[mapping[mappingKey]] = obj[key];
|
114
125
|
delete obj[key];
|
115
126
|
}
|
@@ -152,13 +163,12 @@ export function applyAttributeFilter(attributes, keys, result = {}) {
|
|
152
163
|
}
|
153
164
|
});
|
154
165
|
|
155
|
-
Object.entries(nestedKeys)
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
});
|
166
|
+
Object.entries(nestedKeys).forEach(([parent, pKs]) => {
|
167
|
+
if (typeof attributes[parent] === 'object') {
|
168
|
+
result[parent] = {};
|
169
|
+
applyAttributeFilter(attributes[parent], pKs, result[parent]);
|
170
|
+
}
|
171
|
+
});
|
162
172
|
return result;
|
163
173
|
}
|
164
174
|
|
@@ -173,7 +183,9 @@ class AbstractFeatureInfoView extends VcsObject {
|
|
173
183
|
/**
|
174
184
|
* @type {string}
|
175
185
|
*/
|
176
|
-
static get className() {
|
186
|
+
static get className() {
|
187
|
+
return 'AbstractFeatureInfoView';
|
188
|
+
}
|
177
189
|
|
178
190
|
/** @returns {FeatureInfoViewOptions} */
|
179
191
|
static getDefaultOptions() {
|
@@ -217,18 +229,22 @@ class AbstractFeatureInfoView extends VcsObject {
|
|
217
229
|
}
|
218
230
|
|
219
231
|
/**
|
220
|
-
* window options, configured in a
|
232
|
+
* window options, configured in a module, used only internally by AbstractFeatureInfoView or subclass
|
221
233
|
* @type {WindowComponentOptions|Object}
|
222
234
|
* @readonly
|
223
235
|
*/
|
224
|
-
get window() {
|
236
|
+
get window() {
|
237
|
+
return this._window;
|
238
|
+
}
|
225
239
|
|
226
240
|
/**
|
227
241
|
* component provided by a FeatureInfoView class, passed to featureInfo via `getWindowComponentOptions()`
|
228
242
|
* @type {import("vue").Component|undefined}
|
229
243
|
* @readonly
|
230
244
|
*/
|
231
|
-
get component() {
|
245
|
+
get component() {
|
246
|
+
return this._component;
|
247
|
+
}
|
232
248
|
|
233
249
|
/**
|
234
250
|
* This method returns all relevant attributes for this view.
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import BalloonFeatureInfoView, {
|
1
|
+
import BalloonFeatureInfoView, {
|
2
|
+
extractNestedKey,
|
3
|
+
} from './balloonFeatureInfoView.js';
|
2
4
|
import AddressBalloonComponent from './AddressBalloonComponent.vue';
|
3
5
|
|
4
6
|
/**
|
@@ -20,7 +22,9 @@ class AddressBalloonFeatureInfoView extends BalloonFeatureInfoView {
|
|
20
22
|
/**
|
21
23
|
* @type {string}
|
22
24
|
*/
|
23
|
-
static get className() {
|
25
|
+
static get className() {
|
26
|
+
return 'AddressBalloonFeatureInfoView';
|
27
|
+
}
|
24
28
|
|
25
29
|
/** @returns {AddressBalloonFeatureInfoViewOptions} */
|
26
30
|
static getDefaultOptions() {
|
@@ -44,15 +48,20 @@ class AddressBalloonFeatureInfoView extends BalloonFeatureInfoView {
|
|
44
48
|
/**
|
45
49
|
* @type {string|null}
|
46
50
|
*/
|
47
|
-
this.addressName =
|
51
|
+
this.addressName =
|
52
|
+
options.addressName !== undefined
|
53
|
+
? options.addressName
|
54
|
+
: defaultOptions.addressName;
|
48
55
|
/**
|
49
56
|
* @type {string|null}
|
50
57
|
*/
|
51
|
-
this.street =
|
58
|
+
this.street =
|
59
|
+
options.street !== undefined ? options.street : defaultOptions.street;
|
52
60
|
/**
|
53
61
|
* @type {string|null}
|
54
62
|
*/
|
55
|
-
this.number =
|
63
|
+
this.number =
|
64
|
+
options.number !== undefined ? options.number : defaultOptions.number;
|
56
65
|
/**
|
57
66
|
* @type {string|null}
|
58
67
|
*/
|
@@ -64,7 +73,8 @@ class AddressBalloonFeatureInfoView extends BalloonFeatureInfoView {
|
|
64
73
|
/**
|
65
74
|
* @type {string|null}
|
66
75
|
*/
|
67
|
-
this.country =
|
76
|
+
this.country =
|
77
|
+
options.country !== undefined ? options.country : defaultOptions.country;
|
68
78
|
}
|
69
79
|
|
70
80
|
/**
|
@@ -83,7 +93,9 @@ class AddressBalloonFeatureInfoView extends BalloonFeatureInfoView {
|
|
83
93
|
}
|
84
94
|
}
|
85
95
|
};
|
86
|
-
Object.keys(AddressBalloonFeatureInfoView.getDefaultOptions()).forEach(
|
96
|
+
Object.keys(AddressBalloonFeatureInfoView.getDefaultOptions()).forEach(
|
97
|
+
(key) => applyAddressKeys(key),
|
98
|
+
);
|
87
99
|
return obj;
|
88
100
|
}
|
89
101
|
|
@@ -19,7 +19,7 @@ export function extractNestedKey(key, attrs, defaultValue = null) {
|
|
19
19
|
check(attrs, Object);
|
20
20
|
|
21
21
|
const keys = key.split('.');
|
22
|
-
const derivedValue = keys.reduce((obj, prop) =>
|
22
|
+
const derivedValue = keys.reduce((obj, prop) => obj[prop] || {}, attrs);
|
23
23
|
return typeof derivedValue === 'string' ? derivedValue : defaultValue;
|
24
24
|
}
|
25
25
|
|
@@ -74,7 +74,9 @@ class BalloonFeatureInfoView extends AbstractFeatureInfoView {
|
|
74
74
|
/**
|
75
75
|
* @type {string}
|
76
76
|
*/
|
77
|
-
static get className() {
|
77
|
+
static get className() {
|
78
|
+
return 'BalloonFeatureInfoView';
|
79
|
+
}
|
78
80
|
|
79
81
|
/**
|
80
82
|
* @param {BalloonFeatureInfoViewOptions} options
|
@@ -103,13 +105,24 @@ class BalloonFeatureInfoView extends AbstractFeatureInfoView {
|
|
103
105
|
const properties = super.getProperties(featureInfo, layer);
|
104
106
|
return {
|
105
107
|
...properties,
|
106
|
-
position:
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
108
|
+
position:
|
109
|
+
featureInfo.position ?? getPositionFromFeature(featureInfo.feature),
|
110
|
+
balloonTitle:
|
111
|
+
this.balloonTitle != null
|
112
|
+
? extractNestedKey(
|
113
|
+
this.balloonTitle,
|
114
|
+
properties.attributes,
|
115
|
+
this.balloonTitle,
|
116
|
+
)
|
117
|
+
: properties.layerProperties.title,
|
118
|
+
balloonSubtitle:
|
119
|
+
this.balloonSubtitle != null
|
120
|
+
? extractNestedKey(
|
121
|
+
this.balloonSubtitle,
|
122
|
+
properties.attributes,
|
123
|
+
this.balloonSubtitle,
|
124
|
+
)
|
125
|
+
: properties.featureId,
|
113
126
|
};
|
114
127
|
}
|
115
128
|
|