@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,190 @@
|
|
1
|
+
<template>
|
2
|
+
<v-card>
|
3
|
+
<v-list-item>
|
4
|
+
<v-list-item-content>
|
5
|
+
<v-list-item-title class="font-weight-bold">
|
6
|
+
DISABLED
|
7
|
+
</v-list-item-title>
|
8
|
+
</v-list-item-content>
|
9
|
+
<v-list-item-action>
|
10
|
+
<v-switch v-model="disabled" />
|
11
|
+
</v-list-item-action>
|
12
|
+
</v-list-item>
|
13
|
+
<v-divider />
|
14
|
+
<v-list-item>
|
15
|
+
<v-list-item-content>
|
16
|
+
<v-list-item-title class="font-weight-bold">
|
17
|
+
HAS UPDATE
|
18
|
+
</v-list-item-title>
|
19
|
+
</v-list-item-content>
|
20
|
+
<v-list-item-action>
|
21
|
+
<v-switch v-model="update" />
|
22
|
+
</v-list-item-action>
|
23
|
+
</v-list-item>
|
24
|
+
<v-divider />
|
25
|
+
<v-list-item>
|
26
|
+
<v-list-item-content>
|
27
|
+
<v-list-item-title class="font-weight-bold">
|
28
|
+
ACTIVE
|
29
|
+
</v-list-item-title>
|
30
|
+
</v-list-item-content>
|
31
|
+
<v-list-item-action>
|
32
|
+
<v-switch v-model="active" />
|
33
|
+
</v-list-item-action>
|
34
|
+
</v-list-item>
|
35
|
+
<v-list-item>
|
36
|
+
<v-list-item-content>
|
37
|
+
<v-list-item-title class="font-weight-bold">
|
38
|
+
LOADING
|
39
|
+
</v-list-item-title>
|
40
|
+
</v-list-item-content>
|
41
|
+
<v-list-item-action>
|
42
|
+
<v-switch v-model="loading" />
|
43
|
+
</v-list-item-action>
|
44
|
+
</v-list-item>
|
45
|
+
<v-divider />
|
46
|
+
<v-list-item>
|
47
|
+
<v-list-item-content>
|
48
|
+
<v-list-item-title class="font-weight-bold">
|
49
|
+
<VcsButton standard/> (default)
|
50
|
+
</v-list-item-title>
|
51
|
+
<v-row>
|
52
|
+
<v-col>
|
53
|
+
<v-card>
|
54
|
+
<v-card-title>PRIMARY</v-card-title>
|
55
|
+
<v-card-actions>
|
56
|
+
<VcsButton
|
57
|
+
@click="toggle"
|
58
|
+
:active="active"
|
59
|
+
color="primary"
|
60
|
+
:disabled="disabled"
|
61
|
+
:has-update="update"
|
62
|
+
:icon="loading ? '$vcsProgress' : ''"
|
63
|
+
tooltip="PRIMARY BUTTON"
|
64
|
+
>
|
65
|
+
PRIMARY
|
66
|
+
</VcsButton>
|
67
|
+
</v-card-actions>
|
68
|
+
</v-card>
|
69
|
+
</v-col>
|
70
|
+
<v-col>
|
71
|
+
<v-card>
|
72
|
+
<v-card-title>SECONDARY</v-card-title>
|
73
|
+
<v-card-actions>
|
74
|
+
<VcsButton
|
75
|
+
@click="toggle"
|
76
|
+
:active="active"
|
77
|
+
:disabled="disabled"
|
78
|
+
:has-update="update"
|
79
|
+
tooltip="SECONDARY BUTTON"
|
80
|
+
>
|
81
|
+
SECONDARY
|
82
|
+
</VcsButton>
|
83
|
+
</v-card-actions>
|
84
|
+
</v-card>
|
85
|
+
</v-col>
|
86
|
+
</v-row>
|
87
|
+
</v-list-item-content>
|
88
|
+
</v-list-item>
|
89
|
+
<v-divider />
|
90
|
+
<v-list-item>
|
91
|
+
<v-list-item-content>
|
92
|
+
<v-list-item-title class="font-weight-bold">
|
93
|
+
<VcsButton large/> (e.g. Navbar)
|
94
|
+
</v-list-item-title>
|
95
|
+
<v-row>
|
96
|
+
<v-col>
|
97
|
+
<v-card>
|
98
|
+
<v-card-title>STANDARD</v-card-title>
|
99
|
+
<v-card-actions>
|
100
|
+
<VcsButton
|
101
|
+
@click="toggle"
|
102
|
+
:active="active"
|
103
|
+
:disabled="disabled"
|
104
|
+
:has-update="update"
|
105
|
+
:icon="loading ? '$vcsProgress' : '$vcs3d'"
|
106
|
+
tooltip="ButtonClass large"
|
107
|
+
large
|
108
|
+
/>
|
109
|
+
</v-card-actions>
|
110
|
+
</v-card>
|
111
|
+
</v-col>
|
112
|
+
<v-col>
|
113
|
+
<v-card>
|
114
|
+
<v-card-title>OVERFLOW</v-card-title>
|
115
|
+
<v-card-actions>
|
116
|
+
<VcsActionButtonList
|
117
|
+
:actions="[
|
118
|
+
{ name: 'Tool 1', title: 'Overflow Button with active state', callback: toggle, active },
|
119
|
+
{ name: 'Tool 2', title: 'Overflow Button without state', callback: toggle },
|
120
|
+
]"
|
121
|
+
:overflow-count="0"
|
122
|
+
button-class="large"
|
123
|
+
/>
|
124
|
+
</v-card-actions>
|
125
|
+
</v-card>
|
126
|
+
</v-col>
|
127
|
+
</v-row>
|
128
|
+
</v-list-item-content>
|
129
|
+
</v-list-item>
|
130
|
+
<v-divider />
|
131
|
+
<v-list-item>
|
132
|
+
<v-list-item-content>
|
133
|
+
<v-list-item-title class="font-weight-bold">
|
134
|
+
<VcsButton small/>
|
135
|
+
</v-list-item-title>
|
136
|
+
<v-row>
|
137
|
+
<v-col>
|
138
|
+
<v-card>
|
139
|
+
<v-card-title>STANDARD</v-card-title>
|
140
|
+
<v-card-actions>
|
141
|
+
<VcsButton
|
142
|
+
@click="toggle"
|
143
|
+
:active="active"
|
144
|
+
:disabled="disabled"
|
145
|
+
:icon="loading ? '$vcsProgress' : '$vcsColorSwatch'"
|
146
|
+
tooltip="ACTION BUTTON"
|
147
|
+
small
|
148
|
+
/>
|
149
|
+
</v-card-actions>
|
150
|
+
</v-card>
|
151
|
+
</v-col>
|
152
|
+
<v-col>
|
153
|
+
<v-card>
|
154
|
+
<v-card-title>OVERFLOW</v-card-title>
|
155
|
+
<v-card-actions>
|
156
|
+
<VcsActionButtonList
|
157
|
+
:actions="[
|
158
|
+
{ name: 'Action 1', title: 'Overflow Button with active state', callback: toggle, active },
|
159
|
+
{ name: 'Action 2', title: 'Overflow Button without state', callback: toggle },
|
160
|
+
]"
|
161
|
+
:overflow-count="0"
|
162
|
+
small
|
163
|
+
/>
|
164
|
+
</v-card-actions>
|
165
|
+
</v-card>
|
166
|
+
</v-col>
|
167
|
+
</v-row>
|
168
|
+
</v-list-item-content>
|
169
|
+
</v-list-item>
|
170
|
+
</v-card>
|
171
|
+
</template>
|
172
|
+
<script>
|
173
|
+
import { VcsButton, VcsActionButtonList } from '@vcsuite/ui-components';
|
174
|
+
|
175
|
+
export default {
|
176
|
+
name: 'ButtonExamples',
|
177
|
+
components: { VcsButton, VcsActionButtonList },
|
178
|
+
setup() {
|
179
|
+
return {
|
180
|
+
active: false,
|
181
|
+
disabled: false,
|
182
|
+
update: false,
|
183
|
+
loading: false,
|
184
|
+
toggle() {
|
185
|
+
this.active = !this.active;
|
186
|
+
},
|
187
|
+
};
|
188
|
+
},
|
189
|
+
};
|
190
|
+
</script>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { ButtonLocation, createToggleAction, WindowSlot } from '@vcmap/ui';
|
2
|
+
import ButtonExamples from './ButtonExamples.vue';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @returns {VcsPlugin}
|
6
|
+
*/
|
7
|
+
export default async function buttonExamples() {
|
8
|
+
return {
|
9
|
+
name: 'buttonExamples',
|
10
|
+
onVcsAppMounted(app) {
|
11
|
+
const { action, destroy } = createToggleAction(
|
12
|
+
{
|
13
|
+
name: 'buttonsExamples',
|
14
|
+
icon: '$vcsTouch',
|
15
|
+
},
|
16
|
+
{
|
17
|
+
id: 'button-examples',
|
18
|
+
component: ButtonExamples,
|
19
|
+
slot: WindowSlot.DETACHED,
|
20
|
+
position: {
|
21
|
+
width: 500,
|
22
|
+
},
|
23
|
+
},
|
24
|
+
app.windowManager,
|
25
|
+
'buttonExamples',
|
26
|
+
);
|
27
|
+
app.navbarManager.add({
|
28
|
+
location: ButtonLocation.TOOL,
|
29
|
+
action,
|
30
|
+
}, 'buttonExamples');
|
31
|
+
this._destroyAction = destroy;
|
32
|
+
},
|
33
|
+
destroy() {
|
34
|
+
if (this._destroyAction) {
|
35
|
+
this._destroyAction();
|
36
|
+
this._destroyAction = null;
|
37
|
+
}
|
38
|
+
},
|
39
|
+
};
|
40
|
+
}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<div
|
4
|
+
class="overflow-auto"
|
5
|
+
>
|
6
|
+
<Category
|
7
|
+
v-for="category in categories"
|
8
|
+
:key="category"
|
9
|
+
:category-name="category"
|
10
|
+
/>
|
11
|
+
</div>
|
12
|
+
<hr>
|
13
|
+
<span>
|
14
|
+
<VcsButton icon="$vcsPlus" @click="newDialog = true" />
|
15
|
+
<VcsButton icon="$vcsExport" @click="uploadDialog = true" />
|
16
|
+
</span>
|
17
|
+
|
18
|
+
<v-dialog
|
19
|
+
v-model="newDialog"
|
20
|
+
>
|
21
|
+
<v-card
|
22
|
+
class="pa-2"
|
23
|
+
>
|
24
|
+
<v-form
|
25
|
+
@submit.prevent="add"
|
26
|
+
>
|
27
|
+
<v-select v-model="newCategory.type" :items="['Category', 'AppBackedCategory']" />
|
28
|
+
<v-select
|
29
|
+
v-model="newCategory.collectionName"
|
30
|
+
v-if="newCategory.type === 'category.AppBackedCategory'"
|
31
|
+
:items="appBackedCollectionNames"
|
32
|
+
placeholder="Collection Name"
|
33
|
+
/>
|
34
|
+
<v-text-field v-model="newCategory.name" v-else />
|
35
|
+
<v-btn type="submit">
|
36
|
+
Add
|
37
|
+
</v-btn>
|
38
|
+
</v-form>
|
39
|
+
</v-card>
|
40
|
+
</v-dialog>
|
41
|
+
<v-dialog
|
42
|
+
v-model="uploadDialog"
|
43
|
+
>
|
44
|
+
<v-card>
|
45
|
+
<v-form
|
46
|
+
@submit.prevent="upload"
|
47
|
+
>
|
48
|
+
<v-textarea v-model="uploadString" />
|
49
|
+
<v-btn type="submit">
|
50
|
+
Upload
|
51
|
+
</v-btn>
|
52
|
+
</v-form>
|
53
|
+
</v-card>
|
54
|
+
</v-dialog>
|
55
|
+
</div>
|
56
|
+
</template>
|
57
|
+
|
58
|
+
<script>
|
59
|
+
import { inject, ref, onUnmounted } from '@vue/composition-api';
|
60
|
+
import { VcsButton } from '@vcsuite/ui-components';
|
61
|
+
import Category from './Category.vue';
|
62
|
+
|
63
|
+
export default {
|
64
|
+
name: 'CategoriesComponent',
|
65
|
+
components: {
|
66
|
+
Category,
|
67
|
+
VcsButton,
|
68
|
+
},
|
69
|
+
setup() {
|
70
|
+
const app = inject('vcsApp');
|
71
|
+
const categories = ref([...app.categories].map(c => c.name));
|
72
|
+
const newDialog = ref(false);
|
73
|
+
const uploadDialog = ref(false);
|
74
|
+
const uploadString = ref('');
|
75
|
+
const newCategory = ref({
|
76
|
+
name: 'new',
|
77
|
+
type: 'Category',
|
78
|
+
collectionName: null,
|
79
|
+
});
|
80
|
+
const listeners = [
|
81
|
+
app.categories.added.addEventListener(() => {
|
82
|
+
categories.value = [...app.categories].map(c => c.name);
|
83
|
+
}),
|
84
|
+
app.categories.removed.addEventListener(() => {
|
85
|
+
categories.value = [...app.categories].map(c => c.name);
|
86
|
+
}),
|
87
|
+
];
|
88
|
+
|
89
|
+
onUnmounted(() => {
|
90
|
+
listeners.forEach((cb) => { cb(); });
|
91
|
+
});
|
92
|
+
|
93
|
+
return {
|
94
|
+
categories,
|
95
|
+
newDialog,
|
96
|
+
newCategory,
|
97
|
+
uploadDialog,
|
98
|
+
uploadString,
|
99
|
+
appBackedCollectionNames: [
|
100
|
+
'layers',
|
101
|
+
'maps',
|
102
|
+
'plugins',
|
103
|
+
'viewpoints',
|
104
|
+
'styles',
|
105
|
+
],
|
106
|
+
async add() {
|
107
|
+
const { value: newCategoryValue } = newCategory;
|
108
|
+
if (newCategoryValue.type === 'AppBackedCategory') {
|
109
|
+
newCategoryValue.name = newCategoryValue.collectionName;
|
110
|
+
}
|
111
|
+
await app.categories.requestCategory(newCategoryValue);
|
112
|
+
newCategory.value = {
|
113
|
+
name: 'new',
|
114
|
+
type: 'category.Category',
|
115
|
+
collectionName: null,
|
116
|
+
};
|
117
|
+
newDialog.value = false;
|
118
|
+
},
|
119
|
+
async upload() {
|
120
|
+
try {
|
121
|
+
const jsonUpload = JSON.parse(uploadString.value);
|
122
|
+
if (!jsonUpload.name) {
|
123
|
+
console.error('must provide name');
|
124
|
+
return;
|
125
|
+
}
|
126
|
+
await app.categories.requestCategory({ name: jsonUpload.name, type: 'Category' });
|
127
|
+
if (jsonUpload?.items?.length > 0) {
|
128
|
+
await app.categories.parseCategoryItems(jsonUpload.name, jsonUpload.items, app.dynamicContextId);
|
129
|
+
}
|
130
|
+
uploadString.value = '';
|
131
|
+
uploadDialog.value = false;
|
132
|
+
} catch (e) {
|
133
|
+
console.error('not a valid JSON');
|
134
|
+
}
|
135
|
+
},
|
136
|
+
};
|
137
|
+
},
|
138
|
+
};
|
139
|
+
</script>
|
140
|
+
|
141
|
+
<style scoped>
|
142
|
+
.max-height {
|
143
|
+
max-height: 50%;
|
144
|
+
}
|
145
|
+
</style>
|
@@ -0,0 +1,114 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet>
|
3
|
+
<span class="pa-1 mb-2" @click.stop="open = !open">
|
4
|
+
<span class="headline">
|
5
|
+
{{ categoryName }}
|
6
|
+
</span>
|
7
|
+
<span class="float-right">
|
8
|
+
<vcs-button icon="$vcsPlus" @click="dialog = true" />
|
9
|
+
<vcs-button icon="mdi-download" @click="download" />
|
10
|
+
<a :href="downloadLink" target="_blank" ref="link" download="category.json"/>
|
11
|
+
</span>
|
12
|
+
</span>
|
13
|
+
|
14
|
+
|
15
|
+
<v-virtual-scroll
|
16
|
+
item-height="44px"
|
17
|
+
v-if="open"
|
18
|
+
:height="6 * 44"
|
19
|
+
:items="category"
|
20
|
+
:bench="6"
|
21
|
+
width="100%"
|
22
|
+
>
|
23
|
+
<template #default="{item}">
|
24
|
+
<v-list-item
|
25
|
+
:key="item.name"
|
26
|
+
class="mb-1"
|
27
|
+
>
|
28
|
+
<v-list-item-content>
|
29
|
+
<v-list-item-title class="subtitle-1" >{{ item.name }}</v-list-item-title>
|
30
|
+
<v-list-item-subtitle>{{ item.type }}</v-list-item-subtitle>
|
31
|
+
</v-list-item-content>
|
32
|
+
</v-list-item>
|
33
|
+
</template>
|
34
|
+
</v-virtual-scroll>
|
35
|
+
<v-dialog
|
36
|
+
v-model="dialog"
|
37
|
+
>
|
38
|
+
<v-card>
|
39
|
+
<v-form
|
40
|
+
@submit.prevent="addItem"
|
41
|
+
>
|
42
|
+
<v-textarea v-model="jsonString" />
|
43
|
+
<v-btn type="submit">Add</v-btn>
|
44
|
+
</v-form>
|
45
|
+
</v-card>
|
46
|
+
</v-dialog>
|
47
|
+
</v-sheet>
|
48
|
+
</template>
|
49
|
+
|
50
|
+
<script>
|
51
|
+
import { inject, nextTick, ref } from '@vue/composition-api';
|
52
|
+
import { VcsButton } from '@vcsuite/ui-components';
|
53
|
+
import { getObjectFromClassRegistry } from '@vcmap/core';
|
54
|
+
|
55
|
+
export default {
|
56
|
+
name: 'CategoryComponent',
|
57
|
+
components: { VcsButton },
|
58
|
+
props: {
|
59
|
+
categoryName: {
|
60
|
+
type: String,
|
61
|
+
required: true,
|
62
|
+
},
|
63
|
+
},
|
64
|
+
setup(props) {
|
65
|
+
const app = inject('vcsApp');
|
66
|
+
const categoryObject = app.categories.getByKey(props.categoryName);
|
67
|
+
const dialog = ref(false);
|
68
|
+
const jsonString = ref('{\n}');
|
69
|
+
const category = ref([]);
|
70
|
+
const downloadLink = ref('');
|
71
|
+
const open = ref(true);
|
72
|
+
if (categoryObject) {
|
73
|
+
category.value = [...categoryObject.collection].map(c => ({ name: c.name, type: c.className || 'Object' }));
|
74
|
+
}
|
75
|
+
|
76
|
+
return {
|
77
|
+
dialog,
|
78
|
+
category,
|
79
|
+
jsonString,
|
80
|
+
downloadLink,
|
81
|
+
open,
|
82
|
+
async addItem() {
|
83
|
+
try {
|
84
|
+
const config = JSON.parse(jsonString.value);
|
85
|
+
if (categoryObject.classRegistryName) {
|
86
|
+
categoryObject.collection.add(getObjectFromClassRegistry(app[categoryObject.classRegistryName], config));
|
87
|
+
} else {
|
88
|
+
categoryObject.collection.add(config);
|
89
|
+
}
|
90
|
+
category.value = [...categoryObject.collection].map(c => ({ name: c.name, type: c.className || 'Object' }));
|
91
|
+
jsonString.value = '{\n}';
|
92
|
+
} catch (e) {
|
93
|
+
// eslint-disable-next-line no-console
|
94
|
+
console.error('invalid JSON');
|
95
|
+
}
|
96
|
+
dialog.value = false;
|
97
|
+
},
|
98
|
+
download() {
|
99
|
+
const stringObject = JSON.stringify(categoryObject.serializeForContext(app.dynamicContextId), null, 2);
|
100
|
+
downloadLink.value = `data:text/json;charset=utf-8,${encodeURIComponent(stringObject)}`;
|
101
|
+
if (downloadLink.value) {
|
102
|
+
nextTick(() => {
|
103
|
+
this.$refs.link.click();
|
104
|
+
});
|
105
|
+
}
|
106
|
+
},
|
107
|
+
};
|
108
|
+
},
|
109
|
+
};
|
110
|
+
</script>
|
111
|
+
|
112
|
+
<style scoped>
|
113
|
+
|
114
|
+
</style>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { ButtonLocation, createToggleAction, WindowSlot } from '@vcmap/ui';
|
2
|
+
import Categories from './Categories.vue';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @returns {VcsPlugin}
|
6
|
+
*/
|
7
|
+
export default async function categoryTest() {
|
8
|
+
return {
|
9
|
+
name: '@vcmap/categoryTest',
|
10
|
+
onVcsAppMounted(app) {
|
11
|
+
const { action, destroy } = createToggleAction(
|
12
|
+
{
|
13
|
+
name: 'Category Editor',
|
14
|
+
icon: '$vcsPen',
|
15
|
+
},
|
16
|
+
{
|
17
|
+
id: 'category-editor',
|
18
|
+
component: Categories,
|
19
|
+
slot: WindowSlot.DETACHED,
|
20
|
+
position: {
|
21
|
+
width: 500,
|
22
|
+
},
|
23
|
+
},
|
24
|
+
app.windowManager,
|
25
|
+
'@vcmap/categoryTest',
|
26
|
+
);
|
27
|
+
app.navbarManager.add({
|
28
|
+
id: 'category-editor',
|
29
|
+
location: ButtonLocation.TOOL,
|
30
|
+
action,
|
31
|
+
}, '@vcmap/categoryTest');
|
32
|
+
this._destroyAction = destroy;
|
33
|
+
},
|
34
|
+
destroy() {
|
35
|
+
if (this._destroyAction) {
|
36
|
+
this._destroyAction();
|
37
|
+
this._destroyAction = null;
|
38
|
+
}
|
39
|
+
},
|
40
|
+
};
|
41
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/* eslint-disable no-console */
|
2
|
+
import { ButtonLocation, createToggleAction, WindowPositions, WindowSlot } from '@vcmap/ui';
|
3
|
+
import mySuperComponent from './mySuperComponent.vue';
|
4
|
+
|
5
|
+
/**
|
6
|
+
*
|
7
|
+
* @param {PluginExampleConfig} config
|
8
|
+
* @returns {VcsPlugin}
|
9
|
+
*/
|
10
|
+
export default async function (config) {
|
11
|
+
return {
|
12
|
+
name: '@vcmap/example',
|
13
|
+
initialize(app) {
|
14
|
+
console.log('initialize', app, config);
|
15
|
+
},
|
16
|
+
onVcsAppMounted(app) {
|
17
|
+
console.log('onVcsAppMounted', app, config);
|
18
|
+
// XXX supportedMaps: ['vcs.vcm.maps.Openlayers', 'vcs.vcm.maps.Cesium'],
|
19
|
+
const { action, destroy } = createToggleAction(
|
20
|
+
{
|
21
|
+
name: 'Example',
|
22
|
+
},
|
23
|
+
{
|
24
|
+
id: '228',
|
25
|
+
component: mySuperComponent,
|
26
|
+
slot: WindowSlot.DETACHED,
|
27
|
+
position: {
|
28
|
+
width: 1200,
|
29
|
+
},
|
30
|
+
},
|
31
|
+
app.windowManager,
|
32
|
+
'@vcmap/example',
|
33
|
+
);
|
34
|
+
this._destroyAction = destroy;
|
35
|
+
app.navbarManager.add({
|
36
|
+
location: ButtonLocation.TOOL,
|
37
|
+
action,
|
38
|
+
}, '@vcmap/example');
|
39
|
+
// app.toolboxManager.addToolboxGroup(
|
40
|
+
// {
|
41
|
+
// type: 'toggleButton',
|
42
|
+
// icon: '$vcsPointSelect',
|
43
|
+
// id: 15,
|
44
|
+
// active: true,
|
45
|
+
// },
|
46
|
+
// 15,
|
47
|
+
// );
|
48
|
+
},
|
49
|
+
destroy() {
|
50
|
+
if (this._destroyAction) {
|
51
|
+
this._destroyAction();
|
52
|
+
this._destroyAction = null;
|
53
|
+
}
|
54
|
+
},
|
55
|
+
};
|
56
|
+
}
|