drone_view 3.0.20 → 3.0.21
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/FETCH_HEAD +0 -0
- package/dist/droneView.js +1 -1
- package/dist1/486.droneView.js +1 -0
- package/dist1/514.droneView.js +1 -0
- package/dist1/645.droneView.js +1 -0
- package/dist1/800.droneView.js +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist1/Assets/Images/bing_maps_credit.png +0 -0
- package/dist1/Assets/Images/cesium_credit.png +0 -0
- package/dist1/Assets/Images/google_earth_credit.png +0 -0
- package/dist1/Assets/Images/ion-credit.png +0 -0
- package/dist1/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist1/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist1/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist1/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist1/Assets/Textures/maki/airfield.png +0 -0
- package/dist1/Assets/Textures/maki/airport.png +0 -0
- package/dist1/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist1/Assets/Textures/maki/america-football.png +0 -0
- package/dist1/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist1/Assets/Textures/maki/bakery.png +0 -0
- package/dist1/Assets/Textures/maki/bank.png +0 -0
- package/dist1/Assets/Textures/maki/bar.png +0 -0
- package/dist1/Assets/Textures/maki/baseball.png +0 -0
- package/dist1/Assets/Textures/maki/basketball.png +0 -0
- package/dist1/Assets/Textures/maki/beer.png +0 -0
- package/dist1/Assets/Textures/maki/bicycle.png +0 -0
- package/dist1/Assets/Textures/maki/building.png +0 -0
- package/dist1/Assets/Textures/maki/bus.png +0 -0
- package/dist1/Assets/Textures/maki/cafe.png +0 -0
- package/dist1/Assets/Textures/maki/camera.png +0 -0
- package/dist1/Assets/Textures/maki/campsite.png +0 -0
- package/dist1/Assets/Textures/maki/car.png +0 -0
- package/dist1/Assets/Textures/maki/cemetery.png +0 -0
- package/dist1/Assets/Textures/maki/cesium.png +0 -0
- package/dist1/Assets/Textures/maki/chemist.png +0 -0
- package/dist1/Assets/Textures/maki/cinema.png +0 -0
- package/dist1/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/circle.png +0 -0
- package/dist1/Assets/Textures/maki/city.png +0 -0
- package/dist1/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist1/Assets/Textures/maki/college.png +0 -0
- package/dist1/Assets/Textures/maki/commercial.png +0 -0
- package/dist1/Assets/Textures/maki/cricket.png +0 -0
- package/dist1/Assets/Textures/maki/cross.png +0 -0
- package/dist1/Assets/Textures/maki/dam.png +0 -0
- package/dist1/Assets/Textures/maki/danger.png +0 -0
- package/dist1/Assets/Textures/maki/disability.png +0 -0
- package/dist1/Assets/Textures/maki/dog-park.png +0 -0
- package/dist1/Assets/Textures/maki/embassy.png +0 -0
- package/dist1/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist1/Assets/Textures/maki/entrance.png +0 -0
- package/dist1/Assets/Textures/maki/farm.png +0 -0
- package/dist1/Assets/Textures/maki/fast-food.png +0 -0
- package/dist1/Assets/Textures/maki/ferry.png +0 -0
- package/dist1/Assets/Textures/maki/fire-station.png +0 -0
- package/dist1/Assets/Textures/maki/fuel.png +0 -0
- package/dist1/Assets/Textures/maki/garden.png +0 -0
- package/dist1/Assets/Textures/maki/gift.png +0 -0
- package/dist1/Assets/Textures/maki/golf.png +0 -0
- package/dist1/Assets/Textures/maki/grocery.png +0 -0
- package/dist1/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist1/Assets/Textures/maki/harbor.png +0 -0
- package/dist1/Assets/Textures/maki/heart.png +0 -0
- package/dist1/Assets/Textures/maki/heliport.png +0 -0
- package/dist1/Assets/Textures/maki/hospital.png +0 -0
- package/dist1/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist1/Assets/Textures/maki/industrial.png +0 -0
- package/dist1/Assets/Textures/maki/land-use.png +0 -0
- package/dist1/Assets/Textures/maki/laundry.png +0 -0
- package/dist1/Assets/Textures/maki/library.png +0 -0
- package/dist1/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist1/Assets/Textures/maki/lodging.png +0 -0
- package/dist1/Assets/Textures/maki/logging.png +0 -0
- package/dist1/Assets/Textures/maki/london-underground.png +0 -0
- package/dist1/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/marker.png +0 -0
- package/dist1/Assets/Textures/maki/minefield.png +0 -0
- package/dist1/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist1/Assets/Textures/maki/monument.png +0 -0
- package/dist1/Assets/Textures/maki/museum.png +0 -0
- package/dist1/Assets/Textures/maki/music.png +0 -0
- package/dist1/Assets/Textures/maki/oil-well.png +0 -0
- package/dist1/Assets/Textures/maki/park.png +0 -0
- package/dist1/Assets/Textures/maki/park2.png +0 -0
- package/dist1/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist1/Assets/Textures/maki/parking.png +0 -0
- package/dist1/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist1/Assets/Textures/maki/pitch.png +0 -0
- package/dist1/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist1/Assets/Textures/maki/playground.png +0 -0
- package/dist1/Assets/Textures/maki/police.png +0 -0
- package/dist1/Assets/Textures/maki/polling-place.png +0 -0
- package/dist1/Assets/Textures/maki/post.png +0 -0
- package/dist1/Assets/Textures/maki/prison.png +0 -0
- package/dist1/Assets/Textures/maki/rail-above.png +0 -0
- package/dist1/Assets/Textures/maki/rail-light.png +0 -0
- package/dist1/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist1/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist1/Assets/Textures/maki/rail.png +0 -0
- package/dist1/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist1/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist1/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist1/Assets/Textures/maki/restaurant.png +0 -0
- package/dist1/Assets/Textures/maki/roadblock.png +0 -0
- package/dist1/Assets/Textures/maki/rocket.png +0 -0
- package/dist1/Assets/Textures/maki/school.png +0 -0
- package/dist1/Assets/Textures/maki/scooter.png +0 -0
- package/dist1/Assets/Textures/maki/shop.png +0 -0
- package/dist1/Assets/Textures/maki/skiing.png +0 -0
- package/dist1/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist1/Assets/Textures/maki/soccer.png +0 -0
- package/dist1/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/square.png +0 -0
- package/dist1/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/star.png +0 -0
- package/dist1/Assets/Textures/maki/suitcase.png +0 -0
- package/dist1/Assets/Textures/maki/swimming.png +0 -0
- package/dist1/Assets/Textures/maki/telephone.png +0 -0
- package/dist1/Assets/Textures/maki/tennis.png +0 -0
- package/dist1/Assets/Textures/maki/theatre.png +0 -0
- package/dist1/Assets/Textures/maki/toilets.png +0 -0
- package/dist1/Assets/Textures/maki/town-hall.png +0 -0
- package/dist1/Assets/Textures/maki/town.png +0 -0
- package/dist1/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist1/Assets/Textures/maki/triangle.png +0 -0
- package/dist1/Assets/Textures/maki/village.png +0 -0
- package/dist1/Assets/Textures/maki/warehouse.png +0 -0
- package/dist1/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist1/Assets/Textures/maki/water.png +0 -0
- package/dist1/Assets/Textures/maki/wetland.png +0 -0
- package/dist1/Assets/Textures/maki/zoo.png +0 -0
- package/dist1/Assets/Textures/moonSmall.jpg +0 -0
- package/dist1/Assets/Textures/pin.svg +1 -0
- package/dist1/Assets/Textures/waterNormals.jpg +0 -0
- package/dist1/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist1/Assets/approximateTerrainHeights.json +1 -0
- package/dist1/ThirdParty/Workers/basis_transcoder.js +1 -0
- package/dist1/ThirdParty/Workers/draco_decoder_nodejs.js +1 -0
- package/dist1/ThirdParty/Workers/package.json +1 -0
- package/dist1/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist1/ThirdParty/Workers/pako_deflate.min.js.LICENSE.txt +1 -0
- package/dist1/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist1/ThirdParty/Workers/pako_inflate.min.js.LICENSE.txt +1 -0
- package/dist1/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist1/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist1/ThirdParty/draco_decoder.wasm +0 -0
- package/dist1/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/dist1/Widgets/Animation/Animation.css +176 -0
- package/dist1/Widgets/Animation/lighter.css +99 -0
- package/dist1/Widgets/BaseLayerPicker/BaseLayerPicker.css +117 -0
- package/dist1/Widgets/BaseLayerPicker/lighter.css +33 -0
- package/dist1/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +122 -0
- package/dist1/Widgets/CesiumInspector/CesiumInspector.css +134 -0
- package/dist1/Widgets/CesiumWidget/CesiumWidget.css +124 -0
- package/dist1/Widgets/CesiumWidget/lighter.css +14 -0
- package/dist1/Widgets/FullscreenButton/FullscreenButton.css +7 -0
- package/dist1/Widgets/Geocoder/Geocoder.css +78 -0
- package/dist1/Widgets/Geocoder/lighter.css +19 -0
- package/dist1/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist1/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist1/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/dist1/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist1/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/dist1/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist1/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist1/Widgets/Images/TimelineIcons.png +0 -0
- package/dist1/Widgets/Images/info-loading.gif +0 -0
- package/dist1/Widgets/InfoBox/InfoBox.css +98 -0
- package/dist1/Widgets/InfoBox/InfoBoxDescription.css +90 -0
- package/dist1/Widgets/NavigationHelpButton/NavigationHelpButton.css +112 -0
- package/dist1/Widgets/NavigationHelpButton/lighter.css +46 -0
- package/dist1/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +16 -0
- package/dist1/Widgets/ProjectionPicker/ProjectionPicker.css +49 -0
- package/dist1/Widgets/SceneModePicker/SceneModePicker.css +80 -0
- package/dist1/Widgets/SelectionIndicator/SelectionIndicator.css +21 -0
- package/dist1/Widgets/Timeline/Timeline.css +114 -0
- package/dist1/Widgets/Timeline/lighter.css +20 -0
- package/dist1/Widgets/VRButton/VRButton.css +7 -0
- package/dist1/Widgets/Viewer/Viewer.css +118 -0
- package/dist1/Widgets/VoxelInspector/VoxelInspector.css +20 -0
- package/dist1/Widgets/lighter.css +7 -0
- package/dist1/Widgets/lighterShared.css +52 -0
- package/dist1/Widgets/shared.css +117 -0
- package/dist1/Widgets/widgets.css +18 -0
- package/dist1/Workers/ArcType-26a3f38d.js +1 -0
- package/dist1/Workers/AttributeCompression-48e336db.js +1 -0
- package/dist1/Workers/AxisAlignedBoundingBox-39ab50d0.js +1 -0
- package/dist1/Workers/BoundingRectangle-2379df5a.js +1 -0
- package/dist1/Workers/BoxGeometry-61fa3148.js +1 -0
- package/dist1/Workers/Color-7d827393.js +1 -0
- package/dist1/Workers/ComponentDatatype-ab629b88.js +1 -0
- package/dist1/Workers/CoplanarPolygonGeometryLibrary-9cff5a6c.js +1 -0
- package/dist1/Workers/CorridorGeometryLibrary-28996bf3.js +1 -0
- package/dist1/Workers/CylinderGeometry-966ff1e5.js +1 -0
- package/dist1/Workers/CylinderGeometryLibrary-f49f33a8.js +1 -0
- package/dist1/Workers/EllipseGeometry-fddb3596.js +1 -0
- package/dist1/Workers/EllipseGeometryLibrary-08d055cc.js +1 -0
- package/dist1/Workers/EllipseOutlineGeometry-a72d7da8.js +1 -0
- package/dist1/Workers/EllipsoidGeodesic-2723ab86.js +1 -0
- package/dist1/Workers/EllipsoidGeometry-fd18adbd.js +1 -0
- package/dist1/Workers/EllipsoidOutlineGeometry-d9d02643.js +1 -0
- package/dist1/Workers/EllipsoidRhumbLine-77eff028.js +1 -0
- package/dist1/Workers/EllipsoidTangentPlane-82f2a887.js +1 -0
- package/dist1/Workers/EncodedCartesian3-5e2017ab.js +1 -0
- package/dist1/Workers/FrustumGeometry-9378eccf.js +1 -0
- package/dist1/Workers/GeometryAttribute-81ff775c.js +1 -0
- package/dist1/Workers/GeometryAttributes-1e4ddcd2.js +1 -0
- package/dist1/Workers/GeometryInstance-0318e0cd.js +1 -0
- package/dist1/Workers/GeometryOffsetAttribute-2579b8d2.js +1 -0
- package/dist1/Workers/GeometryPipeline-e049e700.js +1 -0
- package/dist1/Workers/IndexDatatype-d3db4e7d.js +1 -0
- package/dist1/Workers/IntersectionTests-357c3d7f.js +1 -0
- package/dist1/Workers/Math-2ce22ee9.js +1 -0
- package/dist1/Workers/Matrix2-413c4048.js +1 -0
- package/dist1/Workers/Matrix3-81054f0f.js +1 -0
- package/dist1/Workers/OrientedBoundingBox-cfd17917.js +1 -0
- package/dist1/Workers/Plane-6add0ae1.js +1 -0
- package/dist1/Workers/PolygonGeometryLibrary-003d1689.js +1 -0
- package/dist1/Workers/PolygonPipeline-61ca1579.js +1 -0
- package/dist1/Workers/PolylinePipeline-8495667b.js +1 -0
- package/dist1/Workers/PolylineVolumeGeometryLibrary-2df3f067.js +1 -0
- package/dist1/Workers/PrimitivePipeline-8033b34b.js +1 -0
- package/dist1/Workers/RectangleGeometryLibrary-a0a06d23.js +1 -0
- package/dist1/Workers/RuntimeError-9b4ce3fb.js +1 -0
- package/dist1/Workers/TerrainEncoding-bd5c9ed5.js +1 -0
- package/dist1/Workers/Transforms-fce95115.js +2 -0
- package/dist1/Workers/Transforms-fce95115.js.LICENSE.txt +12 -0
- package/dist1/Workers/VertexFormat-fbdec922.js +1 -0
- package/dist1/Workers/WallGeometryLibrary-1c767084.js +1 -0
- package/dist1/Workers/WebGLConstants-7f557f93.js +1 -0
- package/dist1/Workers/WebMercatorProjection-943e2226.js +1 -0
- package/dist1/Workers/arrayRemoveDuplicates-9b636830.js +1 -0
- package/dist1/Workers/cesiumWorkerBootstrapper.js +2 -0
- package/dist1/Workers/cesiumWorkerBootstrapper.js.LICENSE.txt +30 -0
- package/dist1/Workers/combine-0c102d93.js +1 -0
- package/dist1/Workers/combineGeometry.js +1 -0
- package/dist1/Workers/createBoxGeometry.js +1 -0
- package/dist1/Workers/createBoxOutlineGeometry.js +1 -0
- package/dist1/Workers/createCircleGeometry.js +1 -0
- package/dist1/Workers/createCircleOutlineGeometry.js +1 -0
- package/dist1/Workers/createCoplanarPolygonGeometry.js +1 -0
- package/dist1/Workers/createCoplanarPolygonOutlineGeometry.js +1 -0
- package/dist1/Workers/createCorridorGeometry.js +1 -0
- package/dist1/Workers/createCorridorOutlineGeometry.js +1 -0
- package/dist1/Workers/createCylinderGeometry.js +1 -0
- package/dist1/Workers/createCylinderOutlineGeometry.js +1 -0
- package/dist1/Workers/createEllipseGeometry.js +1 -0
- package/dist1/Workers/createEllipseOutlineGeometry.js +1 -0
- package/dist1/Workers/createEllipsoidGeometry.js +1 -0
- package/dist1/Workers/createEllipsoidOutlineGeometry.js +1 -0
- package/dist1/Workers/createFrustumGeometry.js +1 -0
- package/dist1/Workers/createFrustumOutlineGeometry.js +1 -0
- package/dist1/Workers/createGeometry.js +1 -0
- package/dist1/Workers/createGroundPolylineGeometry.js +1 -0
- package/dist1/Workers/createPlaneGeometry.js +1 -0
- package/dist1/Workers/createPlaneOutlineGeometry.js +1 -0
- package/dist1/Workers/createPolygonGeometry.js +1 -0
- package/dist1/Workers/createPolygonOutlineGeometry.js +1 -0
- package/dist1/Workers/createPolylineGeometry.js +1 -0
- package/dist1/Workers/createPolylineVolumeGeometry.js +1 -0
- package/dist1/Workers/createPolylineVolumeOutlineGeometry.js +1 -0
- package/dist1/Workers/createRectangleGeometry.js +1 -0
- package/dist1/Workers/createRectangleOutlineGeometry.js +1 -0
- package/dist1/Workers/createSimplePolylineGeometry.js +1 -0
- package/dist1/Workers/createSphereGeometry.js +1 -0
- package/dist1/Workers/createSphereOutlineGeometry.js +1 -0
- package/dist1/Workers/createTaskProcessorWorker.js +1 -0
- package/dist1/Workers/createVectorTileClampedPolylines.js +1 -0
- package/dist1/Workers/createVectorTileGeometries.js +1 -0
- package/dist1/Workers/createVectorTilePoints.js +1 -0
- package/dist1/Workers/createVectorTilePolygons.js +1 -0
- package/dist1/Workers/createVectorTilePolylines.js +1 -0
- package/dist1/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -0
- package/dist1/Workers/createVerticesFromHeightmap.js +2 -0
- package/dist1/Workers/createVerticesFromHeightmap.js.LICENSE.txt +1 -0
- package/dist1/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -0
- package/dist1/Workers/createWallGeometry.js +1 -0
- package/dist1/Workers/createWallOutlineGeometry.js +1 -0
- package/dist1/Workers/decodeDraco.js +1 -0
- package/dist1/Workers/decodeGoogleEarthEnterprisePacket.js +1 -0
- package/dist1/Workers/decodeI3S.js +1 -0
- package/dist1/Workers/defaultValue-f6d5e6da.js +1 -0
- package/dist1/Workers/package.js +2 -0
- package/dist1/Workers/package.js.LICENSE.txt +24 -0
- package/dist1/Workers/transcodeKTX2.js +1 -0
- package/dist1/Workers/transferTypedArrayTest.js +2 -0
- package/dist1/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
- package/dist1/Workers/upsampleQuantizedTerrainMesh.js +1 -0
- package/dist1/droneView.js +2 -0
- package/dist1/droneView.js.LICENSE.txt +80 -0
- package/package.json +1 -1
- package/src/app.interface.ts +0 -684
- package/src/droneView.ts +0 -1070
- package/src/event.ts +0 -359
- package/src/layers/annotation.ts +0 -175
- package/src/layers/droneImages.ts +0 -199
- package/src/layers/editLine.ts +0 -521
- package/src/layers/editPoint.ts +0 -345
- package/src/layers/editPolygon.ts +0 -511
- package/src/layers/line.ts +0 -210
- package/src/layers/marker.ts +0 -333
- package/src/layers/marker3d.ts +0 -326
- package/src/layers/model.ts +0 -253
- package/src/layers/note.ts +0 -333
- package/src/layers/ortho.ts +0 -76
- package/src/layers/polygon.ts +0 -218
- package/src/measurement.ts +0 -374
- package/src/utility.ts +0 -802
- /package/{dist → dist1}/_382d.droneView.js +0 -0
- /package/{dist → dist1}/_6b2a.droneView.js +0 -0
- /package/{dist → dist1}/_9839.droneView.js +0 -0
- /package/{dist → dist1}/_afdc.droneView.js +0 -0
package/src/event.ts
DELETED
@@ -1,359 +0,0 @@
|
|
1
|
-
import { Cesium3DTileset, Entity, ScreenSpaceEventHandler, ScreenSpaceEventType } from 'cesium';
|
2
|
-
import CenterOfMasss from '@turf/center-of-mass';
|
3
|
-
import type { Point, SingleLocationFeature } from './app.interface';
|
4
|
-
import { cartesianToGeojson, cartesianToPoint } from './utility';
|
5
|
-
import type CesiumView from './droneView';
|
6
|
-
|
7
|
-
export default class EventManager {
|
8
|
-
mapObject: CesiumView;
|
9
|
-
|
10
|
-
handler: ScreenSpaceEventHandler;
|
11
|
-
|
12
|
-
layerEvents: any = [];
|
13
|
-
|
14
|
-
mouseGlobalPostion: Point;
|
15
|
-
|
16
|
-
mouseOverEntity: Entity | null;
|
17
|
-
|
18
|
-
isMouseOver: boolean = false;
|
19
|
-
|
20
|
-
constructor(mapObject: CesiumView) {
|
21
|
-
this.mapObject = mapObject;
|
22
|
-
this.handler = new ScreenSpaceEventHandler(
|
23
|
-
this.mapObject.viewer.scene.canvas
|
24
|
-
);
|
25
|
-
this.handler.setInputAction(
|
26
|
-
this.click.bind(this),
|
27
|
-
ScreenSpaceEventType.LEFT_CLICK
|
28
|
-
);
|
29
|
-
this.handler.setInputAction(
|
30
|
-
this.mouseMove.bind(this),
|
31
|
-
ScreenSpaceEventType.MOUSE_MOVE
|
32
|
-
);
|
33
|
-
}
|
34
|
-
|
35
|
-
addListener(event: string, layerId: string, callback: Function) {
|
36
|
-
if (this.layerEvents[event] === undefined) {
|
37
|
-
this.layerEvents[event] = [];
|
38
|
-
}
|
39
|
-
|
40
|
-
this.layerEvents[event][layerId] = callback;
|
41
|
-
}
|
42
|
-
|
43
|
-
/** Handle click event for all the layer */
|
44
|
-
click(event: any) {
|
45
|
-
if (this.layerEvents.click === undefined) {
|
46
|
-
return;
|
47
|
-
}
|
48
|
-
|
49
|
-
if (this.layerEvents.click !== undefined) {
|
50
|
-
if (this.mapObject.viewer.scene.pickPositionSupported) {
|
51
|
-
let result: any;
|
52
|
-
|
53
|
-
const position = this.mapObject.viewer.camera.pickEllipsoid(
|
54
|
-
event.position
|
55
|
-
);
|
56
|
-
let point: any;
|
57
|
-
if (position) {
|
58
|
-
point = cartesianToPoint(position);
|
59
|
-
} else {
|
60
|
-
const ray = this.mapObject.viewer.scene.camera.getPickRay(
|
61
|
-
event.position
|
62
|
-
)!;
|
63
|
-
const position2D = this.mapObject.viewer.scene.globe.pick(
|
64
|
-
ray,
|
65
|
-
this.mapObject.viewer.scene
|
66
|
-
)!;
|
67
|
-
point = cartesianToPoint(position2D);
|
68
|
-
}
|
69
|
-
|
70
|
-
const pickedObject = this.mapObject.viewer.scene.drillPick(
|
71
|
-
event.position
|
72
|
-
);
|
73
|
-
if (pickedObject.length > 0) {
|
74
|
-
const entity = pickedObject[0].id;
|
75
|
-
|
76
|
-
if (entity && entity instanceof Entity) {
|
77
|
-
this.mouseGlobalPostion = point;
|
78
|
-
result = {
|
79
|
-
id: pickedObject[0].id || entity.id,
|
80
|
-
lngLat: {
|
81
|
-
lat: point.lat,
|
82
|
-
lng: point.long,
|
83
|
-
height: point.height,
|
84
|
-
},
|
85
|
-
point: event.position,
|
86
|
-
target: this.mapObject.viewer,
|
87
|
-
type: 'click',
|
88
|
-
features: [
|
89
|
-
this.entityToSingleLocationFeature(entity),
|
90
|
-
],
|
91
|
-
};
|
92
|
-
}
|
93
|
-
|
94
|
-
Object.keys(this.layerEvents.click).forEach(
|
95
|
-
(layerId: string) => {
|
96
|
-
if (entity && layerId === (entity as any).layerId) {
|
97
|
-
this.layerEvents.click[layerId](result);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
);
|
101
|
-
} else {
|
102
|
-
result = {
|
103
|
-
lngLat: {
|
104
|
-
lat: point.lat,
|
105
|
-
lng: point.long,
|
106
|
-
height: point.height,
|
107
|
-
},
|
108
|
-
point: event.position,
|
109
|
-
target: this.mapObject.viewer,
|
110
|
-
type: 'click',
|
111
|
-
features: [],
|
112
|
-
};
|
113
|
-
|
114
|
-
Object.keys(this.layerEvents.click).forEach(
|
115
|
-
(layerId: string) => {
|
116
|
-
this.layerEvents.click[layerId](result);
|
117
|
-
}
|
118
|
-
);
|
119
|
-
}
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
mouseMove(event: any) {
|
125
|
-
if (!event.endPosition) {
|
126
|
-
return;
|
127
|
-
}
|
128
|
-
|
129
|
-
if (
|
130
|
-
!(
|
131
|
-
this.layerEvents.mousemove !== undefined ||
|
132
|
-
this.layerEvents.mouseenter !== undefined ||
|
133
|
-
this.layerEvents.mouseout !== undefined
|
134
|
-
)
|
135
|
-
) {
|
136
|
-
return;
|
137
|
-
}
|
138
|
-
|
139
|
-
if (this.mapObject.viewer.scene.pickPositionSupported) {
|
140
|
-
let result: any;
|
141
|
-
|
142
|
-
const position = this.mapObject.viewer.camera.pickEllipsoid(
|
143
|
-
event.endPosition
|
144
|
-
);
|
145
|
-
let point: any;
|
146
|
-
if (position) {
|
147
|
-
point = cartesianToPoint(position);
|
148
|
-
} else {
|
149
|
-
const ray = this.mapObject.viewer.scene.camera.getPickRay(
|
150
|
-
event.endPosition
|
151
|
-
)!;
|
152
|
-
const position2D = this.mapObject.viewer.scene.globe.pick(
|
153
|
-
ray,
|
154
|
-
this.mapObject.viewer.scene
|
155
|
-
);
|
156
|
-
|
157
|
-
if (!position2D) {
|
158
|
-
return;
|
159
|
-
}
|
160
|
-
|
161
|
-
point = cartesianToPoint(position2D);
|
162
|
-
}
|
163
|
-
|
164
|
-
let pickedObject = this.mapObject.viewer.scene.drillPick(
|
165
|
-
event.endPosition
|
166
|
-
);
|
167
|
-
|
168
|
-
// console.log(pickedObject);
|
169
|
-
|
170
|
-
pickedObject = pickedObject.filter(object=> !(object?.primitive instanceof Cesium3DTileset));
|
171
|
-
|
172
|
-
|
173
|
-
if (pickedObject.length > 0) {
|
174
|
-
const entity: any = pickedObject[0].id;
|
175
|
-
|
176
|
-
if (entity && entity instanceof Entity) {
|
177
|
-
this.mouseGlobalPostion = point;
|
178
|
-
result = {
|
179
|
-
id:
|
180
|
-
((entity as any).data && (entity as any).data.id) ||
|
181
|
-
entity.id,
|
182
|
-
lngLat: {
|
183
|
-
lat: point.lat,
|
184
|
-
lng: point.long,
|
185
|
-
height: point.height,
|
186
|
-
},
|
187
|
-
point: event.position,
|
188
|
-
target: this.mapObject.viewer,
|
189
|
-
type: 'mousemove',
|
190
|
-
features: [this.entityToSingleLocationFeature(entity)],
|
191
|
-
};
|
192
|
-
|
193
|
-
this.mouseOver(entity, result);
|
194
|
-
|
195
|
-
if (
|
196
|
-
this.layerEvents.mousemove !== undefined &&
|
197
|
-
this.isMouseOver &&
|
198
|
-
this.mouseOverEntity
|
199
|
-
) {
|
200
|
-
Object.keys(this.layerEvents.mousemove).forEach(
|
201
|
-
(layerId: string) => {
|
202
|
-
if (layerId === (entity as any).layerId) {
|
203
|
-
if (
|
204
|
-
layerId ===
|
205
|
-
(this.mouseOverEntity as any).layerId
|
206
|
-
) {
|
207
|
-
this.layerEvents.mousemove[layerId](
|
208
|
-
result
|
209
|
-
);
|
210
|
-
} else {
|
211
|
-
this.mouseOut();
|
212
|
-
this.mouseOver(entity, result);
|
213
|
-
}
|
214
|
-
}
|
215
|
-
}
|
216
|
-
);
|
217
|
-
}
|
218
|
-
}
|
219
|
-
} else {
|
220
|
-
this.mouseOut();
|
221
|
-
}
|
222
|
-
}
|
223
|
-
}
|
224
|
-
|
225
|
-
mouseOver(entity: any, event: any) {
|
226
|
-
if (
|
227
|
-
this.layerEvents.mouseenter !== undefined &&
|
228
|
-
!this.isMouseOver &&
|
229
|
-
!this.mouseOverEntity
|
230
|
-
) {
|
231
|
-
Object.keys(this.layerEvents.mouseenter).forEach(
|
232
|
-
(layerId: string) => {
|
233
|
-
if (layerId === (entity as any).layerId) {
|
234
|
-
this.mouseOverEntity = entity;
|
235
|
-
this.isMouseOver = true;
|
236
|
-
this.layerEvents.mouseenter[layerId](event);
|
237
|
-
}
|
238
|
-
}
|
239
|
-
);
|
240
|
-
}
|
241
|
-
}
|
242
|
-
|
243
|
-
mouseOut() {
|
244
|
-
const self = this;
|
245
|
-
if (
|
246
|
-
self.layerEvents.mouseout !== undefined &&
|
247
|
-
self.isMouseOver &&
|
248
|
-
self.mouseOverEntity
|
249
|
-
) {
|
250
|
-
Object.keys(self.layerEvents.mouseout).forEach(
|
251
|
-
(layerId: string) => {
|
252
|
-
if (
|
253
|
-
self.mouseOverEntity &&
|
254
|
-
self.isMouseOver &&
|
255
|
-
layerId === (self.mouseOverEntity as any).layerId
|
256
|
-
) {
|
257
|
-
self.mouseOverEntity = null;
|
258
|
-
self.isMouseOver = false;
|
259
|
-
self.layerEvents.mouseout[layerId]();
|
260
|
-
}
|
261
|
-
}
|
262
|
-
);
|
263
|
-
}
|
264
|
-
}
|
265
|
-
|
266
|
-
// eslint-disable-next-line class-methods-use-this
|
267
|
-
private entityToSingleLocationFeature(
|
268
|
-
entity: Entity
|
269
|
-
): SingleLocationFeature | undefined {
|
270
|
-
if (entity.billboard || entity.ellipse) {
|
271
|
-
const position: any = entity.position!.valueOf();
|
272
|
-
// eslint-disable-next-line no-underscore-dangle
|
273
|
-
const point = cartesianToPoint(position._value);
|
274
|
-
return {
|
275
|
-
geometry: 'Point',
|
276
|
-
lat: point.lat,
|
277
|
-
long: point.long,
|
278
|
-
height: point.height || 0,
|
279
|
-
properties: (entity as any).data,
|
280
|
-
};
|
281
|
-
}
|
282
|
-
if (entity.plane) {
|
283
|
-
const position: any = entity.position!.valueOf();
|
284
|
-
// eslint-disable-next-line no-underscore-dangle
|
285
|
-
const point = cartesianToPoint(position._value);
|
286
|
-
return {
|
287
|
-
geometry: 'Point',
|
288
|
-
lat: point.lat,
|
289
|
-
long: point.long,
|
290
|
-
height: point.height || 0,
|
291
|
-
properties: (entity as any).data,
|
292
|
-
};
|
293
|
-
}
|
294
|
-
if (entity.polyline) {
|
295
|
-
return {
|
296
|
-
geometry: 'Point',
|
297
|
-
lat: this.mouseGlobalPostion.lat,
|
298
|
-
long: this.mouseGlobalPostion.long,
|
299
|
-
height: this.mouseGlobalPostion.height || 0,
|
300
|
-
properties: (entity as any).data,
|
301
|
-
};
|
302
|
-
}
|
303
|
-
if (entity.polygon) {
|
304
|
-
const { positions } = (entity.polygon.hierarchy as any).valueOf();
|
305
|
-
|
306
|
-
if(!positions){
|
307
|
-
return undefined;
|
308
|
-
}
|
309
|
-
|
310
|
-
const center = CenterOfMasss(
|
311
|
-
cartesianToGeojson(positions, 'Polygon')
|
312
|
-
);
|
313
|
-
|
314
|
-
return {
|
315
|
-
geometry: 'Point',
|
316
|
-
lat: center.geometry.coordinates[1],
|
317
|
-
long: center.geometry.coordinates[0],
|
318
|
-
height: 0,
|
319
|
-
properties: (entity as any).data,
|
320
|
-
};
|
321
|
-
}
|
322
|
-
|
323
|
-
if (entity.cylinder) {
|
324
|
-
const position: any = entity.position!.valueOf();
|
325
|
-
if(!position){
|
326
|
-
return undefined;
|
327
|
-
}
|
328
|
-
// eslint-disable-next-line no-underscore-dangle
|
329
|
-
const point = cartesianToPoint(position._value);
|
330
|
-
|
331
|
-
return {
|
332
|
-
geometry: 'Point',
|
333
|
-
lat: point.lat,
|
334
|
-
long: point.long,
|
335
|
-
height: point.height || 0,
|
336
|
-
properties: (entity as any).data,
|
337
|
-
};
|
338
|
-
}
|
339
|
-
|
340
|
-
return undefined;
|
341
|
-
}
|
342
|
-
|
343
|
-
removeLayerListner(event: string, layerId: string) {
|
344
|
-
if (this.layerEvents[event] && this.layerEvents[event][layerId]) {
|
345
|
-
delete this.layerEvents[event][layerId];
|
346
|
-
}
|
347
|
-
}
|
348
|
-
|
349
|
-
removeLayerListners(layerId: string) {
|
350
|
-
Object.values(this.layerEvents).forEach((eventType: any) => {
|
351
|
-
Object.keys(eventType).forEach((layerid: string) => {
|
352
|
-
if (layerid === layerId) {
|
353
|
-
// eslint-disable-next-line no-param-reassign
|
354
|
-
delete eventType[layerid];
|
355
|
-
}
|
356
|
-
});
|
357
|
-
});
|
358
|
-
}
|
359
|
-
}
|
package/src/layers/annotation.ts
DELETED
@@ -1,175 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
CustomDataSource,
|
3
|
-
HeadingPitchRange,
|
4
|
-
Math as cMath,
|
5
|
-
Cartesian3,
|
6
|
-
Cartesian2,
|
7
|
-
} from "cesium";
|
8
|
-
|
9
|
-
import type CesiumView from "../droneView";
|
10
|
-
|
11
|
-
import { addPolyLineFilled, getPolygonEntity } from "../utility";
|
12
|
-
|
13
|
-
import {
|
14
|
-
AnnotationData,
|
15
|
-
Options,
|
16
|
-
PolygonData,
|
17
|
-
PolygonOptions,
|
18
|
-
} from "../app.interface";
|
19
|
-
|
20
|
-
/**
|
21
|
-
* Use this class to create a marker layer
|
22
|
-
* @extends {GenericLayer}
|
23
|
-
* @param {MapBox} mapObject - The mapbox map object
|
24
|
-
* @param {string} uniqueName - The unique name of the layer
|
25
|
-
* @param {PolygonData[]} data - The data to be used in the layer
|
26
|
-
* @param {PolygonOptions} options - The options for the layer (see {@link PolygonOptions})
|
27
|
-
*/
|
28
|
-
export default class Annotation {
|
29
|
-
annotationLayerId: string;
|
30
|
-
|
31
|
-
uniqueName: string;
|
32
|
-
|
33
|
-
mapObject: CesiumView;
|
34
|
-
|
35
|
-
options: PolygonOptions;
|
36
|
-
|
37
|
-
layer: CustomDataSource;
|
38
|
-
|
39
|
-
data: AnnotationData[];
|
40
|
-
|
41
|
-
/**
|
42
|
-
* @param { CesiumView } mapObject map object
|
43
|
-
* @param { string }uniqueName string unique name for the layer
|
44
|
-
* @param { AnnotationData[] } data
|
45
|
-
* @param { Options } options
|
46
|
-
*/
|
47
|
-
constructor(
|
48
|
-
mapObject: CesiumView,
|
49
|
-
uniqueName: string,
|
50
|
-
data: AnnotationData[],
|
51
|
-
options: Options
|
52
|
-
) {
|
53
|
-
this.annotationLayerId = `annotation-${this.uniqueName}`;
|
54
|
-
this.data = data;
|
55
|
-
this.mapObject = mapObject;
|
56
|
-
this.uniqueName = uniqueName;
|
57
|
-
this.options = options;
|
58
|
-
|
59
|
-
this.buildLayer();
|
60
|
-
this.add(this.data).then(() => {
|
61
|
-
if (this.options.setBounds === undefined || this.options.setBounds) {
|
62
|
-
this.setBounds();
|
63
|
-
}
|
64
|
-
});
|
65
|
-
}
|
66
|
-
|
67
|
-
/** To initialize layer */
|
68
|
-
public buildLayer(): void {
|
69
|
-
if (
|
70
|
-
this.mapObject.viewer.dataSources.getByName(
|
71
|
-
"annotation-" + this.uniqueName
|
72
|
-
)
|
73
|
-
) {
|
74
|
-
this.mapObject.viewer.dataSources.remove(
|
75
|
-
this.mapObject.viewer.dataSources.getByName(
|
76
|
-
"annotation-" + this.uniqueName
|
77
|
-
)[0],
|
78
|
-
true
|
79
|
-
);
|
80
|
-
}
|
81
|
-
this.layer = new CustomDataSource("annotation-" + this.uniqueName);
|
82
|
-
|
83
|
-
this.mapObject.viewer.dataSources.add(this.layer);
|
84
|
-
}
|
85
|
-
|
86
|
-
/** To add layer on map */
|
87
|
-
public add(data: AnnotationData[]) {
|
88
|
-
const self = this;
|
89
|
-
|
90
|
-
return new Promise<void>((resolve) => {
|
91
|
-
self.addToMap(data).then(() => {
|
92
|
-
this.mapObject.viewer.dataSources.add(this.layer);
|
93
|
-
|
94
|
-
this.mapObject.viewer.scene.requestRender();
|
95
|
-
resolve();
|
96
|
-
});
|
97
|
-
});
|
98
|
-
}
|
99
|
-
|
100
|
-
/**
|
101
|
-
* Add data on map
|
102
|
-
* @param { AnnotationData } data
|
103
|
-
*/
|
104
|
-
public addToMap(data: AnnotationData[]) {
|
105
|
-
return new Promise<void>((resolve) => {
|
106
|
-
const cartesians: any = [];
|
107
|
-
|
108
|
-
data.forEach((point: any) => {
|
109
|
-
cartesians.push(Cartesian3.fromDegrees(point.point[0], point.point[1]));
|
110
|
-
});
|
111
|
-
|
112
|
-
this.mapObject.viewer.scene
|
113
|
-
.clampToHeightMostDetailed(cartesians)
|
114
|
-
.then((pos) => {
|
115
|
-
pos.forEach((position: Cartesian3, i: number) => {
|
116
|
-
|
117
|
-
const svg = `
|
118
|
-
<svg width="200" height="150" xmlns="http://www.w3.org/2000/svg">
|
119
|
-
<!-- Rectangle -->
|
120
|
-
<rect x="50" y="30" width="100" height="60" fill="#000000" rx="5" opacity="0.85" stroke="${data[i].properties.color}" stroke-width="2" />
|
121
|
-
|
122
|
-
<!-- Text -->
|
123
|
-
<text x="100" y="65" text-anchor="middle" font-size="13" fill="#ffffff">${data[i].properties.name}</text>
|
124
|
-
|
125
|
-
<!-- Vertical Line -->
|
126
|
-
<line x1="100" y1="90" x2="100" y2="140" stroke="${data[i].properties.color}" stroke-width="2" />
|
127
|
-
|
128
|
-
<!-- Arrowhead -->
|
129
|
-
<polygon points="95,135 100,145 105,135" fill="${data[i].properties.color}" />
|
130
|
-
</svg>
|
131
|
-
`;
|
132
|
-
|
133
|
-
const point = {
|
134
|
-
position: position,
|
135
|
-
billboard: {
|
136
|
-
image: `data:image/svg+xml;base64,${window.btoa(svg)}`,
|
137
|
-
pixelOffset : new Cartesian2(0,-90),
|
138
|
-
},
|
139
|
-
};
|
140
|
-
|
141
|
-
this.layer.entities.add(point);
|
142
|
-
});
|
143
|
-
});
|
144
|
-
});
|
145
|
-
}
|
146
|
-
|
147
|
-
/** to set map bouds fit with layer data */
|
148
|
-
public setBounds(): void {
|
149
|
-
const time = this.options.setBoundsInstant ? 0 : undefined;
|
150
|
-
this.mapObject.viewer.flyTo(this.layer.entities, {
|
151
|
-
duration: time,
|
152
|
-
offset: new HeadingPitchRange(
|
153
|
-
cMath.toRadians(this.mapObject.viewer.camera.heading),
|
154
|
-
-Math.PI / 2,
|
155
|
-
0
|
156
|
-
),
|
157
|
-
});
|
158
|
-
}
|
159
|
-
|
160
|
-
/** Remove layer from map and destroy layer */
|
161
|
-
public remove(): void {
|
162
|
-
this.mapObject.viewer.dataSources.remove(this.layer, true);
|
163
|
-
this.mapObject.viewer.scene.requestRender();
|
164
|
-
}
|
165
|
-
|
166
|
-
show() {
|
167
|
-
this.layer.entities.show = true;
|
168
|
-
this.mapObject.viewer.scene.requestRender();
|
169
|
-
}
|
170
|
-
|
171
|
-
hide() {
|
172
|
-
this.layer.entities.show = false;
|
173
|
-
this.mapObject.viewer.scene.requestRender();
|
174
|
-
}
|
175
|
-
}
|