@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,235 @@
|
|
1
|
+
import { ViewPoint } from '@vcmap/core';
|
2
|
+
import { reactive } from '@vue/composition-api';
|
3
|
+
import { StateActionState } from '../actions/stateRefAction.js';
|
4
|
+
import { createGoToViewpointAction, createModalAction } from '../actions/actionHelper.js';
|
5
|
+
import component from '../actions/styleSelector.vue';
|
6
|
+
import VcsObjectContentTreeItem from './vcsObjectContentTreeItem.js';
|
7
|
+
import { vcsAppSymbol } from '../pluginHelper.js';
|
8
|
+
import { contentTreeClassRegistry } from './contentTreeItem.js';
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @typedef {ContentTreeItemOptions} LayerContentTreeItemOptions
|
12
|
+
* @property {string} layerName
|
13
|
+
*/
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @typedef {VcsObjectContentTreeItemProperties} LayerContentTreeItemProperties
|
17
|
+
* @property {Array<string>} [availableStyles]
|
18
|
+
* @property {string} [defaultViewpoint] - the name the default viewpoint
|
19
|
+
*/
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @param {ContentTreeItem} item
|
23
|
+
* @param {VcsUiApp} app
|
24
|
+
* @param {string=} viewpoint
|
25
|
+
*/
|
26
|
+
export function setViewpointAction(item, app, viewpoint) {
|
27
|
+
const name = 'ViewPointAction';
|
28
|
+
item.removeAction(name);
|
29
|
+
|
30
|
+
if (viewpoint) {
|
31
|
+
const action = createGoToViewpointAction(
|
32
|
+
{
|
33
|
+
name,
|
34
|
+
icon: 'mdi-crosshairs-gps',
|
35
|
+
},
|
36
|
+
viewpoint,
|
37
|
+
app.viewPoints,
|
38
|
+
app.maps,
|
39
|
+
);
|
40
|
+
item.addAction(action, 2);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* @param {import("@vcmap/core").Layer} layer
|
46
|
+
* @returns {StateActionState}
|
47
|
+
*/
|
48
|
+
export function getStateFromLayer(layer) {
|
49
|
+
if (layer.active) {
|
50
|
+
return StateActionState.ACTIVE;
|
51
|
+
} else if (layer.loading) {
|
52
|
+
return StateActionState.LOADING;
|
53
|
+
}
|
54
|
+
return StateActionState.INACTIVE;
|
55
|
+
}
|
56
|
+
|
57
|
+
/**
|
58
|
+
* A layer item. Activates/deactivates the layer when clicked.
|
59
|
+
* @class
|
60
|
+
* @extends {VcsObjectContentTreeItem<LayerContentTreeItemProperties>}
|
61
|
+
*/
|
62
|
+
class LayerContentTreeItem extends VcsObjectContentTreeItem {
|
63
|
+
/**
|
64
|
+
* @todo this has to be refactored, just so we can read the config as is
|
65
|
+
* @returns {string}
|
66
|
+
*/
|
67
|
+
static get className() { return 'LayerContentTreeItem'; }
|
68
|
+
|
69
|
+
/**
|
70
|
+
* @param {LayerContentTreeItemOptions} options
|
71
|
+
* @param {VcsUiApp} app
|
72
|
+
*/
|
73
|
+
constructor(options, app) {
|
74
|
+
super(options, app);
|
75
|
+
this.state = StateActionState.INACTIVE;
|
76
|
+
|
77
|
+
/**
|
78
|
+
* @type {string}
|
79
|
+
* @private
|
80
|
+
*/
|
81
|
+
this._layerName = options.layerName;
|
82
|
+
|
83
|
+
/**
|
84
|
+
* @type {Array<Function>}
|
85
|
+
* @private
|
86
|
+
*/
|
87
|
+
this._listeners = [];
|
88
|
+
|
89
|
+
this._setup();
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* @type {import("@vcmap/core").Layer}
|
94
|
+
* @private
|
95
|
+
*/
|
96
|
+
get _layer() {
|
97
|
+
return this._app.layers.getByKey(this._layerName);
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* @param {Array<string>=} availableStyles
|
102
|
+
* @private
|
103
|
+
*/
|
104
|
+
_setStyleAction(availableStyles) {
|
105
|
+
const name = 'StyleSelector';
|
106
|
+
this.removeAction(name);
|
107
|
+
if (Array.isArray(availableStyles)) {
|
108
|
+
const { action, destroy } = createModalAction(
|
109
|
+
{
|
110
|
+
name,
|
111
|
+
icon: '$vcsColorSwatch',
|
112
|
+
title: 'content.styleAction.title',
|
113
|
+
},
|
114
|
+
{
|
115
|
+
component,
|
116
|
+
props: reactive({
|
117
|
+
availableStyles: availableStyles.slice(),
|
118
|
+
layerName: this._layerName,
|
119
|
+
}),
|
120
|
+
},
|
121
|
+
this._app.windowManager,
|
122
|
+
vcsAppSymbol,
|
123
|
+
);
|
124
|
+
this.addAction(action, 4);
|
125
|
+
this._listeners.push(destroy);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
/**
|
130
|
+
* @private
|
131
|
+
*/
|
132
|
+
_setLayerExtentAction() {
|
133
|
+
const name = 'LayerExtentAction';
|
134
|
+
this.removeAction(name);
|
135
|
+
if (this._layer) {
|
136
|
+
const { extent } = this._layer.toJSON();
|
137
|
+
if (extent) {
|
138
|
+
const viewpoint = ViewPoint.createViewPointFromExtent(this._layer.extent);
|
139
|
+
const action = createGoToViewpointAction(
|
140
|
+
{
|
141
|
+
name: 'LayerExtentAction',
|
142
|
+
title: 'content.layerExtentAction.title',
|
143
|
+
},
|
144
|
+
viewpoint,
|
145
|
+
this._app.viewPoints,
|
146
|
+
this._app.maps,
|
147
|
+
);
|
148
|
+
this.addAction(action, 8);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
/**
|
154
|
+
* @param {LayerContentTreeItemProperties} properties
|
155
|
+
* @protected
|
156
|
+
*/
|
157
|
+
_setProperties(properties) {
|
158
|
+
super._setProperties(properties);
|
159
|
+
|
160
|
+
this._setStyleAction(properties.availableStyles);
|
161
|
+
setViewpointAction(this, this._app, properties.defaultViewpoint);
|
162
|
+
}
|
163
|
+
|
164
|
+
/**
|
165
|
+
* @private
|
166
|
+
*/
|
167
|
+
_clearListeners() {
|
168
|
+
this._listeners.forEach((cb) => { cb(); });
|
169
|
+
this._listeners.splice(0);
|
170
|
+
}
|
171
|
+
|
172
|
+
/**
|
173
|
+
* @private
|
174
|
+
*/
|
175
|
+
_setup() {
|
176
|
+
this._clearListeners();
|
177
|
+
/**
|
178
|
+
* Called when a layer is added or removed to reset the item if needed
|
179
|
+
* @param {import("@vcmap/core").Layer} layer
|
180
|
+
*/
|
181
|
+
const resetHandler = (layer) => {
|
182
|
+
if (layer.name === this._layerName) {
|
183
|
+
this._setup();
|
184
|
+
}
|
185
|
+
};
|
186
|
+
|
187
|
+
if (!this._layer) {
|
188
|
+
this.visible = false;
|
189
|
+
this._listeners.push(this._app.layers.added.addEventListener(resetHandler));
|
190
|
+
} else {
|
191
|
+
this.visible = this._layer.isSupported(this._app.maps.activeMap);
|
192
|
+
this.state = getStateFromLayer(this._layer);
|
193
|
+
this._setLayerExtentAction();
|
194
|
+
this.setPropertiesFromObject(this._layer);
|
195
|
+
|
196
|
+
this._listeners.push(this._app.layers.removed.addEventListener(resetHandler));
|
197
|
+
this._listeners.push(this._app.layers.added.addEventListener(resetHandler));
|
198
|
+
|
199
|
+
this._listeners.push(this._layer.stateChanged.addEventListener(() => {
|
200
|
+
this.state = getStateFromLayer(this._layer);
|
201
|
+
}));
|
202
|
+
|
203
|
+
this._listeners.push(this._app.maps.mapActivated.addEventListener(() => {
|
204
|
+
this.visible = this._layer.isSupported(this._app.maps.activeMap);
|
205
|
+
}));
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
async clicked() {
|
210
|
+
if (this._layer) {
|
211
|
+
if (this.state === StateActionState.INACTIVE) {
|
212
|
+
await this._layer.activate();
|
213
|
+
} else {
|
214
|
+
this._layer.deactivate();
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
/**
|
220
|
+
* @returns {LayerContentTreeItemOptions}
|
221
|
+
*/
|
222
|
+
toJSON() {
|
223
|
+
const config = super.toJSON();
|
224
|
+
config.layerName = this._layerName;
|
225
|
+
return config;
|
226
|
+
}
|
227
|
+
|
228
|
+
destroy() {
|
229
|
+
super.destroy();
|
230
|
+
this._clearListeners();
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
export default LayerContentTreeItem;
|
235
|
+
contentTreeClassRegistry.registerClass(LayerContentTreeItem.className, LayerContentTreeItem);
|
@@ -0,0 +1,154 @@
|
|
1
|
+
import ContentTreeItem, { contentTreeClassRegistry } from './contentTreeItem.js';
|
2
|
+
import { getStateFromLayer, setViewpointAction } from './layerContentTreeItem.js';
|
3
|
+
import { StateActionState } from '../actions/stateRefAction.js';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @typedef {ContentTreeItemOptions} LayerGroupContentTreeItemOptions
|
7
|
+
* @property {Array<string>} layerNames
|
8
|
+
* @property {string} [defaultViewpoint] - the name of an optional default viewpoint
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @param {Array<import("@vcmap/core").Layer>} layers
|
13
|
+
* @returns {StateActionState}
|
14
|
+
*/
|
15
|
+
function getStateFromLayers(layers) {
|
16
|
+
const states = layers.map(l => getStateFromLayer(l));
|
17
|
+
if (states.some(s => s === StateActionState.LOADING)) {
|
18
|
+
return StateActionState.LOADING;
|
19
|
+
}
|
20
|
+
|
21
|
+
if (states.every(s => s === StateActionState.INACTIVE)) {
|
22
|
+
return StateActionState.INACTIVE;
|
23
|
+
}
|
24
|
+
|
25
|
+
if (states.every(s => s === StateActionState.ACTIVE)) {
|
26
|
+
return StateActionState.ACTIVE;
|
27
|
+
}
|
28
|
+
return StateActionState.INDETERMINATE;
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* A layer group. When clicked will try to activate all layers in the group or deactivate all layer in the group if all are active.
|
33
|
+
* @class
|
34
|
+
* @extends {ContentTreeItem}
|
35
|
+
*/
|
36
|
+
class LayerGroupContentTreeItem extends ContentTreeItem {
|
37
|
+
/**
|
38
|
+
* @readonly
|
39
|
+
* @type {string}
|
40
|
+
*/
|
41
|
+
static get className() { return 'LayerGroupContentTreeItem'; }
|
42
|
+
|
43
|
+
/**
|
44
|
+
* @param {LayerGroupContentTreeItemOptions} options
|
45
|
+
* @param {VcsUiApp} app
|
46
|
+
*/
|
47
|
+
constructor(options, app) {
|
48
|
+
super(options, app);
|
49
|
+
this.state = StateActionState.INACTIVE;
|
50
|
+
/**
|
51
|
+
* @type {Array<string>}
|
52
|
+
* @private
|
53
|
+
*/
|
54
|
+
this._layerNames = Array.isArray(options.layerNames) ?
|
55
|
+
options.layerNames.slice() :
|
56
|
+
[];
|
57
|
+
|
58
|
+
/**
|
59
|
+
* @type {Array<function():void>}
|
60
|
+
* @private
|
61
|
+
*/
|
62
|
+
this._listeners = [];
|
63
|
+
|
64
|
+
/**
|
65
|
+
* @type {string|null}
|
66
|
+
* @private
|
67
|
+
*/
|
68
|
+
this._defaultViewpoint = options.defaultViewpoint || null;
|
69
|
+
|
70
|
+
this._setup();
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* @type {Array<import("@vcmap/core").Layer>}
|
75
|
+
* @private
|
76
|
+
*/
|
77
|
+
get _layers() {
|
78
|
+
return this._layerNames
|
79
|
+
.map(n => this._app.layers.getByKey(n))
|
80
|
+
.filter(l => l);
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* @private
|
85
|
+
*/
|
86
|
+
_clearListeners() {
|
87
|
+
this._listeners.forEach((cb) => { cb(); });
|
88
|
+
this._listeners.splice(0);
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* @private
|
93
|
+
*/
|
94
|
+
_setup() {
|
95
|
+
this._clearListeners();
|
96
|
+
/**
|
97
|
+
* Called when a layer is added or removed to reset the item if needed
|
98
|
+
* @param {import("@vcmap/core").Layer} layer
|
99
|
+
*/
|
100
|
+
const resetHandler = (layer) => {
|
101
|
+
if (this._layerNames.includes(layer.name)) {
|
102
|
+
this._setup();
|
103
|
+
}
|
104
|
+
};
|
105
|
+
const layers = this._layers;
|
106
|
+
|
107
|
+
this.visible = layers.some(l => l.isSupported(this._app.maps.activeMap));
|
108
|
+
this.state = getStateFromLayers(layers);
|
109
|
+
setViewpointAction(this, this._app, this._defaultViewpoint);
|
110
|
+
|
111
|
+
this._listeners.push(this._app.layers.removed.addEventListener(resetHandler));
|
112
|
+
this._listeners.push(this._app.layers.added.addEventListener(resetHandler));
|
113
|
+
|
114
|
+
layers.forEach((layer) => {
|
115
|
+
this._listeners.push(layer.stateChanged.addEventListener(() => {
|
116
|
+
this.state = getStateFromLayers(layers);
|
117
|
+
}));
|
118
|
+
});
|
119
|
+
|
120
|
+
this._listeners.push(this._app.maps.mapActivated.addEventListener(() => {
|
121
|
+
this.visible = !!layers.find(l => l.isSupported(this._app.maps.activeMap));
|
122
|
+
}));
|
123
|
+
}
|
124
|
+
|
125
|
+
async clicked() {
|
126
|
+
const layers = this._layers;
|
127
|
+
const activate = layers.some(l => !(l.active || l.loading));
|
128
|
+
if (activate) {
|
129
|
+
await Promise.all(layers.map(l => l.activate()));
|
130
|
+
} else {
|
131
|
+
layers.forEach((l) => { l.deactivate(); });
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
/**
|
136
|
+
* @returns {LayerGroupContentTreeItemOptions}
|
137
|
+
*/
|
138
|
+
toJSON() {
|
139
|
+
const config = super.toJSON();
|
140
|
+
config.layerNames = this._layerNames.slice();
|
141
|
+
if (this._defaultViewpoint) {
|
142
|
+
config.defaultViewpoint = this._defaultViewpoint;
|
143
|
+
}
|
144
|
+
return config;
|
145
|
+
}
|
146
|
+
|
147
|
+
destroy() {
|
148
|
+
this._clearListeners();
|
149
|
+
super.destroy();
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
export default LayerGroupContentTreeItem;
|
154
|
+
contentTreeClassRegistry.registerClass(LayerGroupContentTreeItem.className, LayerGroupContentTreeItem);
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { watch } from '@vue/composition-api';
|
2
|
+
import ContentTreeItem, { contentTreeClassRegistry } from './contentTreeItem.js';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* A group item which has _no click handler_
|
6
|
+
* @class
|
7
|
+
* @extends {ContentTreeItem}
|
8
|
+
*/
|
9
|
+
class NodeContentTreeItem extends ContentTreeItem {
|
10
|
+
/**
|
11
|
+
* @returns {string}
|
12
|
+
*/
|
13
|
+
static get className() { return 'NodeContentTreeItem'; }
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @param {ContentTreeItemOptions} options
|
17
|
+
* @param {VcsUiApp} app
|
18
|
+
*/
|
19
|
+
constructor(options, app) {
|
20
|
+
super(options, app);
|
21
|
+
|
22
|
+
this.clickable = false;
|
23
|
+
|
24
|
+
this._childWatcher = watch(this._children, () => {
|
25
|
+
const children = this._children.value;
|
26
|
+
this.visible = children.some(c => c.visible);
|
27
|
+
}, { deep: true });
|
28
|
+
}
|
29
|
+
|
30
|
+
destroy() {
|
31
|
+
this._childWatcher();
|
32
|
+
super.destroy();
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
export default NodeContentTreeItem;
|
37
|
+
contentTreeClassRegistry.registerClass(NodeContentTreeItem.className, NodeContentTreeItem);
|
@@ -0,0 +1,155 @@
|
|
1
|
+
import { ObliqueMap, DefaultObliqueCollection } from '@vcmap/core';
|
2
|
+
import VcsObjectContentTreeItem from './vcsObjectContentTreeItem.js';
|
3
|
+
import { setViewpointAction } from './layerContentTreeItem.js';
|
4
|
+
import { StateActionState } from '../actions/stateRefAction.js';
|
5
|
+
import { contentTreeClassRegistry } from './contentTreeItem.js';
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @typedef {ContentTreeItemOptions} ObliqueCollectionContentTreeItemOptions
|
9
|
+
* @property {string} collectionName
|
10
|
+
*/
|
11
|
+
|
12
|
+
/**
|
13
|
+
* @typedef {VcsObjectContentTreeItemProperties} ObliqueCollectionContentTreeItemProperties
|
14
|
+
* @property {string|import("@vcmap/core").ViewPoint} defaultViewpoint
|
15
|
+
*/
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @type {DefaultObliqueCollection}
|
19
|
+
*/
|
20
|
+
const defaultCollection = new DefaultObliqueCollection({});
|
21
|
+
|
22
|
+
/**
|
23
|
+
* An oblique collection item. Sets/unsets the oblique collection when clicked.
|
24
|
+
* @extends {VcsObjectContentTreeItem<ObliqueCollectionContentTreeItemProperties>}
|
25
|
+
*/
|
26
|
+
class ObliqueCollectionContentTreeItem extends VcsObjectContentTreeItem {
|
27
|
+
/**
|
28
|
+
* @type {string}
|
29
|
+
*/
|
30
|
+
static get className() { return 'ObliqueCollectionContentTreeItem'; }
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @param {ObliqueCollectionContentTreeItemOptions} options
|
34
|
+
* @param {VcsUiApp} app
|
35
|
+
*/
|
36
|
+
constructor(options, app) {
|
37
|
+
super(options, app);
|
38
|
+
this.state = StateActionState.INACTIVE;
|
39
|
+
/**
|
40
|
+
* @type {string}
|
41
|
+
* @private
|
42
|
+
*/
|
43
|
+
this._collectionName = options.collectionName;
|
44
|
+
|
45
|
+
/**
|
46
|
+
* @type {Array<function():void>}
|
47
|
+
* @private
|
48
|
+
*/
|
49
|
+
this._listeners = [];
|
50
|
+
|
51
|
+
this._setup();
|
52
|
+
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @type {import("@vcmap/core").ObliqueCollection}
|
56
|
+
* @private
|
57
|
+
*/
|
58
|
+
get _collection() {
|
59
|
+
return this._app.obliqueCollections.getByKey(this._collectionName);
|
60
|
+
}
|
61
|
+
|
62
|
+
/**
|
63
|
+
* @param {ObliqueCollectionContentTreeItemProperties} properties
|
64
|
+
* @protected
|
65
|
+
*/
|
66
|
+
_setProperties(properties) {
|
67
|
+
super._setProperties(properties);
|
68
|
+
|
69
|
+
setViewpointAction(this, this._app, properties.defaultViewpoint);
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* @private
|
74
|
+
*/
|
75
|
+
_clearListeners() {
|
76
|
+
this._listeners.forEach((cb) => { cb(); });
|
77
|
+
this._listeners.splice(0);
|
78
|
+
}
|
79
|
+
|
80
|
+
/**
|
81
|
+
* @private
|
82
|
+
*/
|
83
|
+
_setup() {
|
84
|
+
this._clearListeners();
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Called when an obliqueCollection is added or removed to reset the item if needed
|
88
|
+
* @param {import("@vcmap/core").ObliqueCollection} collection
|
89
|
+
*/
|
90
|
+
const resetCallback = (collection) => {
|
91
|
+
if (collection.name === this._collectionName) {
|
92
|
+
this._setup();
|
93
|
+
}
|
94
|
+
};
|
95
|
+
|
96
|
+
if (!this._collection) {
|
97
|
+
this.visible = false;
|
98
|
+
this._listeners.push(this._app.obliqueCollections.added.addEventListener(resetCallback));
|
99
|
+
} else {
|
100
|
+
const map = this._app.maps.activeMap;
|
101
|
+
if (map instanceof ObliqueMap) {
|
102
|
+
this.visible = true;
|
103
|
+
this.state = map.collection === this._collection ?
|
104
|
+
StateActionState.ACTIVE :
|
105
|
+
StateActionState.INACTIVE;
|
106
|
+
this._listeners.push(map.collectionChanged.addEventListener(() => {
|
107
|
+
this.state = map.collection === this._collection ?
|
108
|
+
StateActionState.ACTIVE :
|
109
|
+
StateActionState.INACTIVE;
|
110
|
+
}));
|
111
|
+
} else {
|
112
|
+
this.visible = false;
|
113
|
+
}
|
114
|
+
|
115
|
+
this.setPropertiesFromObject(this._collection);
|
116
|
+
this._listeners.push(this._app.maps.mapActivated.addEventListener(() => {
|
117
|
+
this._setup();
|
118
|
+
}));
|
119
|
+
|
120
|
+
this._listeners.push(this._app.obliqueCollections.removed.addEventListener(resetCallback));
|
121
|
+
this._listeners.push(this._app.obliqueCollections.added.addEventListener(resetCallback));
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
async clicked() {
|
126
|
+
if (this.visible && this._collection && this._app.maps.activeMap instanceof ObliqueMap) {
|
127
|
+
const map = /** @type {import("@vcmap/core").Oblique} */ (this._app.maps.activeMap);
|
128
|
+
const vp = await map.getViewPoint();
|
129
|
+
if (this.state === StateActionState.INACTIVE) {
|
130
|
+
this.state = StateActionState.LOADING;
|
131
|
+
await map.setCollection(this._collection, vp);
|
132
|
+
} else if (this.state === StateActionState.ACTIVE) {
|
133
|
+
this.state = StateActionState.INACTIVE;
|
134
|
+
await map.setCollection(defaultCollection, vp);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
/**
|
140
|
+
* @returns {ObliqueCollectionContentTreeItemOptions}
|
141
|
+
*/
|
142
|
+
toJSON() {
|
143
|
+
const config = super.toJSON();
|
144
|
+
config.collectionName = this._collectionName;
|
145
|
+
return config;
|
146
|
+
}
|
147
|
+
|
148
|
+
destroy() {
|
149
|
+
this._clearListeners();
|
150
|
+
super.destroy();
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
export default ObliqueCollectionContentTreeItem;
|
155
|
+
contentTreeClassRegistry.registerClass(ObliqueCollectionContentTreeItem.className, ObliqueCollectionContentTreeItem);
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import ContentTreeItem, { contentTreeClassRegistry } from './contentTreeItem.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @type {symbol}
|
5
|
+
*/
|
6
|
+
export const subTreeSymbol = Symbol('SubTree');
|
7
|
+
|
8
|
+
/**
|
9
|
+
* A sub tree item. Subtrees are rendered in their own (not the main content tree).
|
10
|
+
* They will receive their own toggle button in the nav bar.
|
11
|
+
* Only toplevel items can be content tree items (with a name which does not have a .)
|
12
|
+
* @class
|
13
|
+
* @extends {ContentTreeItem}
|
14
|
+
*/
|
15
|
+
class SubContentTreeItem extends ContentTreeItem {
|
16
|
+
static get className() { return 'SubContentTreeItem'; }
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @param {ContentTreeItemOptions} options
|
20
|
+
* @param {VcsUiApp} app
|
21
|
+
*/
|
22
|
+
constructor(options, app) {
|
23
|
+
super(options, app);
|
24
|
+
|
25
|
+
if (!this.name || this.name.split('.').length > 1) {
|
26
|
+
throw new Error(`Sub trees may only be defined on top level. Tree ${this.name} is nested or undefined`);
|
27
|
+
}
|
28
|
+
this.clickable = false;
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* @returns {TreeViewItem}
|
33
|
+
*/
|
34
|
+
getTreeViewItem() {
|
35
|
+
const treeViewItem = super.getTreeViewItem();
|
36
|
+
treeViewItem[subTreeSymbol] = true;
|
37
|
+
return treeViewItem;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
export default SubContentTreeItem;
|
42
|
+
contentTreeClassRegistry.registerClass(SubContentTreeItem.className, SubContentTreeItem);
|