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.
Files changed (408) hide show
  1. package/FETCH_HEAD +0 -0
  2. package/dist/droneView.js +1 -1
  3. package/dist1/486.droneView.js +1 -0
  4. package/dist1/514.droneView.js +1 -0
  5. package/dist1/645.droneView.js +1 -0
  6. package/dist1/800.droneView.js +1 -0
  7. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
  8. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
  9. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
  10. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
  11. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
  12. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
  13. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
  14. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
  15. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
  16. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
  17. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
  18. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
  19. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
  20. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
  21. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
  22. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
  23. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
  24. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
  25. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
  26. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
  27. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
  28. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
  29. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
  30. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
  31. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
  32. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
  33. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
  34. package/dist1/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
  35. package/dist1/Assets/Images/bing_maps_credit.png +0 -0
  36. package/dist1/Assets/Images/cesium_credit.png +0 -0
  37. package/dist1/Assets/Images/google_earth_credit.png +0 -0
  38. package/dist1/Assets/Images/ion-credit.png +0 -0
  39. package/dist1/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  40. package/dist1/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  41. package/dist1/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  42. package/dist1/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  43. package/dist1/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  44. package/dist1/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  45. package/dist1/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  46. package/dist1/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  47. package/dist1/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  48. package/dist1/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  49. package/dist1/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  50. package/dist1/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  51. package/dist1/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  52. package/dist1/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  53. package/dist1/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  54. package/dist1/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  55. package/dist1/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  56. package/dist1/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  57. package/dist1/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  58. package/dist1/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  59. package/dist1/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  60. package/dist1/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  61. package/dist1/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  62. package/dist1/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  63. package/dist1/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  64. package/dist1/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  65. package/dist1/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  66. package/dist1/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  67. package/dist1/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  68. package/dist1/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  69. package/dist1/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  70. package/dist1/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  71. package/dist1/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  72. package/dist1/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  73. package/dist1/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  74. package/dist1/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  75. package/dist1/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  76. package/dist1/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  77. package/dist1/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  78. package/dist1/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  79. package/dist1/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  80. package/dist1/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  81. package/dist1/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  82. package/dist1/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  83. package/dist1/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  84. package/dist1/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  85. package/dist1/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  86. package/dist1/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  87. package/dist1/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  88. package/dist1/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  89. package/dist1/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  90. package/dist1/Assets/Textures/maki/airfield.png +0 -0
  91. package/dist1/Assets/Textures/maki/airport.png +0 -0
  92. package/dist1/Assets/Textures/maki/alcohol-shop.png +0 -0
  93. package/dist1/Assets/Textures/maki/america-football.png +0 -0
  94. package/dist1/Assets/Textures/maki/art-gallery.png +0 -0
  95. package/dist1/Assets/Textures/maki/bakery.png +0 -0
  96. package/dist1/Assets/Textures/maki/bank.png +0 -0
  97. package/dist1/Assets/Textures/maki/bar.png +0 -0
  98. package/dist1/Assets/Textures/maki/baseball.png +0 -0
  99. package/dist1/Assets/Textures/maki/basketball.png +0 -0
  100. package/dist1/Assets/Textures/maki/beer.png +0 -0
  101. package/dist1/Assets/Textures/maki/bicycle.png +0 -0
  102. package/dist1/Assets/Textures/maki/building.png +0 -0
  103. package/dist1/Assets/Textures/maki/bus.png +0 -0
  104. package/dist1/Assets/Textures/maki/cafe.png +0 -0
  105. package/dist1/Assets/Textures/maki/camera.png +0 -0
  106. package/dist1/Assets/Textures/maki/campsite.png +0 -0
  107. package/dist1/Assets/Textures/maki/car.png +0 -0
  108. package/dist1/Assets/Textures/maki/cemetery.png +0 -0
  109. package/dist1/Assets/Textures/maki/cesium.png +0 -0
  110. package/dist1/Assets/Textures/maki/chemist.png +0 -0
  111. package/dist1/Assets/Textures/maki/cinema.png +0 -0
  112. package/dist1/Assets/Textures/maki/circle-stroked.png +0 -0
  113. package/dist1/Assets/Textures/maki/circle.png +0 -0
  114. package/dist1/Assets/Textures/maki/city.png +0 -0
  115. package/dist1/Assets/Textures/maki/clothing-store.png +0 -0
  116. package/dist1/Assets/Textures/maki/college.png +0 -0
  117. package/dist1/Assets/Textures/maki/commercial.png +0 -0
  118. package/dist1/Assets/Textures/maki/cricket.png +0 -0
  119. package/dist1/Assets/Textures/maki/cross.png +0 -0
  120. package/dist1/Assets/Textures/maki/dam.png +0 -0
  121. package/dist1/Assets/Textures/maki/danger.png +0 -0
  122. package/dist1/Assets/Textures/maki/disability.png +0 -0
  123. package/dist1/Assets/Textures/maki/dog-park.png +0 -0
  124. package/dist1/Assets/Textures/maki/embassy.png +0 -0
  125. package/dist1/Assets/Textures/maki/emergency-telephone.png +0 -0
  126. package/dist1/Assets/Textures/maki/entrance.png +0 -0
  127. package/dist1/Assets/Textures/maki/farm.png +0 -0
  128. package/dist1/Assets/Textures/maki/fast-food.png +0 -0
  129. package/dist1/Assets/Textures/maki/ferry.png +0 -0
  130. package/dist1/Assets/Textures/maki/fire-station.png +0 -0
  131. package/dist1/Assets/Textures/maki/fuel.png +0 -0
  132. package/dist1/Assets/Textures/maki/garden.png +0 -0
  133. package/dist1/Assets/Textures/maki/gift.png +0 -0
  134. package/dist1/Assets/Textures/maki/golf.png +0 -0
  135. package/dist1/Assets/Textures/maki/grocery.png +0 -0
  136. package/dist1/Assets/Textures/maki/hairdresser.png +0 -0
  137. package/dist1/Assets/Textures/maki/harbor.png +0 -0
  138. package/dist1/Assets/Textures/maki/heart.png +0 -0
  139. package/dist1/Assets/Textures/maki/heliport.png +0 -0
  140. package/dist1/Assets/Textures/maki/hospital.png +0 -0
  141. package/dist1/Assets/Textures/maki/ice-cream.png +0 -0
  142. package/dist1/Assets/Textures/maki/industrial.png +0 -0
  143. package/dist1/Assets/Textures/maki/land-use.png +0 -0
  144. package/dist1/Assets/Textures/maki/laundry.png +0 -0
  145. package/dist1/Assets/Textures/maki/library.png +0 -0
  146. package/dist1/Assets/Textures/maki/lighthouse.png +0 -0
  147. package/dist1/Assets/Textures/maki/lodging.png +0 -0
  148. package/dist1/Assets/Textures/maki/logging.png +0 -0
  149. package/dist1/Assets/Textures/maki/london-underground.png +0 -0
  150. package/dist1/Assets/Textures/maki/marker-stroked.png +0 -0
  151. package/dist1/Assets/Textures/maki/marker.png +0 -0
  152. package/dist1/Assets/Textures/maki/minefield.png +0 -0
  153. package/dist1/Assets/Textures/maki/mobilephone.png +0 -0
  154. package/dist1/Assets/Textures/maki/monument.png +0 -0
  155. package/dist1/Assets/Textures/maki/museum.png +0 -0
  156. package/dist1/Assets/Textures/maki/music.png +0 -0
  157. package/dist1/Assets/Textures/maki/oil-well.png +0 -0
  158. package/dist1/Assets/Textures/maki/park.png +0 -0
  159. package/dist1/Assets/Textures/maki/park2.png +0 -0
  160. package/dist1/Assets/Textures/maki/parking-garage.png +0 -0
  161. package/dist1/Assets/Textures/maki/parking.png +0 -0
  162. package/dist1/Assets/Textures/maki/pharmacy.png +0 -0
  163. package/dist1/Assets/Textures/maki/pitch.png +0 -0
  164. package/dist1/Assets/Textures/maki/place-of-worship.png +0 -0
  165. package/dist1/Assets/Textures/maki/playground.png +0 -0
  166. package/dist1/Assets/Textures/maki/police.png +0 -0
  167. package/dist1/Assets/Textures/maki/polling-place.png +0 -0
  168. package/dist1/Assets/Textures/maki/post.png +0 -0
  169. package/dist1/Assets/Textures/maki/prison.png +0 -0
  170. package/dist1/Assets/Textures/maki/rail-above.png +0 -0
  171. package/dist1/Assets/Textures/maki/rail-light.png +0 -0
  172. package/dist1/Assets/Textures/maki/rail-metro.png +0 -0
  173. package/dist1/Assets/Textures/maki/rail-underground.png +0 -0
  174. package/dist1/Assets/Textures/maki/rail.png +0 -0
  175. package/dist1/Assets/Textures/maki/religious-christian.png +0 -0
  176. package/dist1/Assets/Textures/maki/religious-jewish.png +0 -0
  177. package/dist1/Assets/Textures/maki/religious-muslim.png +0 -0
  178. package/dist1/Assets/Textures/maki/restaurant.png +0 -0
  179. package/dist1/Assets/Textures/maki/roadblock.png +0 -0
  180. package/dist1/Assets/Textures/maki/rocket.png +0 -0
  181. package/dist1/Assets/Textures/maki/school.png +0 -0
  182. package/dist1/Assets/Textures/maki/scooter.png +0 -0
  183. package/dist1/Assets/Textures/maki/shop.png +0 -0
  184. package/dist1/Assets/Textures/maki/skiing.png +0 -0
  185. package/dist1/Assets/Textures/maki/slaughterhouse.png +0 -0
  186. package/dist1/Assets/Textures/maki/soccer.png +0 -0
  187. package/dist1/Assets/Textures/maki/square-stroked.png +0 -0
  188. package/dist1/Assets/Textures/maki/square.png +0 -0
  189. package/dist1/Assets/Textures/maki/star-stroked.png +0 -0
  190. package/dist1/Assets/Textures/maki/star.png +0 -0
  191. package/dist1/Assets/Textures/maki/suitcase.png +0 -0
  192. package/dist1/Assets/Textures/maki/swimming.png +0 -0
  193. package/dist1/Assets/Textures/maki/telephone.png +0 -0
  194. package/dist1/Assets/Textures/maki/tennis.png +0 -0
  195. package/dist1/Assets/Textures/maki/theatre.png +0 -0
  196. package/dist1/Assets/Textures/maki/toilets.png +0 -0
  197. package/dist1/Assets/Textures/maki/town-hall.png +0 -0
  198. package/dist1/Assets/Textures/maki/town.png +0 -0
  199. package/dist1/Assets/Textures/maki/triangle-stroked.png +0 -0
  200. package/dist1/Assets/Textures/maki/triangle.png +0 -0
  201. package/dist1/Assets/Textures/maki/village.png +0 -0
  202. package/dist1/Assets/Textures/maki/warehouse.png +0 -0
  203. package/dist1/Assets/Textures/maki/waste-basket.png +0 -0
  204. package/dist1/Assets/Textures/maki/water.png +0 -0
  205. package/dist1/Assets/Textures/maki/wetland.png +0 -0
  206. package/dist1/Assets/Textures/maki/zoo.png +0 -0
  207. package/dist1/Assets/Textures/moonSmall.jpg +0 -0
  208. package/dist1/Assets/Textures/pin.svg +1 -0
  209. package/dist1/Assets/Textures/waterNormals.jpg +0 -0
  210. package/dist1/Assets/Textures/waterNormalsSmall.jpg +0 -0
  211. package/dist1/Assets/approximateTerrainHeights.json +1 -0
  212. package/dist1/ThirdParty/Workers/basis_transcoder.js +1 -0
  213. package/dist1/ThirdParty/Workers/draco_decoder_nodejs.js +1 -0
  214. package/dist1/ThirdParty/Workers/package.json +1 -0
  215. package/dist1/ThirdParty/Workers/pako_deflate.min.js +2 -0
  216. package/dist1/ThirdParty/Workers/pako_deflate.min.js.LICENSE.txt +1 -0
  217. package/dist1/ThirdParty/Workers/pako_inflate.min.js +2 -0
  218. package/dist1/ThirdParty/Workers/pako_inflate.min.js.LICENSE.txt +1 -0
  219. package/dist1/ThirdParty/Workers/z-worker-pako.js +1 -0
  220. package/dist1/ThirdParty/basis_transcoder.wasm +0 -0
  221. package/dist1/ThirdParty/draco_decoder.wasm +0 -0
  222. package/dist1/ThirdParty/google-earth-dbroot-parser.js +1 -0
  223. package/dist1/Widgets/Animation/Animation.css +176 -0
  224. package/dist1/Widgets/Animation/lighter.css +99 -0
  225. package/dist1/Widgets/BaseLayerPicker/BaseLayerPicker.css +117 -0
  226. package/dist1/Widgets/BaseLayerPicker/lighter.css +33 -0
  227. package/dist1/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +122 -0
  228. package/dist1/Widgets/CesiumInspector/CesiumInspector.css +134 -0
  229. package/dist1/Widgets/CesiumWidget/CesiumWidget.css +124 -0
  230. package/dist1/Widgets/CesiumWidget/lighter.css +14 -0
  231. package/dist1/Widgets/FullscreenButton/FullscreenButton.css +7 -0
  232. package/dist1/Widgets/Geocoder/Geocoder.css +78 -0
  233. package/dist1/Widgets/Geocoder/lighter.css +19 -0
  234. package/dist1/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  235. package/dist1/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  236. package/dist1/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  237. package/dist1/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  238. package/dist1/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  239. package/dist1/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
  240. package/dist1/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
  241. package/dist1/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
  242. package/dist1/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  243. package/dist1/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  244. package/dist1/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  245. package/dist1/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  246. package/dist1/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  247. package/dist1/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  248. package/dist1/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  249. package/dist1/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  250. package/dist1/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  251. package/dist1/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  252. package/dist1/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  253. package/dist1/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  254. package/dist1/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  255. package/dist1/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  256. package/dist1/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  257. package/dist1/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  258. package/dist1/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  259. package/dist1/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  260. package/dist1/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  261. package/dist1/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  262. package/dist1/Widgets/Images/TimelineIcons.png +0 -0
  263. package/dist1/Widgets/Images/info-loading.gif +0 -0
  264. package/dist1/Widgets/InfoBox/InfoBox.css +98 -0
  265. package/dist1/Widgets/InfoBox/InfoBoxDescription.css +90 -0
  266. package/dist1/Widgets/NavigationHelpButton/NavigationHelpButton.css +112 -0
  267. package/dist1/Widgets/NavigationHelpButton/lighter.css +46 -0
  268. package/dist1/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +16 -0
  269. package/dist1/Widgets/ProjectionPicker/ProjectionPicker.css +49 -0
  270. package/dist1/Widgets/SceneModePicker/SceneModePicker.css +80 -0
  271. package/dist1/Widgets/SelectionIndicator/SelectionIndicator.css +21 -0
  272. package/dist1/Widgets/Timeline/Timeline.css +114 -0
  273. package/dist1/Widgets/Timeline/lighter.css +20 -0
  274. package/dist1/Widgets/VRButton/VRButton.css +7 -0
  275. package/dist1/Widgets/Viewer/Viewer.css +118 -0
  276. package/dist1/Widgets/VoxelInspector/VoxelInspector.css +20 -0
  277. package/dist1/Widgets/lighter.css +7 -0
  278. package/dist1/Widgets/lighterShared.css +52 -0
  279. package/dist1/Widgets/shared.css +117 -0
  280. package/dist1/Widgets/widgets.css +18 -0
  281. package/dist1/Workers/ArcType-26a3f38d.js +1 -0
  282. package/dist1/Workers/AttributeCompression-48e336db.js +1 -0
  283. package/dist1/Workers/AxisAlignedBoundingBox-39ab50d0.js +1 -0
  284. package/dist1/Workers/BoundingRectangle-2379df5a.js +1 -0
  285. package/dist1/Workers/BoxGeometry-61fa3148.js +1 -0
  286. package/dist1/Workers/Color-7d827393.js +1 -0
  287. package/dist1/Workers/ComponentDatatype-ab629b88.js +1 -0
  288. package/dist1/Workers/CoplanarPolygonGeometryLibrary-9cff5a6c.js +1 -0
  289. package/dist1/Workers/CorridorGeometryLibrary-28996bf3.js +1 -0
  290. package/dist1/Workers/CylinderGeometry-966ff1e5.js +1 -0
  291. package/dist1/Workers/CylinderGeometryLibrary-f49f33a8.js +1 -0
  292. package/dist1/Workers/EllipseGeometry-fddb3596.js +1 -0
  293. package/dist1/Workers/EllipseGeometryLibrary-08d055cc.js +1 -0
  294. package/dist1/Workers/EllipseOutlineGeometry-a72d7da8.js +1 -0
  295. package/dist1/Workers/EllipsoidGeodesic-2723ab86.js +1 -0
  296. package/dist1/Workers/EllipsoidGeometry-fd18adbd.js +1 -0
  297. package/dist1/Workers/EllipsoidOutlineGeometry-d9d02643.js +1 -0
  298. package/dist1/Workers/EllipsoidRhumbLine-77eff028.js +1 -0
  299. package/dist1/Workers/EllipsoidTangentPlane-82f2a887.js +1 -0
  300. package/dist1/Workers/EncodedCartesian3-5e2017ab.js +1 -0
  301. package/dist1/Workers/FrustumGeometry-9378eccf.js +1 -0
  302. package/dist1/Workers/GeometryAttribute-81ff775c.js +1 -0
  303. package/dist1/Workers/GeometryAttributes-1e4ddcd2.js +1 -0
  304. package/dist1/Workers/GeometryInstance-0318e0cd.js +1 -0
  305. package/dist1/Workers/GeometryOffsetAttribute-2579b8d2.js +1 -0
  306. package/dist1/Workers/GeometryPipeline-e049e700.js +1 -0
  307. package/dist1/Workers/IndexDatatype-d3db4e7d.js +1 -0
  308. package/dist1/Workers/IntersectionTests-357c3d7f.js +1 -0
  309. package/dist1/Workers/Math-2ce22ee9.js +1 -0
  310. package/dist1/Workers/Matrix2-413c4048.js +1 -0
  311. package/dist1/Workers/Matrix3-81054f0f.js +1 -0
  312. package/dist1/Workers/OrientedBoundingBox-cfd17917.js +1 -0
  313. package/dist1/Workers/Plane-6add0ae1.js +1 -0
  314. package/dist1/Workers/PolygonGeometryLibrary-003d1689.js +1 -0
  315. package/dist1/Workers/PolygonPipeline-61ca1579.js +1 -0
  316. package/dist1/Workers/PolylinePipeline-8495667b.js +1 -0
  317. package/dist1/Workers/PolylineVolumeGeometryLibrary-2df3f067.js +1 -0
  318. package/dist1/Workers/PrimitivePipeline-8033b34b.js +1 -0
  319. package/dist1/Workers/RectangleGeometryLibrary-a0a06d23.js +1 -0
  320. package/dist1/Workers/RuntimeError-9b4ce3fb.js +1 -0
  321. package/dist1/Workers/TerrainEncoding-bd5c9ed5.js +1 -0
  322. package/dist1/Workers/Transforms-fce95115.js +2 -0
  323. package/dist1/Workers/Transforms-fce95115.js.LICENSE.txt +12 -0
  324. package/dist1/Workers/VertexFormat-fbdec922.js +1 -0
  325. package/dist1/Workers/WallGeometryLibrary-1c767084.js +1 -0
  326. package/dist1/Workers/WebGLConstants-7f557f93.js +1 -0
  327. package/dist1/Workers/WebMercatorProjection-943e2226.js +1 -0
  328. package/dist1/Workers/arrayRemoveDuplicates-9b636830.js +1 -0
  329. package/dist1/Workers/cesiumWorkerBootstrapper.js +2 -0
  330. package/dist1/Workers/cesiumWorkerBootstrapper.js.LICENSE.txt +30 -0
  331. package/dist1/Workers/combine-0c102d93.js +1 -0
  332. package/dist1/Workers/combineGeometry.js +1 -0
  333. package/dist1/Workers/createBoxGeometry.js +1 -0
  334. package/dist1/Workers/createBoxOutlineGeometry.js +1 -0
  335. package/dist1/Workers/createCircleGeometry.js +1 -0
  336. package/dist1/Workers/createCircleOutlineGeometry.js +1 -0
  337. package/dist1/Workers/createCoplanarPolygonGeometry.js +1 -0
  338. package/dist1/Workers/createCoplanarPolygonOutlineGeometry.js +1 -0
  339. package/dist1/Workers/createCorridorGeometry.js +1 -0
  340. package/dist1/Workers/createCorridorOutlineGeometry.js +1 -0
  341. package/dist1/Workers/createCylinderGeometry.js +1 -0
  342. package/dist1/Workers/createCylinderOutlineGeometry.js +1 -0
  343. package/dist1/Workers/createEllipseGeometry.js +1 -0
  344. package/dist1/Workers/createEllipseOutlineGeometry.js +1 -0
  345. package/dist1/Workers/createEllipsoidGeometry.js +1 -0
  346. package/dist1/Workers/createEllipsoidOutlineGeometry.js +1 -0
  347. package/dist1/Workers/createFrustumGeometry.js +1 -0
  348. package/dist1/Workers/createFrustumOutlineGeometry.js +1 -0
  349. package/dist1/Workers/createGeometry.js +1 -0
  350. package/dist1/Workers/createGroundPolylineGeometry.js +1 -0
  351. package/dist1/Workers/createPlaneGeometry.js +1 -0
  352. package/dist1/Workers/createPlaneOutlineGeometry.js +1 -0
  353. package/dist1/Workers/createPolygonGeometry.js +1 -0
  354. package/dist1/Workers/createPolygonOutlineGeometry.js +1 -0
  355. package/dist1/Workers/createPolylineGeometry.js +1 -0
  356. package/dist1/Workers/createPolylineVolumeGeometry.js +1 -0
  357. package/dist1/Workers/createPolylineVolumeOutlineGeometry.js +1 -0
  358. package/dist1/Workers/createRectangleGeometry.js +1 -0
  359. package/dist1/Workers/createRectangleOutlineGeometry.js +1 -0
  360. package/dist1/Workers/createSimplePolylineGeometry.js +1 -0
  361. package/dist1/Workers/createSphereGeometry.js +1 -0
  362. package/dist1/Workers/createSphereOutlineGeometry.js +1 -0
  363. package/dist1/Workers/createTaskProcessorWorker.js +1 -0
  364. package/dist1/Workers/createVectorTileClampedPolylines.js +1 -0
  365. package/dist1/Workers/createVectorTileGeometries.js +1 -0
  366. package/dist1/Workers/createVectorTilePoints.js +1 -0
  367. package/dist1/Workers/createVectorTilePolygons.js +1 -0
  368. package/dist1/Workers/createVectorTilePolylines.js +1 -0
  369. package/dist1/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -0
  370. package/dist1/Workers/createVerticesFromHeightmap.js +2 -0
  371. package/dist1/Workers/createVerticesFromHeightmap.js.LICENSE.txt +1 -0
  372. package/dist1/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -0
  373. package/dist1/Workers/createWallGeometry.js +1 -0
  374. package/dist1/Workers/createWallOutlineGeometry.js +1 -0
  375. package/dist1/Workers/decodeDraco.js +1 -0
  376. package/dist1/Workers/decodeGoogleEarthEnterprisePacket.js +1 -0
  377. package/dist1/Workers/decodeI3S.js +1 -0
  378. package/dist1/Workers/defaultValue-f6d5e6da.js +1 -0
  379. package/dist1/Workers/package.js +2 -0
  380. package/dist1/Workers/package.js.LICENSE.txt +24 -0
  381. package/dist1/Workers/transcodeKTX2.js +1 -0
  382. package/dist1/Workers/transferTypedArrayTest.js +2 -0
  383. package/dist1/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
  384. package/dist1/Workers/upsampleQuantizedTerrainMesh.js +1 -0
  385. package/dist1/droneView.js +2 -0
  386. package/dist1/droneView.js.LICENSE.txt +80 -0
  387. package/package.json +1 -1
  388. package/src/app.interface.ts +0 -684
  389. package/src/droneView.ts +0 -1070
  390. package/src/event.ts +0 -359
  391. package/src/layers/annotation.ts +0 -175
  392. package/src/layers/droneImages.ts +0 -199
  393. package/src/layers/editLine.ts +0 -521
  394. package/src/layers/editPoint.ts +0 -345
  395. package/src/layers/editPolygon.ts +0 -511
  396. package/src/layers/line.ts +0 -210
  397. package/src/layers/marker.ts +0 -333
  398. package/src/layers/marker3d.ts +0 -326
  399. package/src/layers/model.ts +0 -253
  400. package/src/layers/note.ts +0 -333
  401. package/src/layers/ortho.ts +0 -76
  402. package/src/layers/polygon.ts +0 -218
  403. package/src/measurement.ts +0 -374
  404. package/src/utility.ts +0 -802
  405. /package/{dist → dist1}/_382d.droneView.js +0 -0
  406. /package/{dist → dist1}/_6b2a.droneView.js +0 -0
  407. /package/{dist → dist1}/_9839.droneView.js +0 -0
  408. /package/{dist → dist1}/_afdc.droneView.js +0 -0
