@vcmap/ui 5.0.0-rc.10
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/LICENSE.md +21 -0
- package/README.md +182 -0
- package/build/.eslintrc +6 -0
- package/build/build.js +162 -0
- package/build/buildCesium.js +19 -0
- package/build/buildHelpers.js +212 -0
- package/build/buildPreview.js +23 -0
- package/build/commonViteConfig.js +39 -0
- package/build/determineHost.js +46 -0
- package/build/generateOLLib.js +196 -0
- package/build/getPluginProxies.js +29 -0
- package/build/info/api-plugin.js +11 -0
- package/build/info/conf.json +21 -0
- package/build/info/define-plugin.js +31 -0
- package/build/info/package.json +3 -0
- package/build/info/publish.js +190 -0
- package/build/info/virtual-plugin.js +15 -0
- package/build/staging/Dockerfile +2 -0
- package/config/aerowest.config.json +388 -0
- package/config/base.config.json +991 -0
- package/config/berlin.config.json +510 -0
- package/config/dev.config.json +44 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/assets/cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/cesium_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/google_earth_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/ion-credit.png +0 -0
- package/dist/assets/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/airfield.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/airport.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/america-football.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bakery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bank.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bar.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/baseball.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/basketball.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/beer.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/building.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bus.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cafe.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/camera.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/campsite.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/car.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cesium.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/chemist.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cinema.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/circle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/city.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/college.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/commercial.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cricket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cross.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/dam.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/danger.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/disability.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/embassy.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/entrance.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/farm.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/ferry.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fuel.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/garden.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/gift.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/golf.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/grocery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/harbor.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/heart.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/heliport.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/hospital.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/industrial.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/land-use.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/laundry.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/library.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/lodging.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/logging.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/marker.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/minefield.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/monument.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/museum.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/music.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/park.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/park2.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/parking.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/pitch.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/playground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/police.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/post.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/prison.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rocket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/school.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/scooter.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/shop.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/skiing.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/soccer.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/square.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/star.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/swimming.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/telephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/tennis.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/theatre.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/toilets.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/town.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/triangle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/village.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/water.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/wetland.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/zoo.png +0 -0
- package/dist/assets/cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/pin.svg +1 -0
- package/dist/assets/cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -0
- package/dist/assets/cesium/Workers/ArcType-fc72c06c.js +1 -0
- package/dist/assets/cesium/Workers/AttributeCompression-80665726.js +1 -0
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-a655a4bc.js +1 -0
- package/dist/assets/cesium/Workers/BoundingRectangle-c3b79029.js +1 -0
- package/dist/assets/cesium/Workers/BoxGeometry-f8f9c981.js +1 -0
- package/dist/assets/cesium/Workers/Color-de06a177.js +1 -0
- package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +1 -0
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-48cdc26d.js +1 -0
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-ddc027d3.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometry-82a8cbe6.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometry-32d55454.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-b2ae188a.js +1 -0
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-f05a5a27.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-19e75e11.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeometry-7c99fc81.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-21c243df.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-6145377b.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-a01286f6.js +1 -0
- package/dist/assets/cesium/Workers/EncodedCartesian3-d9f5c4a4.js +1 -0
- package/dist/assets/cesium/Workers/FrustumGeometry-17776af8.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttribute-89a520b9.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +1 -0
- package/dist/assets/cesium/Workers/GeometryInstance-4fbf16ba.js +1 -0
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +1 -0
- package/dist/assets/cesium/Workers/GeometryPipeline-309fad76.js +1 -0
- package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +1 -0
- package/dist/assets/cesium/Workers/IntersectionTests-58aa8f80.js +1 -0
- package/dist/assets/cesium/Workers/Matrix2-47e98d76.js +1 -0
- package/dist/assets/cesium/Workers/OrientedBoundingBox-fcb5b750.js +1 -0
- package/dist/assets/cesium/Workers/Plane-3f01019d.js +1 -0
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-0b29eb16.js +1 -0
- package/dist/assets/cesium/Workers/PolygonPipeline-a934c4dd.js +1 -0
- package/dist/assets/cesium/Workers/PolylinePipeline-8095c9bc.js +1 -0
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-67d12fff.js +1 -0
- package/dist/assets/cesium/Workers/PrimitivePipeline-980e44c5.js +1 -0
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-621c6de8.js +1 -0
- package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +1 -0
- package/dist/assets/cesium/Workers/TerrainEncoding-f96552d5.js +1 -0
- package/dist/assets/cesium/Workers/Transforms-c8cb8f43.js +39 -0
- package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +1 -0
- package/dist/assets/cesium/Workers/WallGeometryLibrary-c03d8479.js +1 -0
- package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +1 -0
- package/dist/assets/cesium/Workers/WebMercatorProjection-79b3214e.js +1 -0
- package/dist/assets/cesium/Workers/_commonjsHelpers-3aae1032-26891ab7.js +1 -0
- package/dist/assets/cesium/Workers/_rollup_plugin_ignore_empty_module_placeholder-57d574d0.js +1 -0
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-dc2f4046.js +1 -0
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/dist/assets/cesium/Workers/combine-3c023bda.js +1 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createBoxGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCircleGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSphereGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +1 -0
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -0
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +3 -0
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -0
- package/dist/assets/cesium/Workers/createWallGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/decodeDraco.js +1 -0
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +1 -0
- package/dist/assets/cesium/Workers/defaultValue-81eec7ed.js +1 -0
- package/dist/assets/cesium/Workers/transcodeKTX2.js +1 -0
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -0
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -0
- package/dist/assets/cesium.eb5667.js +9105 -0
- package/dist/assets/cesium.js +1 -0
- package/dist/assets/core.216494.js +4 -0
- package/dist/assets/core.js +1 -0
- package/dist/assets/index.4ccd4433.js +1 -0
- package/dist/assets/ol.ef03b1.js +311 -0
- package/dist/assets/ol.js +1 -0
- package/dist/assets/ui.99a1a7.css +1 -0
- package/dist/assets/ui.99a1a7.js +70 -0
- package/dist/assets/ui.js +1 -0
- package/dist/assets/vue-composition-api.c5aca1.js +14 -0
- package/dist/assets/vue-composition-api.js +2 -0
- package/dist/assets/vue.762edd.js +9 -0
- package/dist/assets/vue.js +1 -0
- package/dist/assets/vuetify.401a29.css +5 -0
- package/dist/assets/vuetify.401a29.js +148 -0
- package/dist/assets/vuetify.js +2 -0
- package/dist/index.html +82 -0
- package/index.js +108 -0
- package/lib/cesium.js +1 -0
- package/lib/core.js +1 -0
- package/lib/ol.js +1 -0
- package/lib/olLib.js +844 -0
- package/lib/ui.js +1 -0
- package/lib/vue-composition-api.js +2 -0
- package/lib/vue.js +1 -0
- package/lib/vuetify.js +2 -0
- package/map.config.json +35 -0
- package/package.json +126 -0
- package/plugins/@vcmap/pluginExample/config.json +6 -0
- package/plugins/@vcmap/pluginExample/index.js +209 -0
- package/plugins/@vcmap/pluginExample/package.json +7 -0
- package/plugins/@vcmap/pluginExample/pluginExampleComponent.vue +374 -0
- package/plugins/@vcmap/pluginExample/validation.js +30 -0
- package/plugins/@vcmap/project-selector/ContextsListComponent.vue +62 -0
- package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +81 -0
- package/plugins/@vcmap/project-selector/README.md +29 -0
- package/plugins/@vcmap/project-selector/config.json +15 -0
- package/plugins/@vcmap/project-selector/de.json +7 -0
- package/plugins/@vcmap/project-selector/en.json +7 -0
- package/plugins/@vcmap/project-selector/index.js +259 -0
- package/plugins/@vcmap/project-selector/package.json +14 -0
- package/plugins/@vcmap/theme-changer/README.md +21 -0
- package/plugins/@vcmap/theme-changer/ThemeChangerComponent.vue +92 -0
- package/plugins/@vcmap/theme-changer/config.json +69 -0
- package/plugins/@vcmap/theme-changer/index.js +102 -0
- package/plugins/@vcmap/theme-changer/package.json +12 -0
- package/plugins/buttonExamples/ButtonExamples.vue +190 -0
- package/plugins/buttonExamples/index.js +41 -0
- package/plugins/categoryTest/Categories.vue +145 -0
- package/plugins/categoryTest/Category.vue +114 -0
- package/plugins/categoryTest/ItemEditor.vue +13 -0
- package/plugins/categoryTest/index.js +41 -0
- package/plugins/example/index.js +75 -0
- package/plugins/example/mySuperComponent.vue +127 -0
- package/plugins/package.json +5 -0
- package/plugins/test/allIconsComponent.vue +34 -0
- package/plugins/test/editor.vue +63 -0
- package/plugins/test/emptyComponent.vue +13 -0
- package/plugins/test/index.js +116 -0
- package/plugins/test/myCustomHeader.vue +19 -0
- package/plugins/test/toolbox-data.js +129 -0
- package/plugins/test/vcsContent.vue +23 -0
- package/plugins/test/windowManagerExample.vue +144 -0
- package/src/actions/actionHelper.js +262 -0
- package/src/actions/stateRefAction.js +59 -0
- package/src/actions/styleSelector.vue +90 -0
- package/src/application/Navbar.vue +143 -0
- package/src/application/VcsApp.vue +202 -0
- package/src/application/VcsMap.vue +38 -0
- package/src/application/VcsSettings.vue +85 -0
- package/src/application/vcsAppWrapper.vue +29 -0
- package/src/assets/logo-mobile.svg +9 -0
- package/src/assets/logo.svg +26 -0
- package/src/components/buttons/VcsActionButtonList.vue +99 -0
- package/src/components/buttons/VcsButton.vue +201 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +74 -0
- package/src/components/form-inputs-controls/VcsColorPicker.vue +81 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +46 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +38 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +97 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue +130 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +129 -0
- package/src/components/form-output/VcsFormattedNumber.vue +103 -0
- package/src/components/lists/VcsActionList.vue +100 -0
- package/src/components/lists/VcsTreeview.vue +104 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +91 -0
- package/src/components/lists/VcsTreeviewSearchbar.vue +157 -0
- package/src/components/notification/VcsBadge.vue +27 -0
- package/src/components/notification/VcsTooltip.vue +154 -0
- package/src/components/notification/validation.js +19 -0
- package/src/contentTree/LayerTree.vue +39 -0
- package/src/contentTree/contentTreeCollection.js +315 -0
- package/src/contentTree/contentTreeItem.js +457 -0
- package/src/contentTree/groupContentTreeItem.js +67 -0
- package/src/contentTree/layerContentTreeItem.js +235 -0
- package/src/contentTree/layerGroupContentTreeItem.js +154 -0
- package/src/contentTree/nodeContentTreeItem.js +37 -0
- package/src/contentTree/obliqueCollectionContentTreeItem.js +155 -0
- package/src/contentTree/subContentTreeItem.js +42 -0
- package/src/contentTree/vcsObjectContentTreeItem.js +98 -0
- package/src/contentTree/viewPointContentTreeItem.js +107 -0
- package/src/i18n/de.js +55 -0
- package/src/i18n/en.js +55 -0
- package/src/i18n/i18nCollection.js +138 -0
- package/src/icons/+all.js +359 -0
- package/src/icons/2DAreaIcon.vue +21 -0
- package/src/icons/2DDistanceIcon.vue +18 -0
- package/src/icons/3DAreaIcon.vue +21 -0
- package/src/icons/3DDistanceIcon.vue +18 -0
- package/src/icons/3DHeightIcon.vue +18 -0
- package/src/icons/AngleIcon.vue +8 -0
- package/src/icons/AssociationsIcon.vue +34 -0
- package/src/icons/AxisIcon.vue +10 -0
- package/src/icons/BoundingBoxIcon.vue +15 -0
- package/src/icons/CheckboxCheckedIcon.vue +16 -0
- package/src/icons/CheckboxIcon.vue +23 -0
- package/src/icons/CheckboxIndeterminateIcon.vue +24 -0
- package/src/icons/CircleIcon.vue +10 -0
- package/src/icons/ColorSwatchIcon.vue +17 -0
- package/src/icons/CommentIcon.vue +19 -0
- package/src/icons/CompassIcon.vue +8 -0
- package/src/icons/ComponentsIcon.vue +7 -0
- package/src/icons/ConeIcon.vue +11 -0
- package/src/icons/DimensionsHouseIcon.vue +14 -0
- package/src/icons/ElevationProfileIcon.vue +111 -0
- package/src/icons/ExportAreaIcon.vue +7 -0
- package/src/icons/ExportFlightIcon.vue +7 -0
- package/src/icons/ExportIcon.vue +8 -0
- package/src/icons/ExternalLinkIcon.vue +10 -0
- package/src/icons/EyeIcon.vue +7 -0
- package/src/icons/FastForwardIcon.vue +7 -0
- package/src/icons/FilterIcon.vue +8 -0
- package/src/icons/GlobeNatureIcon.vue +14 -0
- package/src/icons/HealthCareIndustriesIcon.vue +118 -0
- package/src/icons/HelpIcon.vue +7 -0
- package/src/icons/HomePointIcon.vue +8 -0
- package/src/icons/HospitalsIcon.vue +237 -0
- package/src/icons/HouseIcon.vue +25 -0
- package/src/icons/ImportIcon.vue +8 -0
- package/src/icons/InfoIcon.vue +10 -0
- package/src/icons/KebabIcon.vue +36 -0
- package/src/icons/LabelIcon.vue +7 -0
- package/src/icons/LayersIcon.vue +26 -0
- package/src/icons/LegendIcon.vue +65 -0
- package/src/icons/LineIcon.vue +7 -0
- package/src/icons/LinkIcon.vue +7 -0
- package/src/icons/MapIcon.vue +8 -0
- package/src/icons/MenuIcon.vue +34 -0
- package/src/icons/MinusIcon.vue +8 -0
- package/src/icons/ObjectAttributeIcon.vue +18 -0
- package/src/icons/ObjectSelectIcon.vue +8 -0
- package/src/icons/ObliqueViewIcon.vue +13 -0
- package/src/icons/PdfIcon.vue +10 -0
- package/src/icons/PedestrianIcon.vue +8 -0
- package/src/icons/PenIcon.vue +14 -0
- package/src/icons/PlayCircleIcon.vue +10 -0
- package/src/icons/PlusIcon.vue +9 -0
- package/src/icons/PoiIcon.vue +7 -0
- package/src/icons/PointSelectIcon.vue +7 -0
- package/src/icons/PolygonIcon.vue +38 -0
- package/src/icons/PresentationModeIcon.vue +7 -0
- package/src/icons/ProgressIcon.vue +24 -0
- package/src/icons/QueryIcon.vue +15 -0
- package/src/icons/RectangleIcon.vue +9 -0
- package/src/icons/ReturnIcon.vue +7 -0
- package/src/icons/RewindIcon.vue +6 -0
- package/src/icons/SearchIcon.vue +8 -0
- package/src/icons/ShadowIcon.vue +9 -0
- package/src/icons/ShapesIcon.vue +28 -0
- package/src/icons/ShareIcon.vue +22 -0
- package/src/icons/SimpleCircleFilledIcon.vue +15 -0
- package/src/icons/SimpleCircleHalfFilledIcon.vue +12 -0
- package/src/icons/SimpleCircleOutlinedIcon.vue +15 -0
- package/src/icons/SkipNextIcon.vue +7 -0
- package/src/icons/SkipPreviousIcon.vue +9 -0
- package/src/icons/SplitViewIcon.vue +19 -0
- package/src/icons/TextStyleIcon.vue +14 -0
- package/src/icons/ThreeDimensionsIcon.vue +7 -0
- package/src/icons/ToolsIcon.vue +35 -0
- package/src/icons/TouchIcon.vue +8 -0
- package/src/icons/TrashCanIcon.vue +7 -0
- package/src/icons/TriangleIcon.vue +15 -0
- package/src/icons/TwoDimensionsIcon.vue +8 -0
- package/src/icons/UploadIcon.vue +14 -0
- package/src/icons/VideoRecorderIcon.vue +14 -0
- package/src/icons/WalkingIcon.vue +7 -0
- package/src/icons/WallIcon.vue +14 -0
- package/src/init.js +38 -0
- package/src/manager/buttonManager.js +156 -0
- package/src/manager/navbarManager.js +81 -0
- package/src/manager/toolbox/ToolboxGroupComponent.vue +128 -0
- package/src/manager/toolbox/ToolboxManager.vue +157 -0
- package/src/manager/toolbox/toolboxManager.js +204 -0
- package/src/manager/window/WindowComponent.vue +140 -0
- package/src/manager/window/WindowComponentHeader.vue +53 -0
- package/src/manager/window/WindowManager.vue +126 -0
- package/src/manager/window/windowManager.js +435 -0
- package/src/navigation/mapNavCompass.vue +161 -0
- package/src/navigation/mapNavigation.vue +207 -0
- package/src/navigation/obliqueRotation.vue +48 -0
- package/src/navigation/orientationToolsButton.vue +52 -0
- package/src/navigation/overviewMap.js +615 -0
- package/src/navigation/overviewMapClickedInteraction.js +38 -0
- package/src/navigation/tiltSlider.vue +96 -0
- package/src/navigation/vcsCompass.vue +144 -0
- package/src/navigation/vcsZoomButton.vue +27 -0
- package/src/pluginHelper.js +106 -0
- package/src/setup.js +11 -0
- package/src/styles/_theming.scss +25 -0
- package/src/styles/_typography.scss +42 -0
- package/src/styles/main.scss +12 -0
- package/src/styles/utils/_all.scss +12 -0
- package/src/styles/utils/_border.scss +7 -0
- package/src/styles/utils/_cursor.scss +15 -0
- package/src/styles/utils/_display.scss +3 -0
- package/src/styles/utils/_fade-in.scss +8 -0
- package/src/styles/utils/_position.scss +38 -0
- package/src/styles/utils/_size.scss +79 -0
- package/src/styles/utils/_slide-in.scss +26 -0
- package/src/styles/utils/_spacing.scss +11 -0
- package/src/styles/utils/_text.scss +30 -0
- package/src/styles/utils/_transform.scss +11 -0
- package/src/styles/utils/_transition.scss +11 -0
- package/src/styles/utils/_z-index.scss +15 -0
- package/src/styles/variables.scss +70 -0
- package/src/styles/vcsFont.scss +5 -0
- package/src/styles/vcsGrid.scss +4 -0
- package/src/vcsUiApp.js +259 -0
- package/src/vuePlugins/i18n.js +69 -0
- package/src/vuePlugins/vuetify.js +54 -0
- package/start.js +3 -0
@@ -0,0 +1,262 @@
|
|
1
|
+
import { v4 as uuid } from 'uuid';
|
2
|
+
import { check } from '@vcsuite/check';
|
3
|
+
import { Collection, MapCollection, ViewPoint } from '@vcmap/core';
|
4
|
+
import { vcsAppSymbol } from '../pluginHelper.js';
|
5
|
+
import { getWindowPositionOptions } from '../manager/window/windowManager.js';
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @typedef {Object} ActionOptions
|
9
|
+
* @property {string} name
|
10
|
+
* @property {string} [title]
|
11
|
+
* @property {string} [icon]
|
12
|
+
*/
|
13
|
+
|
14
|
+
/**
|
15
|
+
* @param {ActionOptions} actionOptions
|
16
|
+
* @param {string} mapName
|
17
|
+
* @param {OverrideMapCollection} maps
|
18
|
+
* @returns {{action: VcsAction, destroy: Function}}
|
19
|
+
*/
|
20
|
+
export function createMapButtonAction(actionOptions, mapName, maps) {
|
21
|
+
check(actionOptions, {
|
22
|
+
name: String,
|
23
|
+
icon: [undefined, String],
|
24
|
+
title: [undefined, String],
|
25
|
+
});
|
26
|
+
check(mapName, String);
|
27
|
+
check(maps, MapCollection);
|
28
|
+
|
29
|
+
const active = maps.activeMap?.name === mapName;
|
30
|
+
const action = {
|
31
|
+
...actionOptions,
|
32
|
+
active,
|
33
|
+
callback() {
|
34
|
+
maps.setActiveMap(mapName);
|
35
|
+
},
|
36
|
+
};
|
37
|
+
const destroyListener = maps.mapActivated.addEventListener((map) => {
|
38
|
+
action.active = map.name === mapName;
|
39
|
+
});
|
40
|
+
|
41
|
+
return { action, destroy: destroyListener };
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Creates an action which will toggle the given window component (opening & closing the window). The window component must have an id set.
|
46
|
+
* @param {ActionOptions} actionOptions
|
47
|
+
* @param {WindowComponentOptions} windowComponent
|
48
|
+
* @param {WindowManager} windowManager
|
49
|
+
* @param {string|symbol} owner
|
50
|
+
* @returns {{action: VcsAction, destroy: Function}}
|
51
|
+
*/
|
52
|
+
export function createToggleAction(actionOptions, windowComponent, windowManager, owner) {
|
53
|
+
check(actionOptions, {
|
54
|
+
name: String,
|
55
|
+
icon: [undefined, String],
|
56
|
+
title: [undefined, String],
|
57
|
+
});
|
58
|
+
check(windowComponent, { id: String });
|
59
|
+
check(owner, [String, vcsAppSymbol]);
|
60
|
+
|
61
|
+
const action = {
|
62
|
+
...actionOptions,
|
63
|
+
active: windowManager.has(windowComponent.id),
|
64
|
+
callback() {
|
65
|
+
if (this.active) {
|
66
|
+
windowManager.remove(windowComponent.id);
|
67
|
+
} else {
|
68
|
+
return windowManager.add(windowComponent, owner);
|
69
|
+
}
|
70
|
+
return null;
|
71
|
+
},
|
72
|
+
};
|
73
|
+
|
74
|
+
const listeners = [
|
75
|
+
windowManager.added.addEventListener(({ id }) => {
|
76
|
+
if (id === windowComponent.id) {
|
77
|
+
action.active = true;
|
78
|
+
}
|
79
|
+
}),
|
80
|
+
windowManager.removed.addEventListener(({ id }) => {
|
81
|
+
if (id === windowComponent.id) {
|
82
|
+
action.active = false;
|
83
|
+
}
|
84
|
+
}),
|
85
|
+
];
|
86
|
+
|
87
|
+
const destroy = () => { listeners.forEach((cb) => { cb(); }); };
|
88
|
+
return { action, destroy };
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Creates an action which will toggle the overview map (opening & closing the window and activating/ deactivating the overview map).
|
93
|
+
* @param {OverviewMap} overviewMap
|
94
|
+
* @param {WindowComponentOptions} windowComponent
|
95
|
+
* @param {WindowManager} windowManager
|
96
|
+
* @returns {(function(): void)|*}
|
97
|
+
*/
|
98
|
+
export function createOverviewMapAction(overviewMap, windowComponent, windowManager) {
|
99
|
+
const { action, destroy } = createToggleAction(
|
100
|
+
{
|
101
|
+
name: 'overviewMapToggle',
|
102
|
+
icon: '$vcsMap',
|
103
|
+
title: 'navigation.overviewMapTooltip',
|
104
|
+
},
|
105
|
+
windowComponent,
|
106
|
+
windowManager,
|
107
|
+
vcsAppSymbol,
|
108
|
+
);
|
109
|
+
|
110
|
+
const listeners = [
|
111
|
+
windowManager.added.addEventListener(async ({ id }) => {
|
112
|
+
if (id === windowComponent.id) {
|
113
|
+
await overviewMap.activate();
|
114
|
+
}
|
115
|
+
}),
|
116
|
+
windowManager.removed.addEventListener(({ id }) => {
|
117
|
+
if (id === windowComponent.id) {
|
118
|
+
overviewMap.deactivate();
|
119
|
+
}
|
120
|
+
}),
|
121
|
+
];
|
122
|
+
|
123
|
+
const destroyAction = () => {
|
124
|
+
destroy();
|
125
|
+
listeners.forEach((cb) => { cb(); });
|
126
|
+
};
|
127
|
+
return { action, destroy: destroyAction };
|
128
|
+
}
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Creates a header less window which will close if anything outside of the window is clicked. The window will open
|
132
|
+
* at the clicked position (the actions position) by default, unless the window component already has a position set.
|
133
|
+
* @param {ActionOptions} actionOptions
|
134
|
+
* @param {WindowComponentOptions} modalComponent
|
135
|
+
* @param {WindowManager} windowManager
|
136
|
+
* @param {string|symbol} owner
|
137
|
+
* @returns {{action: VcsAction, destroy: Function}}
|
138
|
+
*/
|
139
|
+
export function createModalAction(actionOptions, modalComponent, windowManager, owner) {
|
140
|
+
check(actionOptions, {
|
141
|
+
name: String,
|
142
|
+
icon: [undefined, String],
|
143
|
+
title: [undefined, String],
|
144
|
+
});
|
145
|
+
check(owner, [String, vcsAppSymbol]);
|
146
|
+
|
147
|
+
const id = uuid();
|
148
|
+
|
149
|
+
const addModal = (zIndex) => {
|
150
|
+
const child = document.getElementById(id);
|
151
|
+
if (!child) {
|
152
|
+
const elem = document.createElement('div');
|
153
|
+
elem.id = id;
|
154
|
+
Object.assign(elem.style, {
|
155
|
+
position: 'absolute',
|
156
|
+
zIndex,
|
157
|
+
top: 0,
|
158
|
+
bottom: 0,
|
159
|
+
left: 0,
|
160
|
+
right: 0,
|
161
|
+
});
|
162
|
+
elem.onclick = () => { windowManager.remove(id); };
|
163
|
+
document.body.appendChild(elem);
|
164
|
+
}
|
165
|
+
};
|
166
|
+
|
167
|
+
const removeModal = () => {
|
168
|
+
const child = document.getElementById(id);
|
169
|
+
if (child) {
|
170
|
+
child.parentElement.removeChild(child);
|
171
|
+
}
|
172
|
+
};
|
173
|
+
|
174
|
+
const action = {
|
175
|
+
...actionOptions,
|
176
|
+
active: false,
|
177
|
+
callback(event) {
|
178
|
+
if (!this.active) {
|
179
|
+
this.active = true;
|
180
|
+
const { left, top, width } = event.currentTarget.getBoundingClientRect();
|
181
|
+
const position = getWindowPositionOptions(left + width, top);
|
182
|
+
const state = { ...modalComponent?.state, hideHeader: true };
|
183
|
+
windowManager.add({ position, ...modalComponent, id, state }, owner);
|
184
|
+
addModal(windowManager.componentIds.length - 2);
|
185
|
+
} else {
|
186
|
+
this.active = false;
|
187
|
+
windowManager.remove(id);
|
188
|
+
}
|
189
|
+
return null;
|
190
|
+
},
|
191
|
+
};
|
192
|
+
|
193
|
+
const listeners = [
|
194
|
+
windowManager.removed.addEventListener(({ id: windowId }) => {
|
195
|
+
if (windowId === id) {
|
196
|
+
action.active = false;
|
197
|
+
removeModal();
|
198
|
+
}
|
199
|
+
}),
|
200
|
+
removeModal,
|
201
|
+
];
|
202
|
+
|
203
|
+
const destroy = () => { listeners.forEach((cb) => { cb(); }); };
|
204
|
+
return { action, destroy };
|
205
|
+
}
|
206
|
+
|
207
|
+
/**
|
208
|
+
* Creates an action which opens a given link in a new tab
|
209
|
+
* @param {ActionOptions} actionOptions
|
210
|
+
* @param {string} url
|
211
|
+
* @returns {VcsAction}
|
212
|
+
*/
|
213
|
+
export function createLinkAction(actionOptions, url) {
|
214
|
+
check(actionOptions, {
|
215
|
+
name: String,
|
216
|
+
icon: [undefined, String],
|
217
|
+
title: [undefined, String],
|
218
|
+
});
|
219
|
+
check(url, String);
|
220
|
+
|
221
|
+
return {
|
222
|
+
...actionOptions,
|
223
|
+
callback() {
|
224
|
+
const link = document.createElement('a');
|
225
|
+
link.href = url;
|
226
|
+
link.target = '_blank';
|
227
|
+
link.click();
|
228
|
+
},
|
229
|
+
};
|
230
|
+
}
|
231
|
+
|
232
|
+
/**
|
233
|
+
* @param {ActionOptions} actionOptions
|
234
|
+
* @param {string|import("@vcmap/core").ViewPoint} viewpoint
|
235
|
+
* @param {import("@vcmap/core").Collection<import("@vcmap/core").ViewPoint>} viewpointCollection
|
236
|
+
* @param {import("@vcmap/core").MapCollection} mapCollection
|
237
|
+
* @returns {VcsAction}
|
238
|
+
*/
|
239
|
+
export function createGoToViewpointAction(actionOptions, viewpoint, viewpointCollection, mapCollection) {
|
240
|
+
check(actionOptions, {
|
241
|
+
name: String,
|
242
|
+
icon: [undefined, String],
|
243
|
+
title: [undefined, String],
|
244
|
+
});
|
245
|
+
check(viewpoint, [ViewPoint, String]);
|
246
|
+
check(viewpointCollection, Collection);
|
247
|
+
check(mapCollection, MapCollection);
|
248
|
+
|
249
|
+
return {
|
250
|
+
title: 'content.viewpointAction.title',
|
251
|
+
...actionOptions,
|
252
|
+
async callback() {
|
253
|
+
let viewpointItem = viewpoint;
|
254
|
+
if (typeof viewpointItem === 'string') {
|
255
|
+
viewpointItem = viewpointCollection.getByKey(viewpoint);
|
256
|
+
}
|
257
|
+
if (viewpointItem) {
|
258
|
+
await mapCollection.activeMap.gotoViewPoint(viewpointItem);
|
259
|
+
}
|
260
|
+
},
|
261
|
+
};
|
262
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { watch } from '@vue/composition-api';
|
2
|
+
import { check } from '@vcsuite/check';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @enum {number}
|
6
|
+
*/
|
7
|
+
export const StateActionState = {
|
8
|
+
NONE: 0,
|
9
|
+
INACTIVE: 1,
|
10
|
+
LOADING: 2,
|
11
|
+
ACTIVE: 3,
|
12
|
+
INDETERMINATE: 4,
|
13
|
+
};
|
14
|
+
|
15
|
+
const stateIconMap = {
|
16
|
+
[StateActionState.INACTIVE]: '$vcsCheckbox',
|
17
|
+
[StateActionState.ACTIVE]: '$vcsCheckboxChecked',
|
18
|
+
[StateActionState.INDETERMINATE]: '$vcsCheckboxIndeterminate',
|
19
|
+
[StateActionState.LOADING]: '$vcsProgress',
|
20
|
+
};
|
21
|
+
|
22
|
+
const stateI18nMap = {
|
23
|
+
[StateActionState.INACTIVE]: 'content.stateAction.titleInactive',
|
24
|
+
[StateActionState.ACTIVE]: 'content.stateAction.titleActive',
|
25
|
+
[StateActionState.INDETERMINATE]: 'content.stateAction.titleIndeterminate',
|
26
|
+
[StateActionState.LOADING]: 'content.stateAction.titleLoading',
|
27
|
+
};
|
28
|
+
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Creates an action
|
32
|
+
* @param {string} name
|
33
|
+
* @param {import("@vue/composition-api").Ref<StateActionState>} stateRef
|
34
|
+
* @param {function():void} callback
|
35
|
+
* @returns {{ action: VcsAction, destroy: function():void }}
|
36
|
+
*/
|
37
|
+
export function createStateRefAction(name, stateRef, callback) {
|
38
|
+
check(name, String);
|
39
|
+
check(stateRef?.value, Object.values(StateActionState));
|
40
|
+
check(callback, Function);
|
41
|
+
|
42
|
+
const currentState = stateRef.value;
|
43
|
+
const action = {
|
44
|
+
name,
|
45
|
+
title: stateI18nMap[currentState],
|
46
|
+
icon: stateIconMap[currentState],
|
47
|
+
callback,
|
48
|
+
};
|
49
|
+
|
50
|
+
const destroy = watch(stateRef, () => {
|
51
|
+
action.icon = stateIconMap[stateRef.value];
|
52
|
+
action.title = stateI18nMap[stateRef.value];
|
53
|
+
});
|
54
|
+
|
55
|
+
return {
|
56
|
+
action,
|
57
|
+
destroy,
|
58
|
+
};
|
59
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet v-if="items" class="pa-2">
|
3
|
+
<VcsSelect :items="items" v-model="currentStyle" />
|
4
|
+
<v-list v-if="currentStyleLegend.length > 0">
|
5
|
+
<v-list-item
|
6
|
+
v-for="(entry, index) in currentStyleLegend"
|
7
|
+
:key="`style-legend-${index}`"
|
8
|
+
dense
|
9
|
+
>
|
10
|
+
<v-list-item-icon>
|
11
|
+
<v-chip :color="entry.color" />
|
12
|
+
</v-list-item-icon>
|
13
|
+
<v-list-item-content>
|
14
|
+
{{ entry.title }}
|
15
|
+
</v-list-item-content>
|
16
|
+
</v-list-item>
|
17
|
+
</v-list>
|
18
|
+
</v-sheet>
|
19
|
+
</template>
|
20
|
+
|
21
|
+
<script>
|
22
|
+
import { computed, inject, onUnmounted, ref } from '@vue/composition-api';
|
23
|
+
import VcsSelect from '../components/form-inputs-controls/VcsSelect.vue';
|
24
|
+
|
25
|
+
export default {
|
26
|
+
name: 'StyleSelector',
|
27
|
+
components: {
|
28
|
+
VcsSelect,
|
29
|
+
},
|
30
|
+
props: {
|
31
|
+
availableStyles: {
|
32
|
+
type: Array,
|
33
|
+
default: () => [],
|
34
|
+
},
|
35
|
+
layerName: {
|
36
|
+
type: String,
|
37
|
+
required: true,
|
38
|
+
},
|
39
|
+
},
|
40
|
+
setup({ layerName, availableStyles }) {
|
41
|
+
/** @type {VcsApp} */
|
42
|
+
const app = inject('vcsApp');
|
43
|
+
/** @type {import("@vcmap/core").FeatureLayer} */
|
44
|
+
const layer = app.layers.getByKey(layerName);
|
45
|
+
const currentStyleName = ref(layer.style.name);
|
46
|
+
const currentStyleLegend = ref([]);
|
47
|
+
const defaultStyle = layer.defaultStyle.name;
|
48
|
+
|
49
|
+
function setStyle(styleItem) {
|
50
|
+
currentStyleName.value = layer.style.name;
|
51
|
+
if (styleItem.legend) {
|
52
|
+
currentStyleLegend.value = styleItem.legend;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
setStyle(layer.style);
|
56
|
+
// TODO error handling if layer is missing or not a feature layer
|
57
|
+
const styleChangedListener = layer.styleChanged.addEventListener(setStyle);
|
58
|
+
onUnmounted(() => {
|
59
|
+
styleChangedListener();
|
60
|
+
});
|
61
|
+
|
62
|
+
const currentStyle = computed({
|
63
|
+
get() { return currentStyleName.value; },
|
64
|
+
set(styleName) {
|
65
|
+
const style = styleName === defaultStyle ?
|
66
|
+
layer.defaultStyle :
|
67
|
+
app.styles.getByKey(styleName);
|
68
|
+
layer.setStyle(style);
|
69
|
+
},
|
70
|
+
});
|
71
|
+
|
72
|
+
const items = computed(() => {
|
73
|
+
return [
|
74
|
+
{ text: 'Default', value: defaultStyle },
|
75
|
+
...availableStyles.map(s => ({ text: s, value: s })),
|
76
|
+
];
|
77
|
+
});
|
78
|
+
|
79
|
+
return {
|
80
|
+
currentStyle,
|
81
|
+
currentStyleLegend,
|
82
|
+
items,
|
83
|
+
};
|
84
|
+
},
|
85
|
+
};
|
86
|
+
</script>
|
87
|
+
|
88
|
+
<style scoped>
|
89
|
+
|
90
|
+
</style>
|
@@ -0,0 +1,143 @@
|
|
1
|
+
<template>
|
2
|
+
<v-toolbar
|
3
|
+
absolute
|
4
|
+
dense
|
5
|
+
elevation="0"
|
6
|
+
:height="$vuetify.breakpoint.xs ? '56px' : '48px'"
|
7
|
+
:color="'var(--v-basic-base)'"
|
8
|
+
:bottom="$vuetify.breakpoint.xs ? 'bottom' : undefined"
|
9
|
+
width="100%"
|
10
|
+
>
|
11
|
+
<v-container fluid class="pa-0">
|
12
|
+
<v-row no-gutters>
|
13
|
+
<v-col>
|
14
|
+
<v-toolbar-items>
|
15
|
+
<div class="d-flex align-center">
|
16
|
+
<VcsActionButtonList
|
17
|
+
:actions="mapActions"
|
18
|
+
:overflow-count="3"
|
19
|
+
large
|
20
|
+
/>
|
21
|
+
<v-divider
|
22
|
+
v-if="mapActions.length > 0 && (contentActions.length > 0 || toolActions.length > 0)"
|
23
|
+
class="mx-2"
|
24
|
+
vertical
|
25
|
+
inset
|
26
|
+
/>
|
27
|
+
<VcsActionButtonList
|
28
|
+
:actions="contentActions"
|
29
|
+
:overflow-count="$vuetify.breakpoint.xs ? 2 : 3"
|
30
|
+
large
|
31
|
+
/>
|
32
|
+
<v-divider
|
33
|
+
v-if="contentActions.length > 0 && toolActions.length > 0"
|
34
|
+
class="mx-2"
|
35
|
+
vertical
|
36
|
+
inset
|
37
|
+
/>
|
38
|
+
<VcsActionButtonList
|
39
|
+
:actions="toolActions"
|
40
|
+
v-if="$vuetify.breakpoint.mdAndUp"
|
41
|
+
large
|
42
|
+
/>
|
43
|
+
</div>
|
44
|
+
</v-toolbar-items>
|
45
|
+
</v-col>
|
46
|
+
<v-col class="align-center d-flex justify-center">
|
47
|
+
<div v-if="$vuetify.breakpoint.mdAndUp" class="company-logo" />
|
48
|
+
</v-col>
|
49
|
+
<v-col class="align-content-end d-flex justify-end">
|
50
|
+
<v-toolbar-items v-if="$vuetify.breakpoint.mdAndUp">
|
51
|
+
<div class="d-flex align-center">
|
52
|
+
<VcsActionButtonList
|
53
|
+
:actions="projectActions"
|
54
|
+
large
|
55
|
+
/>
|
56
|
+
<v-divider
|
57
|
+
v-if="projectActions.length > 0 && menuActions.length > 0"
|
58
|
+
vertical
|
59
|
+
inset
|
60
|
+
class="mx-2"
|
61
|
+
/>
|
62
|
+
<v-menu
|
63
|
+
offset-y
|
64
|
+
v-if="shareActions.length > 0"
|
65
|
+
>
|
66
|
+
<template #activator="{ on, attrs }">
|
67
|
+
<VcsButton
|
68
|
+
v-bind="attrs"
|
69
|
+
v-on="on"
|
70
|
+
large
|
71
|
+
tooltip="Share current view of the map."
|
72
|
+
icon="$vcsShare"
|
73
|
+
/>
|
74
|
+
</template>
|
75
|
+
<VcsActionList
|
76
|
+
:actions="shareActions"
|
77
|
+
tooltip-position="left"
|
78
|
+
:show-icon="true"
|
79
|
+
/>
|
80
|
+
</v-menu>
|
81
|
+
<v-menu
|
82
|
+
offset-y
|
83
|
+
v-if="menuActions.length > 0"
|
84
|
+
>
|
85
|
+
<template #activator="{ on, attrs }">
|
86
|
+
<VcsButton
|
87
|
+
v-bind="attrs"
|
88
|
+
v-on="on"
|
89
|
+
large
|
90
|
+
tooltip="navbar.menu.tooltip"
|
91
|
+
icon="$vcsMenu"
|
92
|
+
/>
|
93
|
+
</template>
|
94
|
+
<VcsActionList
|
95
|
+
:actions="menuActions"
|
96
|
+
tooltip-position="left"
|
97
|
+
:show-icon="true"
|
98
|
+
/>
|
99
|
+
</v-menu>
|
100
|
+
</div>
|
101
|
+
</v-toolbar-items>
|
102
|
+
</v-col>
|
103
|
+
</v-row>
|
104
|
+
</v-container>
|
105
|
+
</v-toolbar>
|
106
|
+
</template>
|
107
|
+
|
108
|
+
<style lang="scss" scoped>
|
109
|
+
.v-toolbar__items > div{
|
110
|
+
gap: 8px;
|
111
|
+
}
|
112
|
+
</style>
|
113
|
+
|
114
|
+
<script>
|
115
|
+
import { inject, ref, computed } from '@vue/composition-api';
|
116
|
+
import { ButtonLocation, getActionsByLocation } from '../manager/navbarManager.js';
|
117
|
+
import VcsActionButtonList from '../components/buttons/VcsActionButtonList.vue';
|
118
|
+
import VcsActionList from '../components/lists/VcsActionList.vue';
|
119
|
+
import VcsButton from '../components/buttons/VcsButton.vue';
|
120
|
+
|
121
|
+
export default {
|
122
|
+
name: 'VcsNavbar',
|
123
|
+
components: { VcsActionButtonList, VcsActionList, VcsButton },
|
124
|
+
setup() {
|
125
|
+
const app = inject('vcsApp');
|
126
|
+
|
127
|
+
const navbarButtonIds = ref(app.navbarManager.componentIds);
|
128
|
+
const buttonComponents = computed(() => navbarButtonIds.value.map(id => app.navbarManager.get(id)));
|
129
|
+
const getActions = location => computed(
|
130
|
+
() => getActionsByLocation(buttonComponents.value, location, [...app.plugins].map(p => p.name)),
|
131
|
+
);
|
132
|
+
|
133
|
+
return {
|
134
|
+
mapActions: getActions(ButtonLocation.MAP),
|
135
|
+
contentActions: getActions(ButtonLocation.CONTENT),
|
136
|
+
toolActions: getActions(ButtonLocation.TOOL),
|
137
|
+
projectActions: getActions(ButtonLocation.PROJECT),
|
138
|
+
shareActions: getActions(ButtonLocation.SHARE),
|
139
|
+
menuActions: getActions(ButtonLocation.MENU),
|
140
|
+
};
|
141
|
+
},
|
142
|
+
};
|
143
|
+
</script>
|