@vcmap/ui 5.0.0-rc.6
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 +132 -0
- package/build/.eslintrc +6 -0
- package/build/build.js +165 -0
- package/build/buildCesium.js +19 -0
- package/build/buildHelpers.js +213 -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 +378 -0
- package/config/base.config.json +1073 -0
- package/config/berlin.config.json +529 -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-27507afe.js +1 -0
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-7565c1e8.js +1 -0
- package/dist/assets/cesium/Workers/BoundingRectangle-9d707275.js +1 -0
- package/dist/assets/cesium/Workers/BoxGeometry-fb31d3b5.js +1 -0
- package/dist/assets/cesium/Workers/Color-56bb5728.js +1 -0
- package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +1 -0
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-72143c19.js +1 -0
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-7bae1712.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometry-331891fe.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometry-5e3f67b6.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-dbc15162.js +1 -0
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-21191fce.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-cc3bace8.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeometry-8bfa24a9.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-48d9c023.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-125a8b72.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-678e34e4.js +1 -0
- package/dist/assets/cesium/Workers/EncodedCartesian3-96fdc0ef.js +1 -0
- package/dist/assets/cesium/Workers/FrustumGeometry-9ab86004.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttribute-3915ea0b.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +1 -0
- package/dist/assets/cesium/Workers/GeometryInstance-13e4ff38.js +1 -0
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +1 -0
- package/dist/assets/cesium/Workers/GeometryPipeline-e0eb4567.js +1 -0
- package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +1 -0
- package/dist/assets/cesium/Workers/IntersectionTests-ac2459de.js +1 -0
- package/dist/assets/cesium/Workers/Matrix2-37e55508.js +1 -0
- package/dist/assets/cesium/Workers/OrientedBoundingBox-e9c07538.js +1 -0
- package/dist/assets/cesium/Workers/Plane-6ee42cab.js +1 -0
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-b408c688.js +1 -0
- package/dist/assets/cesium/Workers/PolygonPipeline-7b8e4643.js +1 -0
- package/dist/assets/cesium/Workers/PolylinePipeline-6757400c.js +1 -0
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-eb972210.js +1 -0
- package/dist/assets/cesium/Workers/PrimitivePipeline-f244975e.js +1 -0
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-1bd6152a.js +1 -0
- package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +1 -0
- package/dist/assets/cesium/Workers/TerrainEncoding-5a21a97f.js +1 -0
- package/dist/assets/cesium/Workers/Transforms-eb5c1a84.js +39 -0
- package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +1 -0
- package/dist/assets/cesium/Workers/WallGeometryLibrary-a6b6a368.js +1 -0
- package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +1 -0
- package/dist/assets/cesium/Workers/WebMercatorProjection-2839e524.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.fba8ca.js +9118 -0
- package/dist/assets/cesium.js +1 -0
- package/dist/assets/core.d5ed0f.js +4 -0
- package/dist/assets/core.js +1 -0
- package/dist/assets/index.60dea538.css +1 -0
- package/dist/assets/index.6a83278e.js +1 -0
- package/dist/assets/ol.abea3a.js +318 -0
- package/dist/assets/ol.js +1 -0
- package/dist/assets/ui.ad1ec9.css +1 -0
- package/dist/assets/ui.ad1ec9.js +39 -0
- package/dist/assets/ui.js +1 -0
- package/dist/assets/uicomponents.161461.css +1 -0
- package/dist/assets/uicomponents.161461.js +31 -0
- package/dist/assets/uicomponents.js +1 -0
- package/dist/assets/vue-composition-api.7051d7.js +14 -0
- package/dist/assets/vue-composition-api.js +2 -0
- package/dist/assets/vue.9fd7f6.js +9 -0
- package/dist/assets/vue.js +1 -0
- package/dist/assets/vuetify.33dafc.css +5 -0
- package/dist/assets/vuetify.33dafc.js +48 -0
- package/dist/assets/vuetify.js +2 -0
- package/dist/index.html +26 -0
- package/index.js +18 -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/uicomponents.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 +130 -0
- package/plugins/@vcmap/pluginExample/config.json +6 -0
- package/plugins/@vcmap/pluginExample/index.js +193 -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/index.js +254 -0
- package/plugins/@vcmap/project-selector/package.json +15 -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 +40 -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 +56 -0
- package/plugins/example/mySuperComponent.vue +127 -0
- package/plugins/package.json +5 -0
- package/plugins/test/editor.vue +63 -0
- package/plugins/test/index.js +93 -0
- package/plugins/test/myCustomHeader.vue +19 -0
- package/plugins/test/toolbox-data.js +49 -0
- package/plugins/test/vcsContent.vue +23 -0
- package/plugins/test/windowManagerExample.vue +144 -0
- package/src/actions/actionHelper.js +221 -0
- package/src/actions/stateRefAction.js +50 -0
- package/src/actions/styleSelector.vue +90 -0
- package/src/application/Navbar.vue +89 -0
- package/src/application/VcsApp.vue +147 -0
- package/src/application/VcsMap.vue +57 -0
- package/src/application/empty-cmp.vue +6 -0
- package/src/assets/logo.svg +26 -0
- package/src/contentTree/LayerTree.vue +40 -0
- package/src/contentTree/contentTreeCollection.js +311 -0
- package/src/contentTree/contentTreeItem.js +457 -0
- package/src/contentTree/groupContentTreeItem.js +67 -0
- package/src/contentTree/layerContentTreeItem.js +233 -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/init.js +36 -0
- package/src/lang/de.js +60 -0
- package/src/lang/en.js +53 -0
- package/src/manager/buttonManager.js +203 -0
- package/src/manager/toolbox/ToolboxManager.vue +114 -0
- package/src/manager/toolbox/ToolboxMultiSelectButton.vue +96 -0
- package/src/manager/toolbox/ToolboxSingleSelectButton.vue +98 -0
- package/src/manager/toolbox/toolbox-manager.js +203 -0
- package/src/manager/window/WindowComponent.vue +133 -0
- package/src/manager/window/WindowComponentHeader.vue +46 -0
- package/src/manager/window/WindowManager.vue +109 -0
- package/src/manager/window/windowManager.js +437 -0
- package/src/navigation/mapNavCompass.vue +161 -0
- package/src/navigation/mapNavigation.vue +176 -0
- package/src/navigation/obliqueRotation.vue +48 -0
- package/src/navigation/orientationToolsButton.vue +52 -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 +10 -0
- package/src/styles/_theming.scss +15 -0
- package/src/styles/_typography.scss +42 -0
- package/src/styles/main.scss +9 -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/vcsUiApp.js +223 -0
- package/src/vuePlugins/i18n.js +20 -0
- package/src/vuePlugins/vuetify.js +54 -0
- package/start.js +3 -0
@@ -0,0 +1,98 @@
|
|
1
|
+
import ContentTreeItem, { contentTreeClassRegistry } from './contentTreeItem.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @typedef {Object} VcsObjectContentTreeItemProperties
|
5
|
+
* @property {string|Object<string, string>} [title]
|
6
|
+
* @property {string} [icon]
|
7
|
+
* @property {string} [infoUrl]
|
8
|
+
*/
|
9
|
+
|
10
|
+
/**
|
11
|
+
* An abstract class for VcsObject based items.
|
12
|
+
* It handle the overriding/setting of its own values based on
|
13
|
+
* the VcsObjects properties bag.
|
14
|
+
* @class
|
15
|
+
* @template {VcsObjectContentTreeItemProperties} T
|
16
|
+
* @extends {ContentTreeItem}
|
17
|
+
* @abstract
|
18
|
+
*/
|
19
|
+
class VcsObjectContentTreeItem extends ContentTreeItem {
|
20
|
+
/**
|
21
|
+
* @type {string}
|
22
|
+
* @readonly
|
23
|
+
*/
|
24
|
+
static get className() { return 'VcsObjectContentTreeItem'; }
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @param {ContentTreeItemOptions} options
|
28
|
+
* @param {VcsUiApp} app
|
29
|
+
*/
|
30
|
+
constructor(options, app) {
|
31
|
+
super(options, app);
|
32
|
+
|
33
|
+
/**
|
34
|
+
* This object holds the properties which where configured on this item.
|
35
|
+
* @type {T}
|
36
|
+
* @protected
|
37
|
+
*/
|
38
|
+
this._ownProperties = {
|
39
|
+
title: this.title,
|
40
|
+
icon: this.icon,
|
41
|
+
infoUrl: this.infoUrl,
|
42
|
+
};
|
43
|
+
|
44
|
+
/**
|
45
|
+
* @type {T}
|
46
|
+
* @private
|
47
|
+
*/
|
48
|
+
this._currentObjectProperties = {};
|
49
|
+
}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Sets the VcsObjects properties on the current item.
|
53
|
+
* When extending this class with any other type, you must override this
|
54
|
+
* method to set other values defined in your type.
|
55
|
+
* This method is called, when the properties are set from this.setPropertiesFromObject.
|
56
|
+
* @param {T} properties
|
57
|
+
* @protected
|
58
|
+
*/
|
59
|
+
_setProperties(properties) {
|
60
|
+
this.title = properties.title;
|
61
|
+
this.icon = properties.icon;
|
62
|
+
this.infoUrl = properties.infoUrl;
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Sets the values on this item based on the objects properties bag.
|
67
|
+
* @param {import("@vcmap/core").VcsObject} object
|
68
|
+
*/
|
69
|
+
setPropertiesFromObject(object) {
|
70
|
+
this._currentObjectProperties = object.properties;
|
71
|
+
const mergedProperties = { ...this._currentObjectProperties };
|
72
|
+
Object.entries(this._ownProperties)
|
73
|
+
.forEach(([key, value]) => {
|
74
|
+
if (value !== undefined) {
|
75
|
+
mergedProperties[key] = value;
|
76
|
+
}
|
77
|
+
});
|
78
|
+
this._setProperties(mergedProperties);
|
79
|
+
}
|
80
|
+
|
81
|
+
/**
|
82
|
+
* @returns {ContentTreeItemOptions}
|
83
|
+
*/
|
84
|
+
toJSON() {
|
85
|
+
const config = super.toJSON();
|
86
|
+
Object.entries(this._currentObjectProperties)
|
87
|
+
.forEach(([key, value]) => {
|
88
|
+
if (config[key] && config[key] === value && this._ownProperties[key] !== value) {
|
89
|
+
delete config[key];
|
90
|
+
}
|
91
|
+
});
|
92
|
+
|
93
|
+
return config;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
contentTreeClassRegistry.registerClass(VcsObjectContentTreeItem.className, VcsObjectContentTreeItem);
|
98
|
+
export default VcsObjectContentTreeItem;
|
@@ -0,0 +1,107 @@
|
|
1
|
+
import VcsObjectContentTreeItem from './vcsObjectContentTreeItem.js';
|
2
|
+
import { contentTreeClassRegistry } from './contentTreeItem.js';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @typedef {VcsObjectContentTreeItem.Options} ViewPointContentTreeItemOptions
|
6
|
+
* @property {string} viewpointName
|
7
|
+
*/
|
8
|
+
|
9
|
+
/**
|
10
|
+
* A viewpoint item. Sets the viewpoint on the currently active map when clicked.
|
11
|
+
* @extends {VcsObjectContentTreeItem<VcsObjectContentTreeItemProperties>}
|
12
|
+
* @class
|
13
|
+
*/
|
14
|
+
class ViewPointContentTreeItem extends VcsObjectContentTreeItem {
|
15
|
+
static get className() { return 'ViewPointContentTreeItem'; }
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @param {ViewPointContentTreeItemOptions} options
|
19
|
+
* @param {VcsUiApp} app
|
20
|
+
*/
|
21
|
+
constructor(options, app) {
|
22
|
+
options.icon = options.icon || '$vcsPoi'; // XXX _should_ this be the default?
|
23
|
+
super(options, app);
|
24
|
+
|
25
|
+
/**
|
26
|
+
* @type {string}
|
27
|
+
* @private
|
28
|
+
*/
|
29
|
+
this._viewPointName = options.viewpointName;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* @type {Array<function():void>}
|
33
|
+
* @private
|
34
|
+
*/
|
35
|
+
this._listeners = [];
|
36
|
+
|
37
|
+
this._setup();
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* @returns {import("@vcmap/core").ViewPoint}
|
42
|
+
*/
|
43
|
+
get viewPoint() {
|
44
|
+
return this._app.viewPoints.getByKey(this._viewPointName);
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @private
|
49
|
+
*/
|
50
|
+
_clearListeners() {
|
51
|
+
this._listeners.forEach((cb) => { cb(); });
|
52
|
+
this._listeners.splice(0);
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* @private
|
57
|
+
*/
|
58
|
+
_setup() {
|
59
|
+
this._clearListeners();
|
60
|
+
/**
|
61
|
+
* Called when a viewPoint is added or removed to reset the item if needed
|
62
|
+
* @param {import("@vcmap/core").ViewPoint} viewPoint
|
63
|
+
*/
|
64
|
+
const resetCallback = (viewPoint) => {
|
65
|
+
if (viewPoint.name === this._viewPointName) {
|
66
|
+
this._setup();
|
67
|
+
}
|
68
|
+
};
|
69
|
+
|
70
|
+
if (!this.viewPoint) {
|
71
|
+
this.visible = false;
|
72
|
+
this._listeners.push(this._app.viewPoints.added.addEventListener(resetCallback));
|
73
|
+
} else {
|
74
|
+
this.visible = true;
|
75
|
+
this.setPropertiesFromObject(this.viewPoint);
|
76
|
+
this._listeners.push(this._app.viewPoints.added.addEventListener(resetCallback));
|
77
|
+
this._listeners.push(this._app.viewPoints.removed.addEventListener(resetCallback));
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
async clicked() {
|
82
|
+
if (this._app.maps.activeMap && this.viewPoint) {
|
83
|
+
await this._app.maps.activeMap.gotoViewPoint(this.viewPoint);
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
/**
|
88
|
+
* @returns {ViewPointContentTreeItemOptions}
|
89
|
+
*/
|
90
|
+
toJSON() {
|
91
|
+
const config = super.toJSON();
|
92
|
+
if (config.icon === '$vcsPoi') {
|
93
|
+
delete config.icon;
|
94
|
+
}
|
95
|
+
|
96
|
+
config.viewpointName = this._viewPointName;
|
97
|
+
return config;
|
98
|
+
}
|
99
|
+
|
100
|
+
destroy() {
|
101
|
+
this._clearListeners();
|
102
|
+
super.destroy();
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
export default ViewPointContentTreeItem;
|
107
|
+
contentTreeClassRegistry.registerClass(ViewPointContentTreeItem.className, ViewPointContentTreeItem);
|
package/src/init.js
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
import Vue from 'vue';
|
2
|
+
import { check, checkMaybe } from '@vcsuite/check';
|
3
|
+
import { Context } from '@vcmap/core';
|
4
|
+
import VcsAppComponent from './application/VcsApp.vue';
|
5
|
+
import { vuetify } from './vuePlugins/vuetify.js';
|
6
|
+
import { i18n } from './vuePlugins/i18n.js';
|
7
|
+
import VcsUiApp from './vcsUiApp.js';
|
8
|
+
|
9
|
+
/**
|
10
|
+
* creates and mounts a vcsApp
|
11
|
+
* @param {string} mountTarget
|
12
|
+
* @param {string=} configUrl optional config
|
13
|
+
* @returns {Promise<VcsUiApp>}
|
14
|
+
*/
|
15
|
+
export default async function initApp(mountTarget, configUrl) {
|
16
|
+
check(mountTarget, String);
|
17
|
+
checkMaybe(configUrl, String);
|
18
|
+
const app = new VcsUiApp();
|
19
|
+
new Vue({
|
20
|
+
vuetify,
|
21
|
+
i18n,
|
22
|
+
render: h => h(VcsAppComponent, {
|
23
|
+
props: {
|
24
|
+
appId: app.id,
|
25
|
+
},
|
26
|
+
}),
|
27
|
+
}).$mount(mountTarget);
|
28
|
+
|
29
|
+
if (configUrl) {
|
30
|
+
const config = await fetch(configUrl)
|
31
|
+
.then(response => response.json());
|
32
|
+
const context = new Context(config);
|
33
|
+
await app.addContext(context);
|
34
|
+
}
|
35
|
+
return app;
|
36
|
+
}
|
package/src/lang/de.js
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
const messages = {
|
2
|
+
general: {
|
3
|
+
save: 'Save',
|
4
|
+
reset: 'Reset',
|
5
|
+
},
|
6
|
+
search: {
|
7
|
+
title: 'Suche',
|
8
|
+
placeholder: 'Search for Street, Address, Landmark, POI',
|
9
|
+
},
|
10
|
+
oblique: {
|
11
|
+
title: 'Schrägansicht',
|
12
|
+
south: 'Süd',
|
13
|
+
west: 'West',
|
14
|
+
east: 'Ost',
|
15
|
+
north: 'Nord',
|
16
|
+
},
|
17
|
+
'action-content': {
|
18
|
+
'camera-flight': 'Camera Flight {index} in one line',
|
19
|
+
interpolation: 'Interpolation',
|
20
|
+
'total-flight-duration': 'Total flight duration',
|
21
|
+
'circular-flight-path': 'Circular flight path',
|
22
|
+
'show-flight-path': 'Show flight path',
|
23
|
+
'flight-viewpoint': 'Flight viewpoint',
|
24
|
+
'viewpoint-step': 'Viewpoint step {index}',
|
25
|
+
},
|
26
|
+
'layer-tree': {
|
27
|
+
title: 'Inhalte / Umgebung',
|
28
|
+
search: {
|
29
|
+
placeholder: 'Element, Ansicht...',
|
30
|
+
},
|
31
|
+
},
|
32
|
+
components: {
|
33
|
+
title: 'Components',
|
34
|
+
},
|
35
|
+
tools: {
|
36
|
+
title: 'Werkzeuge',
|
37
|
+
},
|
38
|
+
'poi-view': {
|
39
|
+
title: 'POI & Attributes',
|
40
|
+
},
|
41
|
+
'endless-list': {
|
42
|
+
'load-more': 'Weitere Einträge laden',
|
43
|
+
'amount-loaded': '{loaded} von {total} Einträge ',
|
44
|
+
},
|
45
|
+
'context-menu': {
|
46
|
+
regular: {
|
47
|
+
'zoom-in': 'Zoom in',
|
48
|
+
'zoom-out': 'Zoom out',
|
49
|
+
'rotate-90-cw': 'Rotate 90° CW',
|
50
|
+
'rotate-90-ccw': 'Rotate 90° CCW',
|
51
|
+
'pedestrian-mode': 'Predestrian mode',
|
52
|
+
'reset-view': 'Reset view',
|
53
|
+
paste: 'Paste',
|
54
|
+
'view-coordinates': 'View coordinates',
|
55
|
+
'copy-coordinates': 'Copy coordinates',
|
56
|
+
},
|
57
|
+
},
|
58
|
+
};
|
59
|
+
|
60
|
+
export default messages;
|
package/src/lang/en.js
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
const messages = {
|
2
|
+
general: {
|
3
|
+
save: 'Save',
|
4
|
+
reset: 'Reset',
|
5
|
+
},
|
6
|
+
search: {
|
7
|
+
title: 'Suche',
|
8
|
+
placeholder: 'Search for Street, Address, Landmark, POI',
|
9
|
+
},
|
10
|
+
oblique: {
|
11
|
+
title: 'Schrägansicht',
|
12
|
+
south: 'Süd',
|
13
|
+
west: 'West',
|
14
|
+
east: 'Ost',
|
15
|
+
north: 'Nord',
|
16
|
+
},
|
17
|
+
'action-content': {
|
18
|
+
'camera-flight': 'Camera Flight {index} in one line',
|
19
|
+
interpolation: 'Interpolation',
|
20
|
+
'total-flight-duration': 'Total flight duration',
|
21
|
+
'circular-flight-path': 'Circular flight path',
|
22
|
+
'show-flight-path': 'Show flight path',
|
23
|
+
'flight-viewpoint': 'Flight viewpoint',
|
24
|
+
'viewpoint-step': 'Viewpoint step {index}',
|
25
|
+
},
|
26
|
+
'layer-tree': {
|
27
|
+
title: 'Inhalte / Umgebung',
|
28
|
+
search: {
|
29
|
+
placeholder: 'Element, Ansicht...',
|
30
|
+
},
|
31
|
+
},
|
32
|
+
components: {
|
33
|
+
title: 'Components',
|
34
|
+
},
|
35
|
+
tools: {
|
36
|
+
title: 'Werkzeuge',
|
37
|
+
},
|
38
|
+
contextMenu: {
|
39
|
+
regular: {
|
40
|
+
'zoom-in': 'Zoom in',
|
41
|
+
'zoom-out': 'Zoom out',
|
42
|
+
'rotate-90-cw': 'Rotate 90° CW',
|
43
|
+
'rotate-90-ccw': 'Rotate 90° CCW',
|
44
|
+
'pedestrian-mode': 'Predestrian mode',
|
45
|
+
'reset-view': 'Reset view',
|
46
|
+
paste: 'Paste',
|
47
|
+
'view-coordinates': 'View coordinates',
|
48
|
+
'copy-coordinates': 'Copy coordinates',
|
49
|
+
},
|
50
|
+
},
|
51
|
+
};
|
52
|
+
|
53
|
+
export default messages;
|
@@ -0,0 +1,203 @@
|
|
1
|
+
import { reactive } from '@vue/composition-api';
|
2
|
+
import { VcsEvent } from '@vcmap/core';
|
3
|
+
import { v4 as uuidv4 } from 'uuid';
|
4
|
+
import { check, checkMaybe } from '@vcsuite/check';
|
5
|
+
import { vcsAppSymbol } from '../pluginHelper.js';
|
6
|
+
|
7
|
+
/**
|
8
|
+
* sorts by owner and optionally plugin order
|
9
|
+
* @param {ButtonComponent} a
|
10
|
+
* @param {ButtonComponent} b
|
11
|
+
* @param {string[]} [order] order of owners to sort by
|
12
|
+
* @returns {number}
|
13
|
+
*/
|
14
|
+
function sortByOwner(a, b, order = []) {
|
15
|
+
const sorted = [vcsAppSymbol, ...order];
|
16
|
+
return sorted.indexOf(b.owner) -
|
17
|
+
sorted.indexOf(a.owner);
|
18
|
+
}
|
19
|
+
|
20
|
+
/**
|
21
|
+
* filters actions by button location and returns actions (optionally sorted)
|
22
|
+
* @param {Array<ButtonComponent>} buttonComponents
|
23
|
+
* @param {ButtonLocation} location Button render position
|
24
|
+
* @param {string[]} [order] optional order to sort by (plugin names)
|
25
|
+
* @param {function(a: ButtonComponent, b: ButtonComponent, order: string[]):number} [compareFn=sortByOwner] Per default components are sorted by owner: app first, then plugins
|
26
|
+
* @returns {Array<VcsAction>}
|
27
|
+
*/
|
28
|
+
export function getActionsByLocation(buttonComponents, location, order = [], compareFn = sortByOwner) {
|
29
|
+
return buttonComponents
|
30
|
+
.filter(b => b.location === location)
|
31
|
+
.sort((a, b) => compareFn(a, b, order))
|
32
|
+
.map(b => b.action);
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Possible render positions of buttons in navbar from left to right
|
37
|
+
* @enum
|
38
|
+
*/
|
39
|
+
export const ButtonLocation = {
|
40
|
+
MAP: 0,
|
41
|
+
CONTENT: 1,
|
42
|
+
TOOL: 2,
|
43
|
+
PROJECT: 3,
|
44
|
+
MENU: 4,
|
45
|
+
};
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @typedef ButtonComponentOptions
|
49
|
+
* @property {string} [id] Optional ID, If not provided a uuid will be generated.
|
50
|
+
* @property {ButtonLocation} location Button render position
|
51
|
+
* @property {VcsAction} action Action performed by button.
|
52
|
+
*/
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @typedef ButtonComponent
|
56
|
+
* @property {string} id
|
57
|
+
* @property {string|vcsAppSymbol} owner
|
58
|
+
* @property {ButtonLocation} location
|
59
|
+
* @property {VcsAction} action
|
60
|
+
*/
|
61
|
+
|
62
|
+
/**
|
63
|
+
* @class ButtonManager
|
64
|
+
* @description Manages a set of Map Buttons
|
65
|
+
* @implements VcsComponentManager<ButtonComponent,ButtonComponentOptions>
|
66
|
+
*/
|
67
|
+
export default class ButtonManager {
|
68
|
+
constructor() {
|
69
|
+
/**
|
70
|
+
* @type {import("@vcmap/core").VcsEvent<ButtonComponent>}
|
71
|
+
*/
|
72
|
+
this.added = new VcsEvent();
|
73
|
+
/**
|
74
|
+
* @type {import("@vcmap/core").VcsEvent<ButtonComponent>}
|
75
|
+
*/
|
76
|
+
this.removed = new VcsEvent();
|
77
|
+
/**
|
78
|
+
* reactive ordered array of ids,
|
79
|
+
* @type {Array<string>}
|
80
|
+
*/
|
81
|
+
this.componentIds = reactive([]);
|
82
|
+
|
83
|
+
/**
|
84
|
+
* @type {Map<string, ButtonComponent>}
|
85
|
+
* @private
|
86
|
+
*/
|
87
|
+
this._buttonComponents = new Map();
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
/**
|
92
|
+
* @param {string} id
|
93
|
+
* @returns {ButtonComponent}
|
94
|
+
*/
|
95
|
+
get(id) {
|
96
|
+
if (this.has(id)) {
|
97
|
+
return this._buttonComponents.get(id);
|
98
|
+
}
|
99
|
+
return undefined;
|
100
|
+
}
|
101
|
+
|
102
|
+
/**
|
103
|
+
* @param {string} id
|
104
|
+
* @returns {boolean}
|
105
|
+
*/
|
106
|
+
has(id) {
|
107
|
+
return this._buttonComponents.has(id);
|
108
|
+
}
|
109
|
+
|
110
|
+
/**
|
111
|
+
* removes a button, Component will not be rendered anymore and will be destroyed. Add ButtonComponent again
|
112
|
+
* to show the component again
|
113
|
+
* @param {string} id
|
114
|
+
*/
|
115
|
+
remove(id) {
|
116
|
+
const buttonComponent = this._buttonComponents.get(id);
|
117
|
+
if (buttonComponent) {
|
118
|
+
const index = this.componentIds.indexOf(id);
|
119
|
+
this.componentIds.splice(index, 1);
|
120
|
+
this._buttonComponents.delete(id);
|
121
|
+
this.removed.raiseEvent(buttonComponent);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* adds a buttonComponent
|
127
|
+
* @param {ButtonComponentOptions} buttonComponentOptions
|
128
|
+
* @param {string|symbol} owner pluginName or vcsAppSymbol
|
129
|
+
* @throws {Error} if a buttonComponent with the same ID has already been added
|
130
|
+
* @returns {ButtonComponent}
|
131
|
+
*/
|
132
|
+
add(buttonComponentOptions, owner) {
|
133
|
+
checkMaybe(buttonComponentOptions.id, String);
|
134
|
+
check(buttonComponentOptions.location, Object.values(ButtonLocation));
|
135
|
+
check(buttonComponentOptions.action, {
|
136
|
+
name: String,
|
137
|
+
title: [undefined, String],
|
138
|
+
icon: [undefined, String],
|
139
|
+
callback: Function,
|
140
|
+
active: [undefined, Boolean],
|
141
|
+
});
|
142
|
+
check(owner, [String, vcsAppSymbol]);
|
143
|
+
|
144
|
+
if (buttonComponentOptions.id && this.has(buttonComponentOptions.id)) {
|
145
|
+
throw new Error(`A button with id ${buttonComponentOptions.id} has already been registered.`);
|
146
|
+
}
|
147
|
+
const id = buttonComponentOptions.id || uuidv4();
|
148
|
+
|
149
|
+
/**
|
150
|
+
* @type {ButtonComponent}
|
151
|
+
*/
|
152
|
+
const buttonComponent = {
|
153
|
+
get id() {
|
154
|
+
return id;
|
155
|
+
},
|
156
|
+
get owner() {
|
157
|
+
return owner;
|
158
|
+
},
|
159
|
+
get location() {
|
160
|
+
return buttonComponentOptions.location;
|
161
|
+
},
|
162
|
+
get action() {
|
163
|
+
return reactive(buttonComponentOptions.action);
|
164
|
+
},
|
165
|
+
};
|
166
|
+
|
167
|
+
this._buttonComponents.set(id, buttonComponent);
|
168
|
+
this.componentIds.push(id);
|
169
|
+
this.added.raiseEvent(buttonComponent);
|
170
|
+
return buttonComponent;
|
171
|
+
}
|
172
|
+
|
173
|
+
/**
|
174
|
+
* removes all buttonComponents of a specific owner and fires removed Events
|
175
|
+
* @param {string|vcsAppSymbol} owner
|
176
|
+
*/
|
177
|
+
removeOwner(owner) {
|
178
|
+
const componentIds = [...this.componentIds];
|
179
|
+
componentIds.forEach((id) => {
|
180
|
+
if (owner === this.get(id).owner) {
|
181
|
+
this.remove(id);
|
182
|
+
}
|
183
|
+
});
|
184
|
+
}
|
185
|
+
|
186
|
+
/**
|
187
|
+
* removes all buttonComponents and fires removed Events
|
188
|
+
*/
|
189
|
+
clear() {
|
190
|
+
const componentIds = [...this.componentIds];
|
191
|
+
componentIds.forEach((id) => { this.remove(id); });
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* destroys the ButtonManager;
|
196
|
+
*/
|
197
|
+
destroy() {
|
198
|
+
this.added.destroy();
|
199
|
+
this.removed.destroy();
|
200
|
+
this.componentIds.splice(0);
|
201
|
+
this._buttonComponents.clear();
|
202
|
+
}
|
203
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
<template>
|
2
|
+
<v-toolbar
|
3
|
+
dense
|
4
|
+
class="vcs-toolbox toolbar__secondary rounded-b mx-auto v-sheet"
|
5
|
+
:style="{ maxWidth: `${getWidth()}px` }"
|
6
|
+
>
|
7
|
+
<v-toolbar-items class="w-full">
|
8
|
+
<div class="d-flex align-center justify-space-between w-full">
|
9
|
+
<span
|
10
|
+
v-for="group of groups"
|
11
|
+
:key="group.id"
|
12
|
+
>
|
13
|
+
<component
|
14
|
+
v-if="group.type === 'customComponent'"
|
15
|
+
:is="group.component"
|
16
|
+
:icon="'$vcsObjectAttribute'"
|
17
|
+
:value="group.active"
|
18
|
+
@click.native="group.active = !group.active"
|
19
|
+
:group="group"
|
20
|
+
/>
|
21
|
+
<Button
|
22
|
+
v-if="group.type === 'toggleButton'"
|
23
|
+
:group="group"
|
24
|
+
:icon="'$vcsObjectAttribute'"
|
25
|
+
:value="group.active"
|
26
|
+
@click.native="group.active = !group.active"
|
27
|
+
/>
|
28
|
+
<ToolboxSingleSelectButton
|
29
|
+
v-if="toolboxGroupVisible(group) && group.type === 'singleSelectButton'"
|
30
|
+
:group="group"
|
31
|
+
@selected="id => selectSingleSelectOption(id)"
|
32
|
+
@set-open="({ id, open }) => setGroupOpen({ id, open })"
|
33
|
+
/>
|
34
|
+
<ToolboxMultiSelectButton
|
35
|
+
v-if="toolboxGroupVisible(group) && group.type === 'multiSelectButton'"
|
36
|
+
:group="group"
|
37
|
+
@selected="id => selectMultiSlectOption(id)"
|
38
|
+
@set-open="({ id, open }) => setGroupOpen({ id, open })"
|
39
|
+
/>
|
40
|
+
</span>
|
41
|
+
</div>
|
42
|
+
</v-toolbar-items>
|
43
|
+
</v-toolbar>
|
44
|
+
</template>
|
45
|
+
|
46
|
+
<style lang="scss" scoped>
|
47
|
+
.toolbar__secondary {
|
48
|
+
position: absolute;
|
49
|
+
top: 0;
|
50
|
+
left: 0;
|
51
|
+
right: 0;
|
52
|
+
|
53
|
+
&.v-toolbar {
|
54
|
+
::v-deep .v-toolbar__content {
|
55
|
+
padding: 0;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&.theme--light.v-toolbar.v-sheet {
|
60
|
+
background-color: #ffffffda;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
</style>
|
64
|
+
|
65
|
+
<script>
|
66
|
+
|
67
|
+
import { inject } from '@vue/composition-api';
|
68
|
+
import { VcsButton } from '@vcsuite/ui-components';
|
69
|
+
|
70
|
+
import ToolboxSingleSelectButton from './ToolboxSingleSelectButton.vue';
|
71
|
+
import ToolboxMultiSelectButton from './ToolboxMultiSelectButton.vue';
|
72
|
+
|
73
|
+
export default {
|
74
|
+
name: 'VcsToolbox',
|
75
|
+
props: {
|
76
|
+
width: {
|
77
|
+
type: Number,
|
78
|
+
default: 600,
|
79
|
+
},
|
80
|
+
},
|
81
|
+
setup() {
|
82
|
+
const app = inject('vcsApp');
|
83
|
+
const { toolboxManager } = app;
|
84
|
+
const { state: { groups } } = toolboxManager;
|
85
|
+
const getWidth = () => toolboxManager.getNumberOfUsedSlots() * 75;
|
86
|
+
const toolboxGroupVisible = value => value &&
|
87
|
+
value.options &&
|
88
|
+
value.options.length;
|
89
|
+
const selectSingleSelectOption = (id) => {
|
90
|
+
toolboxManager.bringToTop(id);
|
91
|
+
};
|
92
|
+
const selectMultiSlectOption = (id) => {
|
93
|
+
toolboxManager.selectOption(id);
|
94
|
+
};
|
95
|
+
const setGroupOpen = ({ id, open }) => {
|
96
|
+
toolboxManager.setGroupOpen(id, open);
|
97
|
+
};
|
98
|
+
|
99
|
+
return {
|
100
|
+
groups,
|
101
|
+
getWidth,
|
102
|
+
selectSingleSelectOption,
|
103
|
+
selectMultiSlectOption,
|
104
|
+
setGroupOpen,
|
105
|
+
toolboxGroupVisible,
|
106
|
+
};
|
107
|
+
},
|
108
|
+
components: {
|
109
|
+
ToolboxSingleSelectButton,
|
110
|
+
ToolboxMultiSelectButton,
|
111
|
+
VcsButton,
|
112
|
+
},
|
113
|
+
};
|
114
|
+
</script>
|