@@ -1,333 +0,0 @@
1
- import {
2
- Cartesian2,
3
- Color,
4
- CustomDataSource,
5
- BillboardGraphics,
6
- Math as cMath,
7
- HeadingPitchRange,
8
- Cartesian3,
9
- HeightReference,
10
- VerticalOrigin,
11
- } from "cesium";
12
-
13
- import type CesiumView from "../droneView";
14
-
15
- import { MarkerData, MarkerIcon, MarkerOptions } from "../app.interface";
16
- import { addLabel } from "../utility";
17
-
18
- /**
19
- * Use this class to create a marker layer
20
- * @param {MapBox} mapObject - The mapbox map object
21
- * @param {string} uniqueName - The unique name of the layer
22
- * @param {MarkerData[]} data - The data to be used in the layer
23
- * @param {MarkerOptions} options - The options for the layer (see {@link MarkerOptions})
24
- */
25
-
26
- export default class MarkerLayer {
27
- markerLayerId: string;
28
-
29
- icons: BillboardGraphics[] = [];
30
-
31
- markerSize: number = 12.5;
32
-
33
- allowSVGs: boolean = false;
34
-
35
- opacity: number;
36
-
37
- layer: CustomDataSource;
38
-
39
- /**
40
- * @param mapObject CesiumView map object
41
- * @param uniqueName string unique name for the layer
42
- * @param data Array<MarkerData>
43
- * @param options MarkerOptions
44
- */
45
- constructor(
46
- public mapObject: CesiumView,
47
- public uniqueName: string,
48
- public data: Array<MarkerData>,
49
- public options: MarkerOptions
50
- ) {
51
- this.markerLayerId = `marker-layer-${this.uniqueName}`;
52
-
53
- this.opacity = 1;
54
-
55
- this.allowSVGs = true;
56
- const agent = navigator.userAgent.toLowerCase();
57
- if (
58
- (typeof this.options.allowSVGs !== "undefined" &&
59
- !this.options.allowSVGs) ||
60
- (agent.indexOf("chrome") === -1 &&
61
- (agent.indexOf("edg") !== -1 ||
62
- agent.indexOf("edge") !== -1 ||
63
- agent.indexOf("msie") !== -1 ||
64
- agent.indexOf("trident") > -1 ||
65
- agent.indexOf("firefox") > -1 ||
66
- agent.indexOf("safari") > -1))
67
- ) {
68
- this.allowSVGs = false;
69
- }
70
-
71
- // load icons before adding marker on map
72
- this.loadIcons().then(() => {
73
- this.buildLayer();
74
- this.add(this.data).then(() => {
75
- if (this.options.setBounds === undefined || this.options.setBounds) {
76
- this.setBounds();
77
- }
78
- this.addListeners();
79
- });
80
- });
81
- }
82
-
83
- /** To initialize layer */
84
- public buildLayer(): void {
85
- if (
86
- this.mapObject.viewer.dataSources.getByName("marker" + this.uniqueName)
87
- ) {
88
- this.mapObject.viewer.dataSources.remove(
89
- this.mapObject.viewer.dataSources.getByName(
90
- "marker" + this.uniqueName
91
- )[0],
92
- true
93
- );
94
- }
95
- this.layer = new CustomDataSource("marker" + this.uniqueName);
96
- }
97
-
98
- /** To add layer on map */
99
- public add(data: MarkerData[]) {
100
- const self = this;
101
-
102
- return new Promise<void>((resolve) => {
103
- self.addToMap(data).then(() => {
104
- this.mapObject.viewer.dataSources.add(this.layer);
105
-
106
- this.mapObject.viewer.scene.requestRender();
107
- resolve();
108
- });
109
- });
110
- }
111
-
112
- /**
113
- *
114
- * @param { MarkerData[] } data - load data on map
115
- * @returns { void }
116
- */
117
- public async addToMap(data: MarkerData[]): Promise<void> {
118
- const cartesians: any = [];
119
- const cartesiansWith3D: any = [];
120
-
121
- data.forEach((point: any) => {
122
- if (point.point[2])
123
- {
124
- cartesiansWith3D.push(Cartesian3.fromDegrees(point.point[0], point.point[1], point.point[2]));
125
- }
126
- else{
127
- cartesians.push(Cartesian3.fromDegrees(point.point[0], point.point[1]));
128
- }
129
- });
130
-
131
- const addMarkers = (positions: Cartesian3[]): void => {
132
- positions.forEach((position: Cartesian3, i: number) => {
133
- const iconIndex = Object.keys(this.options.icons).findIndex(
134
- (icon) =>
135
- icon === data[i].properties.icon ||
136
- (this.options.icons[+icon] &&
137
- this.options.icons[+icon].name === data[i].properties.icon)
138
- );
139
-
140
- if (iconIndex >= 0) {
141
- const selected_icon_src = this.options.icons[+iconIndex].src
142
- for (const hash of this.icons) {
143
- const billBoardSource = (hash.image as any)._value;
144
- if (billBoardSource === selected_icon_src){
145
- const pin = {
146
- position,
147
- billboard: hash,
148
- label : {
149
- text: (data[i].properties.label || ''),
150
- font : '16px sans-serif',
151
- eyeOffset : Cartesian3.ZERO,
152
- showBackground: true,
153
- pixelOffset : new Cartesian2(0,-20),
154
- data: data[i].properties,
155
- layerId: this.markerLayerId,
156
- },
157
- data: data[i].properties,
158
- layerId: this.markerLayerId,
159
- };
160
- this.layer.entities.add(pin);
161
- }
162
- }
163
- }
164
- });
165
- };
166
-
167
- addMarkers(cartesiansWith3D);
168
- const updatedCartesiansWith3D = await this.mapObject.viewer.scene.clampToHeightMostDetailed(cartesians);
169
- addMarkers(updatedCartesiansWith3D);
170
- }
171
-
172
- /**
173
- * Loads all specified marker icons and adds them to the map. Icons must be loaded before they can be used.
174
- */
175
- private loadIcons() {
176
- const self = this;
177
- return new Promise<void>((resolve) => {
178
- const loadCommands: any = [];
179
- const { icons } = self.options;
180
-
181
- Object.keys(icons).forEach((iconID: any) => {
182
- if (iconID !== "contains") {
183
- console.log(icons[iconID]);
184
- loadCommands.push(self.load(icons[iconID]));
185
- }
186
- });
187
- Promise.all(loadCommands)
188
- .then(() => {
189
- resolve();
190
- })
191
- .catch(() => {
192
- const loadingElement = document.getElementById("main-loading");
193
- if (loadingElement) {
194
- loadingElement.style.display = "none";
195
- }
196
- });
197
- });
198
- }
199
-
200
- /**
201
- *
202
- * @param { MarkerIcon } icon - create bill board from icons
203
- * @returns { void }
204
- */
205
- load(icon: MarkerIcon) {
206
- const self = this;
207
- return new Promise<void>((resolve) => {
208
- let url = icon.src;
209
- if (
210
- this.options.allowSVGs &&
211
- (typeof icon.options.allowSVG === "undefined" || icon.options.allowSVG)
212
- ) {
213
- url = url.replace(".png", ".svg");
214
- }
215
- const { pixelRatio } = icon.options;
216
- console.log(url);
217
-
218
- const image: any = new Image();
219
- const visibility = icon?.options?.deficiency === true ? 0 : Number.POSITIVE_INFINITY
220
- image.onload = function () {
221
- self.icons.push(
222
- new BillboardGraphics({
223
- image: url,
224
- color: Color.WHITE.withAlpha(self.opacity || 1),
225
- disableDepthTestDistance: visibility,
226
- verticalOrigin: VerticalOrigin.BASELINE,
227
- pixelOffset : new Cartesian2(0,-30),
228
- width: this.width / +(pixelRatio || 4),
229
- height: this.height / +(pixelRatio || 4),
230
- rotation: cMath.toRadians(self.options.rotate || 0),
231
- })
232
- );
233
- resolve();
234
- };
235
- image.src = url;
236
- });
237
- }
238
-
239
- /** Set bounds after adding a layer */
240
- public setBounds(): void {
241
- const time = this.options.setBoundsInstant ? 0 : undefined;
242
- this.mapObject.viewer.flyTo(this.layer.entities, {
243
- duration: time,
244
- offset: new HeadingPitchRange(
245
- cMath.toRadians(this.mapObject.viewer.camera.heading),
246
- -Math.PI / 2,
247
- 0
248
- ),
249
- });
250
- }
251
-
252
- public addListeners() {
253
- var isMouseOverMarker = false;
254
- let hoverTimer: NodeJS.Timeout | undefined;
255
-
256
- this.mapObject.addLayerListener('click', this.markerLayerId, (event: any) => {
257
- if(this.options.onClick){
258
- this.options.onClick(event);
259
- }
260
- });
261
-
262
- this.mapObject.addLayerListener(
263
- 'mousemove',
264
- this.markerLayerId,
265
- (e: any) => {
266
- this.mapObject.viewer.canvas.style.cursor = 'pointer';
267
- if (!isMouseOverMarker) {
268
- const hoverEvent = event
269
- isMouseOverMarker = true;
270
- hoverTimer = setTimeout(() => {
271
- if (this.options.onHover) {
272
- this.options.onHover(e, hoverEvent);
273
- }
274
- }, 1000);
275
- }
276
- }
277
- );
278
-
279
- this.mapObject.addLayerListener(
280
- 'mouseenter',
281
- this.markerLayerId,
282
- (event: any) => {
283
- this.mapObject.viewer.canvas.style.cursor = 'pointer';
284
- }
285
- );
286
-
287
- this.mapObject.addLayerListener('mouseout', this.markerLayerId, () => {
288
- isMouseOverMarker = false;
289
- clearTimeout(hoverTimer);
290
- this.mapObject.viewer.canvas.style.cursor = '';
291
- if (this.options.clearHover) {
292
- this.options.clearHover(event);
293
- }
294
- });
295
- }
296
-
297
- /** Removes all listeners added by this layer */
298
- public removeListeners() {
299
- this.mapObject.removeLayerListeners(this.markerLayerId);
300
- }
301
-
302
- /** Remove layer from map and destroy layer */
303
- public remove(): void {
304
- this.mapObject.viewer.dataSources.remove(this.layer, true);
305
- this.removeListeners();
306
- this.mapObject.viewer.scene.requestRender();
307
- }
308
-
309
- /** enables visibility of the layer */
310
- public show(): void {
311
- this.layer.show = true;
312
- }
313
-
314
- /** Disables visibility of the layer */
315
- public hide(): void {
316
- this.layer.show = false;
317
- }
318
-
319
- /**
320
- * Sets opacity of the layer
321
- * @param opacity number between 0-1
322
- */
323
- public setOpacity(opacity: number): void {
324
- this.opacity = opacity;
325
- this.icons = [];
326
- this.loadIcons().then(() => {
327
- this.opacity = opacity;
328
- this.remove();
329
- this.buildLayer();
330
- this.add(this.data);
331
- });
332
- }
333
- }
@@ -1,326 +0,0 @@
1
- import {
2
- Cartesian2,
3
- Color,
4
- CustomDataSource,
5
- BillboardGraphics,
6
- Math as cMath,
7
- HeadingPitchRange,
8
- Cartesian3,
9
- HeightReference,
10
- VerticalOrigin,
11
- Entity,
12
- ScreenSpaceEventHandler,
13
- ScreenSpaceEventType,
14
- } from "cesium";
15
-
16
- import type CesiumView from "../droneView";
17
-
18
- import { MarkerData, MarkerIcon, MarkerOptions } from "../app.interface";
19
-
20
- /**
21
- * Use this class to create a marker layer
22
- * @param {MapBox} mapObject - The mapbox map object
23
- * @param {string} uniqueName - The unique name of the layer
24
- * @param {MarkerData[]} data - The data to be used in the layer
25
- * @param {MarkerOptions} options - The options for the layer (see {@link MarkerOptions})
26
- */
27
- export default class Marker3DLayer {
28
- markerLayerId: string;
29
-
30
- icons: Entity[] = [];
31
-
32
- markerSize: number = 12.5;
33
-
34
- allowSVGs: boolean = false;
35
-
36
- opacity: number;
37
-
38
- layer: CustomDataSource;
39
- handler: ScreenSpaceEventHandler;
40
- hoverTimeout: NodeJS.Timeout | undefined;
41
- isMouseOverMarker: boolean = false
42
-
43
- /**
44
- * @param mapObject CesiumView map object
45
- * @param uniqueName string unique name for the layer
46
- * @param data Array<MarkerData>
47
- * @param options MarkerOptions
48
- */
49
- constructor(
50
- public mapObject: CesiumView,
51
- public uniqueName: string,
52
- public data: Array<MarkerData>,
53
- public options: MarkerOptions
54
- ) {
55
- this.markerLayerId = `marker-layer-${this.uniqueName}`;
56
-
57
- this.opacity = 1;
58
-
59
- // this.allowSVGs = true;
60
- // const agent = navigator.userAgent.toLowerCase();
61
- // if (
62
- // (typeof this.options.allowSVGs !== "undefined" &&
63
- // !this.options.allowSVGs) ||
64
- // (agent.indexOf("chrome") === -1 &&
65
- // (agent.indexOf("edg") !== -1 ||
66
- // agent.indexOf("edge") !== -1 ||
67
- // agent.indexOf("msie") !== -1 ||
68
- // agent.indexOf("trident") > -1 ||
69
- // agent.indexOf("firefox") > -1 ||
70
- // agent.indexOf("safari") > -1))
71
- // ) {
72
- // this.allowSVGs = false;
73
- // }
74
-
75
- // load icons before adding marker on map
76
- // this.loadIcons().then(() => {
77
- this.buildLayer();
78
- this.add(this.data).then(() => {
79
- if (this.options.setBounds === undefined || this.options.setBounds) {
80
- this.setBounds();
81
- }
82
- this.addListeners();
83
- });
84
- // });
85
- }
86
-
87
- /** To initialize layer */
88
- public buildLayer(): void {
89
- if (
90
- this.mapObject.viewer.dataSources.getByName("marker" + this.uniqueName)
91
- ) {
92
- this.mapObject.viewer.dataSources.remove(
93
- this.mapObject.viewer.dataSources.getByName(
94
- "marker" + this.uniqueName
95
- )[0],
96
- true
97
- );
98
- }
99
- this.layer = new CustomDataSource("marker" + this.uniqueName);
100
- }
101
-
102
- /** To add layer on map */
103
- public add(data: MarkerData[]) {
104
- const self = this;
105
-
106
- return new Promise<void>((resolve) => {
107
- self.addToMap(data).then(() => {
108
- this.mapObject.viewer.dataSources.add(this.layer);
109
-
110
- this.mapObject.viewer.scene.requestRender();
111
- resolve();
112
- });
113
- });
114
- }
115
-
116
- /**
117
- *
118
- * @param { MarkerData[] } data - load data on map
119
- * @returns { void }
120
- */
121
-
122
- public addToMap(data: MarkerData[]) {
123
- return new Promise<void>((resolve) => {
124
- const cartesians: any = [];
125
- const cartesiansWithOutHeight: any = [];
126
- const positionWithOutHeight: any = [];
127
-
128
- console.log("data", data)
129
- data.forEach((point) => {
130
- const height = point.point[2] + 0.5;
131
-
132
- if (point.point[2] == 0 || point.point[2] == null) {
133
- const position = Cartesian3.fromDegrees(point.point[0], point.point[1]);
134
- cartesiansWithOutHeight.push({ position, properties: point});
135
- positionWithOutHeight.push(position)
136
- } else {
137
- const position = Cartesian3.fromDegrees(point.point[0], point.point[1], height || 0);
138
- cartesians.push({
139
- position,
140
- properties: point,
141
- });
142
- }
143
- });
144
- console.log("cartesians", cartesians)
145
- console.log("cartesiansWithOutHeight", cartesiansWithOutHeight)
146
- console.log("positionWithOutHeight", positionWithOutHeight)
147
-
148
- cartesians.forEach((position: any = [], i: number) => {
149
- // const iconIndex = Object.keys(this.options.icons).findIndex(
150
- // (icon) =>
151
- // icon === data[i].properties.icon ||
152
- // (this.options.icons[+icon] &&
153
- // this.options.icons[+icon].name === data[i].properties.icon)
154
- // );
155
- // if (iconIndex >= 0) {
156
- // const pin = {
157
- // position,
158
- // billboard: this.icons[iconIndex],
159
- // data: data[i].properties,
160
- // layerId: this.markerLayerId,
161
- // };
162
- // this.layer.entities.add(pin);
163
- var markerProperty = position.properties.properties
164
- this.layer.entities.add({
165
- // name: 'Model 1',
166
- position: position.position,
167
- model: {uri : markerProperty.icon, scale: markerProperty.scale},
168
- properties: position.properties
169
- });
170
-
171
- // Clone the model entity with different positions
172
- // var modelEntity1 = viewer.entities.add(this.icons[iconIndex].clone());
173
- // modelEntity1.position = position;
174
- // }
175
- // });
176
- resolve();
177
- })
178
-
179
- this.mapObject.viewer.scene
180
- .clampToHeightMostDetailed(positionWithOutHeight)
181
- .then((pos) => {
182
- cartesiansWithOutHeight.forEach((position: any = [], i: number) => {
183
- // const iconIndex = Object.keys(this.options.icons).findIndex(
184
- // (icon) =>
185
- // icon === data[i].properties.icon ||
186
- // (this.options.icons[+icon] &&
187
- // this.options.icons[+icon].name === data[i].properties.icon)
188
- // );
189
- // if (iconIndex >= 0) {
190
- // const pin = {
191
- // position,
192
- // billboard: this.icons[iconIndex],
193
- // data: data[i].properties,
194
- // layerId: this.markerLayerId,
195
- // };
196
- // this.layer.entities.add(pin);
197
-
198
- var markerWithoutHeightProperty = position.properties.properties
199
- this.layer.entities.add({
200
- // name: 'Model 1',
201
- position: position.position,
202
- model: {uri : markerWithoutHeightProperty.icon, scale: markerWithoutHeightProperty.scale},
203
- properties: position.properties
204
- });
205
-
206
- // Clone the model entity with different positions
207
- // var modelEntity1 = viewer.entities.add(this.icons[iconIndex].clone());
208
- // modelEntity1.position = position;
209
- // }
210
- // });
211
- resolve();
212
- });
213
- })
214
- });
215
- }
216
-
217
-
218
- /** Set bounds after adding a layer */
219
- public setBounds(): void {
220
- const time = this.options.setBoundsInstant ? 0 : undefined;
221
- this.mapObject.viewer.flyTo(this.layer.entities, {
222
- duration: time,
223
- offset: new HeadingPitchRange(
224
- cMath.toRadians(this.mapObject.viewer.camera.heading),
225
- -Math.PI / 2,
226
- 0
227
- ),
228
- });
229
- }
230
-
231
- public addListeners() {
232
- this.handler = new ScreenSpaceEventHandler(this.mapObject.viewer.canvas);
233
-
234
- // Change the event type to LEFT_CLICK
235
- this.handler.setInputAction(
236
- this.iconClickHandler.bind(this),
237
- ScreenSpaceEventType.LEFT_CLICK
238
- );
239
-
240
- // Add MOUSE_MOVE event for on-hover functionality
241
- this.handler.setInputAction(
242
- this.iconHoverHandler.bind(this),
243
- ScreenSpaceEventType.MOUSE_MOVE
244
- );
245
- }
246
-
247
- iconHoverHandler(event: any) {
248
- if (this.hoverTimeout) {
249
- clearTimeout(this.hoverTimeout);
250
- }
251
- const pickedObject = this.mapObject.viewer.scene.pick(event.endPosition);
252
-
253
- if (pickedObject && pickedObject.id) {
254
- if (!this.isMouseOverMarker) {
255
- this.hoverTimeout = setTimeout(() => {
256
- this.isMouseOverMarker = true;
257
- const hoveredMarkerProperties = pickedObject.id.properties?.properties?._value;
258
- if (this.options.onHover) {
259
- this.options.onHover(hoveredMarkerProperties, event);
260
- }
261
- }, 1000);
262
- }
263
- } else {
264
- if (this.isMouseOverMarker){
265
- clearTimeout(this.hoverTimeout);
266
- if (this.options.clearHover) {
267
- this.options.clearHover(event);
268
- }
269
- this.isMouseOverMarker = false;
270
- }
271
- }
272
- }
273
-
274
- iconClickHandler(event: any) {
275
- const pickedObject = this.mapObject.viewer.scene.pick(event.position);
276
-
277
- if (pickedObject && pickedObject.id) {
278
- const selectedMarker = pickedObject.id.properties?.properties?._value
279
-
280
- if (this.options.onClick) {
281
- this.options.onClick(selectedMarker);
282
- }
283
- }
284
- }
285
- /** Removes all listeners added by this layer */
286
- public removeListeners() {
287
- this.handler.removeInputAction(ScreenSpaceEventType.LEFT_DOWN);
288
- this.handler.removeInputAction(ScreenSpaceEventType.LEFT_UP);
289
- this.handler.removeInputAction(ScreenSpaceEventType.MOUSE_MOVE);
290
- this.handler.removeInputAction(ScreenSpaceEventType.PINCH_END);
291
- this.handler.removeInputAction(ScreenSpaceEventType.PINCH_START);
292
- this.handler.removeInputAction(ScreenSpaceEventType.PINCH_MOVE);
293
- }
294
-
295
- /** Remove layer from map and destroy layer */
296
- public remove(): void {
297
- this.mapObject.viewer.dataSources.remove(this.layer, true);
298
- this.removeListeners();
299
- this.mapObject.viewer.scene.requestRender();
300
- }
301
-
302
- /** enables visibility of the layer */
303
- public show(): void {
304
- this.layer.show = true;
305
- }
306
-
307
- /** Disables visibility of the layer */
308
- public hide(): void {
309
- this.layer.show = false;
310
- }
311
-
312
- /**
313
- * Sets opacity of the layer
314
- * @param opacity number between 0-1
315
- */
316
- public setOpacity(opacity: number): void {
317
- this.opacity = opacity;
318
- this.icons = [];
319
- // this.loadIcons().then(() => {
320
- this.opacity = opacity;
321
- this.remove();
322
- this.buildLayer();
323
- this.add(this.data);
324
- // });
325
- }
326
- }