@xingm/vmap-cesium-toolbar 0.0.7-alpha.0 → 0.0.7-alpha.1

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 (252) hide show
  1. package/{dist/index.d.ts → index.d.ts} +4 -0
  2. package/{dist/index.es.js → index.es.js} +2436 -1611
  3. package/index.umd.js +337 -0
  4. package/package.json +14 -42
  5. package/README.md +0 -276
  6. package/dist/hooks/toolBarConfig.d.ts +0 -75
  7. package/dist/hooks/useDrawHelper.d.ts +0 -24
  8. package/dist/hooks/useDynamicRing.d.ts +0 -44
  9. package/dist/hooks/useHeatmapHelper.d.ts +0 -18
  10. package/dist/hooks/useMap.d.ts +0 -14
  11. package/dist/hooks/useMapInit.d.ts +0 -14
  12. package/dist/hooks/useOverlayHelper.d.ts +0 -48
  13. package/dist/hooks/usePointClusterHelper.d.ts +0 -14
  14. package/dist/i18n/en-US.d.ts +0 -148
  15. package/dist/i18n/index.d.ts +0 -3
  16. package/dist/i18n/zh-CN.d.ts +0 -148
  17. package/dist/index.es.js.map +0 -1
  18. package/dist/index.umd.js +0 -342
  19. package/dist/index.umd.js.map +0 -1
  20. package/dist/libs/CesiumAutoRecover.d.ts +0 -48
  21. package/dist/libs/CesiumHeatmapLayer.d.ts +0 -143
  22. package/dist/libs/CesiumMapDraw.d.ts +0 -251
  23. package/dist/libs/CesiumMapLoader.d.ts +0 -71
  24. package/dist/libs/CesiumMapModel.d.ts +0 -172
  25. package/dist/libs/CesiumMapToolbar.d.ts +0 -219
  26. package/dist/libs/CesiumOverlayService.d.ts +0 -227
  27. package/dist/libs/CesiumPointClusterLayer.d.ts +0 -93
  28. package/dist/libs/PickGovernor.d.ts +0 -23
  29. package/dist/libs/config/CesiumMapConfig.d.ts +0 -13
  30. package/dist/libs/drawHelper/BaseDraw.d.ts +0 -194
  31. package/dist/libs/drawHelper/DrawCircle.d.ts +0 -31
  32. package/dist/libs/drawHelper/DrawHint.d.ts +0 -32
  33. package/dist/libs/drawHelper/DrawLine.d.ts +0 -49
  34. package/dist/libs/drawHelper/DrawPolgon.d.ts +0 -35
  35. package/dist/libs/drawHelper/DrawRectangle.d.ts +0 -24
  36. package/dist/libs/drawHelper/index.d.ts +0 -6
  37. package/dist/libs/i18n/en-US.d.ts +0 -69
  38. package/dist/libs/i18n/index.d.ts +0 -25
  39. package/dist/libs/i18n/zh-CN.d.ts +0 -69
  40. package/dist/libs/overlay/MapCircle.d.ts +0 -130
  41. package/dist/libs/overlay/MapIcon.d.ts +0 -69
  42. package/dist/libs/overlay/MapInfoWindow.d.ts +0 -100
  43. package/dist/libs/overlay/MapLabel.d.ts +0 -73
  44. package/dist/libs/overlay/MapMarker.d.ts +0 -60
  45. package/dist/libs/overlay/MapPolygon.d.ts +0 -114
  46. package/dist/libs/overlay/MapPolyline.d.ts +0 -64
  47. package/dist/libs/overlay/MapRectangle.d.ts +0 -101
  48. package/dist/libs/overlay/MapRing.d.ts +0 -107
  49. package/dist/libs/overlay/MapSVG.d.ts +0 -73
  50. package/dist/libs/overlay/OverlayEditController.d.ts +0 -167
  51. package/dist/libs/overlay/OverlayEditHandles.d.ts +0 -101
  52. package/dist/libs/overlay/OverlayHighlight.d.ts +0 -40
  53. package/dist/libs/overlay/index.d.ts +0 -23
  54. package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +0 -42
  55. package/dist/libs/overlay/primitives/CirclePrimitiveLayerStack.d.ts +0 -24
  56. package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +0 -43
  57. package/dist/libs/overlay/primitives/PolygonPrimitiveLayerStack.d.ts +0 -24
  58. package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +0 -41
  59. package/dist/libs/overlay/primitives/RectanglePrimitiveLayerStack.d.ts +0 -24
  60. package/dist/libs/overlay/types.d.ts +0 -121
  61. package/dist/libs/toolBar/CesiumMapController.d.ts +0 -84
  62. package/dist/libs/toolBar/MapLayersService.d.ts +0 -97
  63. package/dist/libs/toolBar/MapSearchService.d.ts +0 -47
  64. package/dist/libs/toolBar/MapToolBarConfig.d.ts +0 -10
  65. package/dist/libs/toolBar/MeasurementService.d.ts +0 -16
  66. package/dist/libs/toolBar/NotFlyZonesService.d.ts +0 -51
  67. package/dist/package.json +0 -46
  68. package/dist/tdt/tdtController.d.ts +0 -16
  69. package/dist/tdt/tdtPlugin.d.ts +0 -14
  70. package/dist/tdt/tdtProviders.d.ts +0 -4
  71. package/dist/tdt3dplug.es-pUYPBBmH.js +0 -5264
  72. package/dist/tdt3dplug.es-pUYPBBmH.js.map +0 -1
  73. package/dist/utils/calc.d.ts +0 -50
  74. package/dist/utils/common.d.ts +0 -14
  75. package/dist/utils/geojson.d.ts +0 -86
  76. package/dist/utils/selfIntersection.d.ts +0 -15
  77. package/dist/z.const.d.ts +0 -24
  78. /package/{dist/geojson → geojson}/file-list.json +0 -0
  79. /package/{dist/geojson → geojson}//344/270/207/345/267/236_/344/272/224/346/241/245/346/234/272/345/234/272.geojson" +0 -0
  80. /package/{dist/geojson → geojson}//344/270/211/344/272/232_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
  81. /package/{dist/geojson → geojson}//344/270/211/346/230/216_/346/262/231/345/216/277/346/234/272/345/234/272.geojson" +0 -0
  82. /package/{dist/geojson → geojson}//344/270/212/346/265/267_/346/265/246/344/270/234/346/234/272/345/234/272.geojson" +0 -0
  83. /package/{dist/geojson → geojson}//344/270/212/346/265/267_/350/231/271/346/241/245/346/234/272/345/234/272.geojson" +0 -0
  84. /package/{dist/geojson → geojson}//344/270/212/351/245/266_/344/270/211/346/270/205/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  85. /package/{dist/geojson → geojson}//344/270/224/346/234/253_/347/216/211/351/203/275/346/234/272/345/234/272.geojson" +0 -0
  86. /package/{dist/geojson → geojson}//344/270/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
  87. /package/{dist/geojson → geojson}//344/270/255/345/215/253_/346/262/231/345/235/241/345/244/264/346/234/272/345/234/272.geojson" +0 -0
  88. /package/{dist/geojson → geojson}//344/270/264/346/261/276_/344/271/224/346/235/216/346/234/272/345/234/272.geojson" +0 -0
  89. /package/{dist/geojson → geojson}//344/270/264/346/262/202_/346/262/255/345/237/240/345/262/255/346/234/272/345/234/272.geojson" +0 -0
  90. /package/{dist/geojson → geojson}//344/270/264/346/262/247_/345/215/232/345/260/232/346/234/272/345/234/272.geojson" +0 -0
  91. /package/{dist/geojson → geojson}//344/270/271/344/270/234_/346/265/252/345/244/264/346/234/272/345/234/272.geojson" +0 -0
  92. /package/{dist/geojson → geojson}//344/270/275/346/261/237_/344/270/211/344/271/211/346/234/272/345/234/272.geojson" +0 -0
  93. /package/{dist/geojson → geojson}//344/271/211/344/271/214/346/234/272/345/234/272.geojson" +0 -0
  94. /package/{dist/geojson → geojson}//344/271/214/345/205/260/345/257/237/345/270/203_/351/233/206/345/256/201/346/234/272/345/234/272.geojson" +0 -0
  95. /package/{dist/geojson → geojson}//344/271/214/345/205/260/346/265/251/347/211/271_/344/276/235/345/213/222/345/212/233/347/211/271/346/234/272/345/234/272.geojson" +0 -0
  96. /package/{dist/geojson → geojson}//344/271/214/346/265/267/346/234/272/345/234/272.geojson" +0 -0
  97. /package/{dist/geojson → geojson}//344/271/214/351/262/201/346/234/250/351/275/220_/345/234/260/347/252/235/345/240/241/346/234/272/345/234/272.geojson" +0 -0
  98. /package/{dist/geojson → geojson}//344/272/214/350/277/236/346/265/251/347/211/271_/350/265/233/344/271/214/347/264/240/346/234/272/345/234/272.geojson" +0 -0
  99. /package/{dist/geojson → geojson}//344/272/225/345/206/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  100. /package/{dist/geojson → geojson}//344/274/212/345/256/201/346/234/272/345/234/272.geojson" +0 -0
  101. /package/{dist/geojson → geojson}//344/274/212/346/230/245_/346/236/227/351/203/275/346/234/272/345/234/272.geojson" +0 -0
  102. /package/{dist/geojson → geojson}//344/275/263/346/234/250/346/226/257/346/234/272/345/234/272.geojson" +0 -0
  103. /package/{dist/geojson → geojson}//344/277/235/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  104. /package/{dist/geojson → geojson}//345/205/213/346/213/211/347/216/233/344/276/235/346/234/272/345/234/272.geojson" +0 -0
  105. /package/{dist/geojson → geojson}//345/205/260/345/267/236_/344/270/255/345/267/235/346/234/272/345/234/272.geojson" +0 -0
  106. /package/{dist/geojson → geojson}//345/205/264/344/271/211_/344/270/207/345/263/260/346/236/227/346/234/272/345/234/272.geojson" +0 -0
  107. /package/{dist/geojson → geojson}//345/212/240/346/240/274/350/276/276/345/245/207_/345/230/216/344/273/231/346/234/272/345/234/272.geojson" +0 -0
  108. /package/{dist/geojson → geojson}//345/214/205/345/244/264/346/234/272/345/234/272.geojson" +0 -0
  109. /package/{dist/geojson → geojson}//345/214/227/344/272/254_/351/246/226/351/203/275/346/234/272/345/234/272.geojson" +0 -0
  110. /package/{dist/geojson → geojson}//345/214/227/346/265/267_/347/246/217/346/210/220/346/234/272/345/234/272.geojson" +0 -0
  111. /package/{dist/geojson → geojson}//345/215/201/345/240/260_/346/255/246/345/275/223/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  112. /package/{dist/geojson → geojson}//345/215/227/344/272/254_/347/246/204/345/217/243/346/234/272/345/234/272.geojson" +0 -0
  113. /package/{dist/geojson → geojson}//345/215/227/345/256/201_/345/220/264/345/234/251/346/234/272/345/234/272.geojson" +0 -0
  114. /package/{dist/geojson → geojson}//345/215/227/346/230/214_/346/230/214/345/214/227/346/234/272/345/234/272.geojson" +0 -0
  115. /package/{dist/geojson → geojson}//345/215/227/351/200/232_/345/205/264/344/270/234/346/234/272/345/234/272.geojson" +0 -0
  116. /package/{dist/geojson → geojson}//345/215/227/351/230/263_/345/247/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
  117. /package/{dist/geojson → geojson}//345/215/232/344/271/220_/351/230/277/346/213/211/345/261/261/345/217/243/346/234/272/345/234/272.geojson" +0 -0
  118. /package/{dist/geojson → geojson}//345/216/246/351/227/250_/351/253/230/345/264/216/346/234/272/345/234/272.geojson" +0 -0
  119. /package/{dist/geojson → geojson}//345/217/260/345/267/236_/350/267/257/346/241/245/346/234/272/345/234/272.geojson" +0 -0
  120. /package/{dist/geojson → geojson}//345/220/210/350/202/245_/346/226/260/346/241/245/346/234/272/345/234/272.geojson" +0 -0
  121. /package/{dist/geojson → geojson}//345/220/220/351/262/201/347/225/252_/344/272/244/346/262/263/346/234/272/345/234/272.geojson" +0 -0
  122. /package/{dist/geojson → geojson}//345/221/274/344/274/246/350/264/235/345/260/224_/346/265/267/346/213/211/345/260/224/346/234/272/345/234/272.geojson" +0 -0
  123. /package/{dist/geojson → geojson}//345/221/274/345/222/214/346/265/251/347/211/271_/347/231/275/345/241/224/346/234/272/345/234/272.geojson" +0 -0
  124. /package/{dist/geojson → geojson}//345/222/214/347/224/260/346/234/272/345/234/272.geojson" +0 -0
  125. /package/{dist/geojson → geojson}//345/223/210/345/260/224/346/273/250_/345/244/252/345/271/263/346/234/272/345/234/272.geojson" +0 -0
  126. /package/{dist/geojson → geojson}//345/224/220/345/261/261_/344/270/211/345/245/263/346/262/263/346/234/272/345/234/272.geojson" +0 -0
  127. /package/{dist/geojson → geojson}//345/226/200/344/273/200/346/234/272/345/234/272.geojson" +0 -0
  128. /package/{dist/geojson → geojson}//345/230/211/345/263/252/345/205/263/346/234/272/345/234/272.geojson" +0 -0
  129. /package/{dist/geojson → geojson}//345/233/272/345/216/237_/345/205/255/347/233/230/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  130. /package/{dist/geojson → geojson}//345/241/224/345/237/216/346/234/272/345/234/272.geojson" +0 -0
  131. /package/{dist/geojson → geojson}//345/244/247/345/220/214_/344/272/221/345/206/210/346/234/272/345/234/272.geojson" +0 -0
  132. /package/{dist/geojson → geojson}//345/244/247/345/272/206_/350/220/250/345/260/224/345/233/276/346/234/272/345/234/272.geojson" +0 -0
  133. /package/{dist/geojson → geojson}//345/244/247/350/277/236_/345/221/250/346/260/264/345/255/220/346/234/272/345/234/272.geojson" +0 -0
  134. /package/{dist/geojson → geojson}//345/244/251/346/264/245_/346/273/250/346/265/267/346/234/272/345/234/272.geojson" +0 -0
  135. /package/{dist/geojson → geojson}//345/244/252/345/216/237_/346/255/246/345/256/277/346/234/272/345/234/272.geojson" +0 -0
  136. /package/{dist/geojson → geojson}//345/256/201/346/263/242_/346/240/216/347/244/276/346/234/272/345/234/272.geojson" +0 -0
  137. /package/{dist/geojson → geojson}//345/256/201/350/222/227_/346/263/270/346/262/275/346/271/226/346/234/272/345/234/272.geojson" +0 -0
  138. /package/{dist/geojson → geojson}//345/256/211/345/272/206/346/234/272/345/234/272.geojson" +0 -0
  139. /package/{dist/geojson → geojson}//345/256/234/345/256/276_/350/217/234/345/235/235/346/234/272/345/234/272.geojson" +0 -0
  140. /package/{dist/geojson → geojson}//345/256/234/346/230/214_/344/270/211/345/263/241/346/234/272/345/234/272.geojson" +0 -0
  141. /package/{dist/geojson → geojson}//345/256/234/346/230/245_/346/230/216/346/234/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  142. /package/{dist/geojson → geojson}//345/257/214/350/225/264_/345/217/257/345/217/257/346/211/230/346/265/267/346/234/272/345/234/272.geojson" +0 -0
  143. /package/{dist/geojson → geojson}//345/267/264/345/275/246/346/267/226/345/260/224_/345/244/251/345/220/211/346/263/260/346/234/272/345/234/272.geojson" +0 -0
  144. /package/{dist/geojson → geojson}//345/270/203/345/260/224/346/264/245_/345/226/200/347/272/263/346/226/257/346/234/272/345/234/272.geojson" +0 -0
  145. /package/{dist/geojson → geojson}//345/270/270/345/267/236_/345/245/224/347/211/233/346/234/272/345/234/272.geojson" +0 -0
  146. /package/{dist/geojson → geojson}//345/270/270/345/276/267_/346/241/203/350/212/261/346/272/220/346/234/272/345/234/272.geojson" +0 -0
  147. /package/{dist/geojson → geojson}//345/271/277/345/205/203_/347/233/230/351/276/231/346/234/272/345/234/272.geojson" +0 -0
  148. /package/{dist/geojson → geojson}//345/271/277/345/267/236_/347/231/275/344/272/221/346/234/272/345/234/272.geojson" +0 -0
  149. /package/{dist/geojson → geojson}//345/272/206/351/230/263_/350/245/277/345/263/260/346/234/272/345/234/272.geojson" +0 -0
  150. /package/{dist/geojson → geojson}//345/272/223/350/275/246_/351/276/237/345/205/271/346/234/272/345/234/272.geojson" +0 -0
  151. /package/{dist/geojson → geojson}//345/272/267/345/256/232/346/234/272/345/234/272.geojson" +0 -0
  152. /package/{dist/geojson → geojson}//345/273/266/345/220/211_/346/234/235/351/230/263/345/267/235/346/234/272/345/234/272.geojson" +0 -0
  153. /package/{dist/geojson → geojson}//345/274/240/345/256/266/347/225/214_/350/215/267/350/212/261/346/234/272/345/234/272.geojson" +0 -0
  154. /package/{dist/geojson → geojson}//345/274/240/346/216/226_/347/224/230/345/267/236/346/234/272/345/234/272.geojson" +0 -0
  155. /package/{dist/geojson → geojson}//345/276/220/345/267/236_/350/247/202/351/237/263/346/234/272/345/234/272.geojson" +0 -0
  156. /package/{dist/geojson → geojson}//345/276/267/345/256/217_/350/212/222/345/270/202/346/234/272/345/234/272.geojson" +0 -0
  157. /package/{dist/geojson → geojson}//345/277/273/345/267/236_/344/272/224/345/217/260/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  158. /package/{dist/geojson → geojson}//346/200/200/345/214/226_/350/212/267/346/261/237/346/234/272/345/234/272.geojson" +0 -0
  159. /package/{dist/geojson → geojson}//346/201/251/346/226/275_/350/256/270/345/256/266/345/235/252/346/234/272/345/234/272.geojson" +0 -0
  160. /package/{dist/geojson → geojson}//346/210/220/351/203/275_/345/217/214/346/265/201/346/234/272/345/234/272.geojson" +0 -0
  161. /package/{dist/geojson → geojson}//346/211/216/345/205/260/345/261/257_/346/210/220/345/220/211/346/200/235/346/261/227/346/234/272/345/234/272.geojson" +0 -0
  162. /package/{dist/geojson → geojson}//346/211/254/345/267/236_/346/263/260/345/267/236/346/234/272/345/234/272.geojson" +0 -0
  163. /package/{dist/geojson → geojson}//346/212/232/350/277/234_/344/270/234/346/236/201/346/234/272/345/234/272.geojson" +0 -0
  164. /package/{dist/geojson → geojson}//346/217/255/351/230/263_/346/275/256/346/261/225/346/234/272/345/234/272.geojson" +0 -0
  165. /package/{dist/geojson → geojson}//346/224/200/346/236/235/350/212/261_/344/277/235/345/256/211/350/220/245/346/234/272/345/234/272.geojson" +0 -0
  166. /package/{dist/geojson → geojson}//346/225/246/347/205/214/346/234/272/345/234/272.geojson" +0 -0
  167. /package/{dist/geojson → geojson}//346/226/260/346/272/220_/351/202/243/346/213/211/346/217/220/346/234/272/345/234/272.geojson" +0 -0
  168. /package/{dist/geojson → geojson}//346/227/245/347/205/247_/345/261/261/345/255/227/346/262/263/346/234/272/345/234/272.geojson" +0 -0
  169. /package/{dist/geojson → geojson}//346/230/206/346/230/216_/351/225/277/346/260/264/346/234/272/345/234/272.geojson" +0 -0
  170. /package/{dist/geojson → geojson}//346/231/256/346/264/261_/346/200/235/350/214/205/346/234/272/345/234/272.geojson" +0 -0
  171. /package/{dist/geojson → geojson}//346/231/257/345/276/267/351/225/207_/347/275/227/345/256/266/346/234/272/345/234/272.geojson" +0 -0
  172. /package/{dist/geojson → geojson}//346/234/235/351/230/263/346/234/272/345/234/272.geojson" +0 -0
  173. /package/{dist/geojson → geojson}//346/235/255/345/267/236_/350/220/247/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  174. /package/{dist/geojson → geojson}//346/236/234/346/264/233_/347/216/233/346/262/201/346/234/272/345/234/272.geojson" +0 -0
  175. /package/{dist/geojson → geojson}//346/237/263/345/267/236_/347/231/275/350/216/262/346/234/272/345/234/272.geojson" +0 -0
  176. /package/{dist/geojson → geojson}//346/241/202/346/236/227_/344/270/244/346/261/237/346/234/272/345/234/272.geojson" +0 -0
  177. /package/{dist/geojson → geojson}//346/242/205/345/216/277_/351/225/277/345/262/227/345/262/214/346/234/272/345/234/272.geojson" +0 -0
  178. /package/{dist/geojson → geojson}//346/242/247/345/267/236/346/234/272/345/234/272.geojson" +0 -0
  179. /package/{dist/geojson → geojson}//346/246/206/346/236/227_/346/246/206/351/230/263/346/234/272/345/234/272.geojson" +0 -0
  180. /package/{dist/geojson → geojson}//346/255/246/346/261/211_/345/244/251/346/262/263/346/234/272/345/234/272.geojson" +0 -0
  181. /package/{dist/geojson → geojson}//346/260/270/345/267/236_/351/233/266/351/231/265/346/234/272/345/234/272.geojson" +0 -0
  182. /package/{dist/geojson → geojson}//346/261/211/344/270/255_/345/237/216/345/233/272/346/234/272/345/234/272.geojson" +0 -0
  183. /package/{dist/geojson → geojson}//346/261/240/345/267/236_/344/271/235/345/215/216/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  184. /package/{dist/geojson → geojson}//346/262/210/351/230/263_/346/241/203/344/273/231/346/234/272/345/234/272.geojson" +0 -0
  185. /package/{dist/geojson → geojson}//346/262/263/346/261/240_/351/207/221/345/237/216/346/261/237/346/234/272/345/234/272.geojson" +0 -0
  186. /package/{dist/geojson → geojson}//346/263/211/345/267/236_/346/231/213/346/261/237/346/234/272/345/234/272.geojson" +0 -0
  187. /package/{dist/geojson → geojson}//346/264/233/351/230/263/346/234/272/345/234/272.geojson" +0 -0
  188. /package/{dist/geojson → geojson}//346/265/216/345/215/227_/351/201/245/345/242/231/346/234/272/345/234/272.geojson" +0 -0
  189. /package/{dist/geojson → geojson}//346/265/216/345/256/201_/346/233/262/351/230/234/346/234/272/345/234/272.geojson" +0 -0
  190. /package/{dist/geojson → geojson}//346/265/267/345/217/243_/347/276/216/345/205/260/346/234/272/345/234/272.geojson" +0 -0
  191. /package/{dist/geojson → geojson}//346/265/267/350/245/277_/345/276/267/344/273/244/345/223/210/346/234/272/345/234/272.geojson" +0 -0
  192. /package/{dist/geojson → geojson}//346/265/267/350/245/277_/350/212/261/345/234/237/346/262/237/346/234/272/345/234/272.geojson" +0 -0
  193. /package/{dist/geojson → geojson}//346/267/256/345/256/211_/346/266/237/346/260/264/346/234/272/345/234/272.geojson" +0 -0
  194. /package/{dist/geojson → geojson}//346/267/261/345/234/263_/345/256/235/345/256/211/346/234/272/345/234/272.geojson" +0 -0
  195. /package/{dist/geojson → geojson}//346/270/251/345/267/236_/351/276/231/346/271/276/346/234/272/345/234/272.geojson" +0 -0
  196. /package/{dist/geojson → geojson}//346/271/233/346/261/237/346/234/272/345/234/272.geojson" +0 -0
  197. /package/{dist/geojson → geojson}//346/273/241/346/264/262/351/207/214_/350/245/277/351/203/212/346/234/272/345/234/272.geojson" +0 -0
  198. /package/{dist/geojson → geojson}//346/274/240/346/262/263_/345/217/244/350/216/262/346/234/272/345/234/272.geojson" +0 -0
  199. /package/{dist/geojson → geojson}//346/275/215/345/235/212/346/234/272/345/234/272.geojson" +0 -0
  200. /package/{dist/geojson → geojson}//346/276/234/346/262/247_/346/231/257/350/277/210/346/234/272/345/234/272.geojson" +0 -0
  201. /package/{dist/geojson → geojson}//347/203/237/345/217/260_/350/223/254/350/216/261/346/234/272/345/234/272.geojson" +0 -0
  202. /package/{dist/geojson → geojson}//347/211/241/344/270/271/346/261/237_/346/265/267/346/265/252/346/234/272/345/234/272.geojson" +0 -0
  203. /package/{dist/geojson → geojson}//347/216/211/346/240/221_/345/267/264/345/241/230/346/234/272/345/234/272.geojson" +0 -0
  204. /package/{dist/geojson → geojson}//347/217/240/346/265/267_/351/207/221/346/271/276/346/234/272/345/234/272.geojson" +0 -0
  205. /package/{dist/geojson → geojson}//347/220/274/346/265/267_/345/215/232/351/263/214/346/234/272/345/234/272.geojson" +0 -0
  206. /package/{dist/geojson → geojson}//347/224/230/345/215/227_/345/244/217/346/262/263/346/234/272/345/234/272.geojson" +0 -0
  207. /package/{dist/geojson → geojson}//347/231/275/345/237/216_/351/225/277/345/256/211/346/234/272/345/234/272.geojson" +0 -0
  208. /package/{dist/geojson → geojson}//347/231/275/345/261/261_/351/225/277/347/231/275/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  209. /package/{dist/geojson → geojson}//347/231/276/350/211/262_/345/267/264/351/251/254/346/234/272/345/234/272.geojson" +0 -0
  210. /package/{dist/geojson → geojson}//347/237/263/345/256/266/345/272/204_/346/255/243/345/256/232/346/234/272/345/234/272.geojson" +0 -0
  211. /package/{dist/geojson → geojson}//347/237/263/346/262/263/345/255/220_/350/212/261/345/233/255/346/234/272/345/234/272.geojson" +0 -0
  212. /package/{dist/geojson → geojson}//347/245/236/345/206/234/346/236/266_/347/272/242/345/235/252/346/234/272/345/234/272.geojson" +0 -0
  213. /package/{dist/geojson → geojson}//347/246/217/345/267/236_/351/225/277/344/271/220/346/234/272/345/234/272.geojson" +0 -0
  214. /package/{dist/geojson → geojson}//347/247/246/347/232/207/345/262/233_/345/214/227/346/210/264/346/262/263/346/234/272/345/234/272.geojson" +0 -0
  215. /package/{dist/geojson → geojson}//347/250/273/345/237/216_/344/272/232/344/270/201/346/234/272/345/234/272.geojson" +0 -0
  216. /package/{dist/geojson → geojson}//350/205/276/345/206/262_/351/251/274/345/263/260/346/234/272/345/234/272.geojson" +0 -0
  217. /package/{dist/geojson → geojson}//350/220/245/345/217/243_/345/205/260/346/227/227/346/234/272/345/234/272.geojson" +0 -0
  218. /package/{dist/geojson → geojson}//350/241/241/351/230/263_/345/215/227/345/262/263/346/234/272/345/234/272.geojson" +0 -0
  219. /package/{dist/geojson → geojson}//350/241/242/345/267/236/346/234/272/345/234/272.geojson" +0 -0
  220. /package/{dist/geojson → geojson}//350/245/204/351/230/263_/345/210/230/351/233/206/346/234/272/345/234/272.geojson" +0 -0
  221. /package/{dist/geojson → geojson}//350/245/277/345/217/214/347/211/210/347/272/263_/345/230/216/346/264/222/346/234/272/345/234/272.geojson" +0 -0
  222. /package/{dist/geojson → geojson}//350/245/277/345/256/201_/346/233/271/345/256/266/345/240/241/346/234/272/345/234/272.geojson" +0 -0
  223. /package/{dist/geojson → geojson}//350/245/277/345/256/211_/345/222/270/351/230/263/346/234/272/345/234/272.geojson" +0 -0
  224. /package/{dist/geojson → geojson}//350/245/277/346/230/214_/351/235/222/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  225. /package/{dist/geojson → geojson}//350/264/265/351/230/263_/351/276/231/346/264/236/345/240/241/346/234/272/345/234/272.geojson" +0 -0
  226. /package/{dist/geojson → geojson}//350/265/243/345/267/236_/351/273/204/351/207/221/346/234/272/345/234/272.geojson" +0 -0
  227. /package/{dist/geojson → geojson}//350/265/244/345/263/260_/347/216/211/351/276/231/346/234/272/345/234/272.geojson" +0 -0
  228. /package/{dist/geojson → geojson}//350/276/276/345/267/236_/346/262/263/345/270/202/346/234/272/345/234/272.geojson" +0 -0
  229. /package/{dist/geojson → geojson}//350/277/236/344/272/221/346/270/257_/347/231/275/345/241/224/345/237/240/346/234/272/345/234/272.geojson" +0 -0
  230. /package/{dist/geojson → geojson}//351/200/232/345/214/226_/344/270/211/346/272/220/346/265/246/346/234/272/345/234/272.geojson" +0 -0
  231. /package/{dist/geojson → geojson}//351/203/221/345/267/236_/346/226/260/351/203/221/346/234/272/345/234/272.geojson" +0 -0
  232. /package/{dist/geojson → geojson}//351/204/202/345/260/224/345/244/232/346/226/257_/344/274/212/351/207/221/351/234/215/346/264/233/346/234/272/345/234/272.geojson" +0 -0
  233. /package/{dist/geojson → geojson}//351/207/215/345/272/206_/346/261/237/345/214/227/346/234/272/345/234/272.geojson" +0 -0
  234. /package/{dist/geojson → geojson}//351/207/221/346/230/214_/351/207/221/345/267/235/346/234/272/345/234/272.geojson" +0 -0
  235. /package/{dist/geojson → geojson}//351/223/234/344/273/201_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
  236. /package/{dist/geojson → geojson}//351/223/266/345/267/235_/346/262/263/344/270/234/346/234/272/345/234/272.geojson" +0 -0
  237. /package/{dist/geojson → geojson}//351/224/241/346/236/227/346/265/251/347/211/271/346/234/272/345/234/272.geojson" +0 -0
  238. /package/{dist/geojson → geojson}//351/224/246/345/267/236_/351/224/246/345/267/236/346/271/276/346/234/272/345/234/272.geojson" +0 -0
  239. /package/{dist/geojson → geojson}//351/225/277/346/230/245_/351/276/231/345/230/211/346/234/272/345/234/272.geojson" +0 -0
  240. /package/{dist/geojson → geojson}//351/225/277/346/262/231_/351/273/204/350/212/261/346/234/272/345/234/272.geojson" +0 -0
  241. /package/{dist/geojson → geojson}//351/230/277/345/205/213/350/213/217_/346/270/251/345/256/277/346/234/272/345/234/272.geojson" +0 -0
  242. /package/{dist/geojson → geojson}//351/230/277/345/213/222/346/263/260/346/234/272/345/234/272.geojson" +0 -0
  243. /package/{dist/geojson → geojson}//351/230/277/345/260/224/345/261/261_/344/274/212/345/260/224/346/226/275/346/234/272/345/234/272.geojson" +0 -0
  244. /package/{dist/geojson → geojson}//351/235/222/345/262/233_/346/265/201/344/272/255/346/234/272/345/234/272.geojson" +0 -0
  245. /package/{dist/geojson → geojson}//351/236/215/345/261/261_/350/205/276/351/263/214/346/234/272/345/234/272.geojson" +0 -0
  246. /package/{dist/geojson → geojson}//351/270/241/350/245/277_/345/205/264/345/207/257/346/271/226/346/234/272/345/234/272.geojson" +0 -0
  247. /package/{dist/geojson → geojson}//351/273/204/345/261/261_/345/261/257/346/272/252/346/234/272/345/234/272.geojson" +0 -0
  248. /package/{dist/geojson → geojson}//351/273/216/345/271/263/346/234/272/345/234/272.geojson" +0 -0
  249. /package/{dist/geojson → geojson}//351/273/221/346/262/263_/347/221/267/347/217/262/346/234/272/345/234/272.geojson" +0 -0
  250. /package/{dist/geojson → geojson}//351/273/224/346/261/237_/346/255/246/351/231/265/345/261/261/346/234/272/345/234/272.geojson" +0 -0
  251. /package/{dist/geojson → geojson}//351/275/220/351/275/220/345/223/210/345/260/224_/344/270/211/345/256/266/345/255/220/346/234/272/345/234/272.geojson" +0 -0
  252. /package/{dist/style.css → style.css} +0 -0
@@ -1,219 +0,0 @@
1
- import { Viewer } from '../../node_modules/cesium';
2
- import { CesiumMapController } from './toolBar/CesiumMapController';
3
- import { MeasurementService } from './toolBar/MeasurementService';
4
- import { SearchService } from './toolBar/MapSearchService';
5
- import { MapLayersService } from './toolBar/MapLayersService';
6
- import { NotFlyZonesService } from './toolBar/NotFlyZonesService';
7
- import { MapType, ToolbarConfig, SearchCallback, MeasurementCallback, ZoomCallback, CustomButtonConfig } from './CesiumMapModel';
8
- /**
9
- * Cesium地图工具栏类
10
- * 提供搜索、测量、2D/3D切换、图层切换、定位、缩放、全屏等功能
11
- */
12
- export declare class CesiumMapToolbar {
13
- private viewer;
14
- private drawHelper;
15
- private container;
16
- private toolbarElement;
17
- private config;
18
- private searchService;
19
- private mapLayersService;
20
- private notFlyZonesService;
21
- private measurementCallback?;
22
- private zoomCallback?;
23
- private fullscreenCallback?;
24
- private resetLocationCallback?;
25
- private initialCenter?;
26
- private currentMapType;
27
- TD_Token: string;
28
- mapTypes: MapType[];
29
- private isNoFlyZoneChecked;
30
- private currentGeoWTFS;
31
- private measurementService;
32
- private unsubscribeI18n?;
33
- private i18n;
34
- private useI18n;
35
- readonly measurement: {
36
- getMeasureMode: () => "none" | "distance" | "area";
37
- };
38
- private mapController;
39
- constructor(viewer: Viewer, container: HTMLElement, config?: ToolbarConfig, callbacks?: {
40
- search?: SearchCallback;
41
- measurement?: MeasurementCallback;
42
- zoom?: ZoomCallback;
43
- fullscreen?: (isFullscreen: boolean) => void;
44
- resetLocation?: () => void;
45
- }, initialCenter?: {
46
- longitude: number;
47
- latitude: number;
48
- height: number;
49
- });
50
- /**
51
- * searchService 对外暴露的获取搜索服务方法
52
- */
53
- getSearchService(): SearchService;
54
- /**
55
- * notFlyZonesService 对外暴露的获取禁飞区服务方法
56
- */
57
- getNotFlyZonesService(): NotFlyZonesService;
58
- /**
59
- * measurementService 对外暴露的获取测量服务方法
60
- */
61
- getMeasurementService(): MeasurementService;
62
- /**
63
- * cesmapController 对外暴露的获取地图控制器方法
64
- */
65
- getCesiumMapCtrl(): CesiumMapController;
66
- /**
67
- * mapLayersService 对外暴露的获取图层服务方法
68
- */
69
- getMapLayersService(): MapLayersService;
70
- /**
71
- * 设置地图类型配置
72
- * @param mapTypes
73
- */
74
- setMapTypes(mapTypes: MapType[]): void;
75
- /**
76
- * 设置天地图密钥
77
- * @param TD_Token
78
- */
79
- setTDToken(TD_Token: string): void;
80
- /**
81
- * 设置初始中心点
82
- */
83
- setInitialCenter(center: {
84
- longitude: number;
85
- latitude: number;
86
- height: number;
87
- }): void;
88
- /**
89
- * 获取初始中心点
90
- */
91
- getInitialCenter(): {
92
- longitude: number;
93
- latitude: number;
94
- height: number;
95
- } | undefined;
96
- /**
97
- * 复位到初始位置(公共方法)
98
- */
99
- resetToInitialLocation(): void;
100
- /**
101
- * 更新按钮配置
102
- */
103
- updateButtonConfig(buttonId: string, config: Partial<CustomButtonConfig>): void;
104
- /**
105
- * 添加自定义按钮
106
- * @param config 按钮配置,支持 sort 参数控制插入位置
107
- */
108
- addCustomButton(config: CustomButtonConfig): void;
109
- /**
110
- * 获取所有按钮配置(包括默认按钮和自定义按钮),并添加 sort 值
111
- */
112
- private resolveIcon;
113
- /**
114
- * 获取按钮配置(已排序,包含默认按钮兜底)
115
- * - 未传 buttons:使用默认按钮
116
- * - 传了 buttons:按传入按钮列表渲染,并用默认按钮补齐缺省字段
117
- */
118
- private getButtonConfigs;
119
- /**
120
- * 重新构建工具栏按钮
121
- */
122
- private rebuildToolbarButtons;
123
- /**
124
- * 移除按钮
125
- */
126
- removeButton(buttonId: string): void;
127
- /**
128
- * 获取按钮元素
129
- */
130
- private setupDrawHelperCallbacks;
131
- /**
132
- * 创建工具栏
133
- */
134
- private createToolbar;
135
- /**
136
- * 创建按钮
137
- */
138
- private createButton;
139
- /**
140
- * 设置按钮图标
141
- */
142
- private setButtonIcon;
143
- /**
144
- * 判断是否为图片路径
145
- */
146
- private isImagePath;
147
- /**
148
- * 加载图片图标
149
- */
150
- private loadImageIcon;
151
- /**
152
- * 设置默认图标(当图片加载失败时)
153
- */
154
- private setDefaultIcon;
155
- /**
156
- * 设置按钮事件
157
- */
158
- private setupButtonEvents;
159
- /**
160
- * 按钮鼠标离开时关闭菜单
161
- */
162
- private closeMenuOnButtonLeave;
163
- /**
164
- * 关闭搜索框
165
- */
166
- private closeSearchContainer;
167
- /**
168
- * 处理按钮点击
169
- */
170
- private handleButtonClick;
171
- /**
172
- * 切换测量功能
173
- */
174
- private toggleMeasurement;
175
- /**
176
- * 处理测量操作
177
- */
178
- private handleMeasurementAction;
179
- /**
180
- * 切换2D/3D视图
181
- */
182
- private toggle2D3D;
183
- /**
184
- * 复位到初始位置
185
- */
186
- private resetLocation;
187
- /**
188
- * 放大
189
- */
190
- private zoomIn;
191
- /**
192
- * 缩小
193
- */
194
- private zoomOut;
195
- /**
196
- * 加载并显示机场禁飞区
197
- * @deprecated 使用 NotFlyZonesService.showNoFlyZones 代替
198
- */
199
- showNoFlyZones(): Promise<void>;
200
- /**
201
- * 隐藏机场禁飞区
202
- * @deprecated 使用 NotFlyZonesService.hideNoFlyZones 代替
203
- */
204
- hideNoFlyZones(): void;
205
- /**
206
- * 切换机场禁飞区显示状态
207
- * @deprecated 使用 NotFlyZonesService.toggleNoFlyZones 代替
208
- */
209
- toggleNoFlyZones(): Promise<void>;
210
- /**
211
- * 获取禁飞区显示状态
212
- * @deprecated 使用 NotFlyZonesService.getNoFlyZoneVisible 代替
213
- */
214
- getNoFlyZoneVisible(): boolean;
215
- /**
216
- * 销毁工具栏
217
- */
218
- destroy(): void;
219
- }
@@ -1,227 +0,0 @@
1
- import { Viewer, Entity } from '../../node_modules/cesium';
2
- import { DrawEntity } from './drawHelper';
3
- import { OverlayEntity, OverlayPosition } from './overlay/types';
4
- import { MapMarker, MarkerOptions } from './overlay/MapMarker';
5
- import { MapLabel, LabelOptions } from './overlay/MapLabel';
6
- import { MapIcon, IconOptions } from './overlay/MapIcon';
7
- import { MapSVG, SvgOptions } from './overlay/MapSVG';
8
- import { MapInfoWindow, InfoWindowOptions } from './overlay/MapInfoWindow';
9
- import { MapPolyline, PolylineOptions } from './overlay/MapPolyline';
10
- import { MapPolygon, PolygonOptions } from './overlay/MapPolygon';
11
- import { MapRectangle, RectangleOptions } from './overlay/MapRectangle';
12
- import { MapCircle, CircleOptions } from './overlay/MapCircle';
13
- import { MapRing, RingOptions } from './overlay/MapRing';
14
- import { OverlayEditOptions } from './overlay/OverlayEditHandles';
15
- export interface CesiumOverlayServiceOptions {
16
- /**
17
- * 是否启用实体 hover 处理器(MOUSE_MOVE 下会执行 pick/drillPick 并触发 hover 高亮)。
18
- * 大屏/高负载场景可考虑关闭以规避 Cesium 在 primitive 重建窗口期的边界问题。
19
- * @default true
20
- */
21
- enableHoverHandler?: boolean;
22
- /**
23
- * 覆盖物处于编辑模式时:一次拖拽结束(LEFT_UP)且几何发生变化会触发。
24
- * 参数为“已回写后的覆盖物 entity”。
25
- */
26
- onOverlayEditChange?: (entity: DrawEntity & OverlayEntity) => void;
27
- /**
28
- * 点击 pick 节流间隔(毫秒)。
29
- * 用于降低 “贴地几何 + pick + ground pipeline” 的偶发 DataCloneError 风险。
30
- * @default 120
31
- */
32
- clickPickMinIntervalMs?: number;
33
- /** 编辑功能配置项,默认为全开(除 rotate) */
34
- overlayEditOptions?: OverlayEditOptions;
35
- }
36
- /**
37
- * Cesium 覆盖物服务类
38
- * 统一管理各种覆盖物工具类
39
- */
40
- export declare class CesiumOverlayService {
41
- private viewer;
42
- private entities;
43
- private overlayMap;
44
- private infoWindowContainer;
45
- /** 构造参数(用于开关 hover handler 等运行时策略) */
46
- private readonly options;
47
- private overlayEditor;
48
- private overlayHighlight;
49
- private lastHoverTargets;
50
- private hoverPickRAF;
51
- private hoverPickPos;
52
- private overlayMutationRevision;
53
- private hoverSuspendUntil;
54
- private bulkUpdateDepth;
55
- private readonly clickPickMinIntervalMs;
56
- private readonly pickGovernor;
57
- private static readonly HOVER_SUSPEND_AFTER_MUTATION_MS;
58
- private static readonly CLICK_PICK_MIN_INTERVAL_MS;
59
- private markOverlayMutated;
60
- /**
61
- * 显式开始一次批量更新:在 begin/end 期间暂停 hover pick。
62
- * 建议 websocket 批量 add/remove 覆盖物时包裹使用,降低 Cesium GroundPrimitive 异步重建窗口期的 pick/update 压力。
63
- */
64
- beginBulkUpdate(): void;
65
- /**
66
- * 结束一次批量更新。
67
- */
68
- endBulkUpdate(): void;
69
- /**
70
- * 批量更新包裹器(自动 begin/end)。
71
- */
72
- bulkUpdate<T>(fn: () => T): T;
73
- /**
74
- * Primitive 模式下,GeometryInstance.id 会是字符串(structured-cloneable),
75
- * 需要映射回 overlayMap 内的根覆盖物 id。
76
- */
77
- private normalizeOverlayPickId;
78
- private resolveOverlayByPickId;
79
- private resolvePickedOverlayEntity;
80
- readonly marker: MapMarker;
81
- readonly label: MapLabel;
82
- readonly icon: MapIcon;
83
- readonly svg: MapSVG;
84
- readonly infoWindow: MapInfoWindow;
85
- readonly polyline: MapPolyline;
86
- readonly polygon: MapPolygon;
87
- readonly rectangle: MapRectangle;
88
- readonly circle: MapCircle;
89
- readonly ring: MapRing;
90
- constructor(viewer: Viewer, options?: CesiumOverlayServiceOptions);
91
- /**
92
- * 尝试从屏幕坐标拾取地表/模型位置并转为 Cartographic
93
- */
94
- private pickCartographic;
95
- /**
96
- * 当 pick/drillPick 未命中时,使用经纬度判断是否落在 Rectangle 覆盖物内
97
- */
98
- private findHoverableRectangleByCartographic;
99
- /**
100
- * 判断点是否在多边形内(2D)
101
- */
102
- private isPointInPolygon2D;
103
- private resolvePolygonPositions;
104
- private findHoverablePolygonByCartographic;
105
- private findHoverableCircleByCartographic;
106
- /**
107
- * 初始化信息窗口容器
108
- */
109
- private initInfoWindowContainer;
110
- /**
111
- * 设置实体点击处理器
112
- */
113
- private setupEntityClickHandler;
114
- /**
115
- * 开启或是关闭覆盖物的Hover高亮(鼠标移入高亮,移出取消)。
116
- * - 开启后:覆盖物会触发高亮,且高亮状态会在鼠标移出时取消。
117
- * - 关闭后:覆盖物不再触发 hover 高亮。
118
- */
119
- toggleOverlayHoverHighlight(enabled: boolean): void;
120
- /**
121
- * 开启/关闭覆盖物编辑模式。
122
- * - 开启后:点击覆盖物会进入编辑,并显示可拖拽控制点。
123
- * - 关闭后:退出编辑并移除控制点。
124
- * @param enabled 是否启用编辑模式
125
- * @param overlayEditOptions 编辑功能配置项,可选。不传时使用构造函数传入的配置或默认配置
126
- */
127
- setOverlayEditMode(enabled: boolean, overlayEditOptions?: OverlayEditOptions): void;
128
- /** 当前是否处于覆盖物编辑模式(全局开关) */
129
- getOverlayEditModeEnabled(): boolean;
130
- /** 停止当前正在编辑的覆盖物(不会关闭全局编辑模式) */
131
- stopOverlayEdit(): void;
132
- /**
133
- * 主动开始编辑某个覆盖物。
134
- * @returns true 表示成功进入编辑
135
- */
136
- startOverlayEdit(entityOrId: (DrawEntity & OverlayEntity) | string, options?: OverlayEditOptions): boolean;
137
- /**
138
- * 设置实体 hover 高亮处理器(鼠标移入高亮,移出取消)
139
- */
140
- private setupEntityHoverHandler;
141
- private getPropertyValue;
142
- private getNumberProperty;
143
- /**
144
- * 生成唯一ID
145
- */
146
- private generateId;
147
- toggleOverlayHighlight(entity: OverlayEntity, reason?: 'click' | 'hover'): void;
148
- /**
149
- * 高亮/取消高亮覆盖物(显式设置)
150
- * @param entityOrId 覆盖物实体或 id
151
- * @param enabled 是否高亮
152
- * @param reason 高亮原因(默认 click)
153
- */
154
- setOverlayHighlight(entityOrId: OverlayEntity | string, enabled: boolean, reason?: 'click' | 'hover'): boolean;
155
- /**
156
- * 添加 Marker
157
- */
158
- addMarker(options: MarkerOptions): Entity;
159
- /**
160
- * 添加 Label
161
- */
162
- addLabel(options: LabelOptions): Entity;
163
- /**
164
- * 添加 Icon
165
- */
166
- addIcon(options: IconOptions): Entity;
167
- /**
168
- * 添加 SVG
169
- */
170
- addSvg(options: SvgOptions): Entity;
171
- /**
172
- * 添加 InfoWindow
173
- */
174
- addInfoWindow(options: InfoWindowOptions): Entity;
175
- /**
176
- * 添加 Polyline
177
- */
178
- addPolyline(options: PolylineOptions): Entity;
179
- /**
180
- * 添加 Polygon
181
- */
182
- addPolygon(options: PolygonOptions): Entity;
183
- /**
184
- * 添加 Rectangle
185
- */
186
- addRectangle(options: RectangleOptions): Entity;
187
- /**
188
- * 添加 Circle
189
- */
190
- addCircle(options: CircleOptions): Entity;
191
- /**
192
- * 添加 Ring
193
- */
194
- addRing(options: RingOptions): Entity;
195
- /**
196
- * 根据ID获取覆盖物
197
- */
198
- getOverlay(id: string): Entity | undefined;
199
- /**
200
- * 根据ID删除覆盖物
201
- */
202
- removeOverlay(id: string): boolean;
203
- /**
204
- * 删除所有覆盖物
205
- */
206
- removeAllOverlays(): void;
207
- /**
208
- * 更新覆盖物位置
209
- */
210
- updateOverlayPosition(id: string, position: OverlayPosition): boolean;
211
- /**
212
- * 显示/隐藏覆盖物
213
- */
214
- setOverlayVisible(id: string, visible: boolean): boolean;
215
- /**
216
- * 获取所有覆盖物ID
217
- */
218
- getAllOverlayIds(): string[];
219
- /**
220
- * 获取所有覆盖物
221
- */
222
- getAllOverlays(): Entity[];
223
- /**
224
- * 销毁服务,清理所有资源
225
- */
226
- destroy(): void;
227
- }
@@ -1,93 +0,0 @@
1
- import { Viewer, Entity } from '../../node_modules/cesium';
2
- import * as Cesium from 'cesium';
3
- export interface ClusterPoint {
4
- /** 业务 id(可选,建议传以便稳定更新) */
5
- id?: string;
6
- /** 经度(度) */
7
- lon: number;
8
- /** 纬度(度) */
9
- lat: number;
10
- /** 高度(米,默认 0) */
11
- height?: number;
12
- /** 可选:权重/热度值(暂未参与聚类,仅透传给回调) */
13
- value?: number;
14
- /** 任意业务属性 */
15
- properties?: Record<string, unknown>;
16
- }
17
- export interface ClusterStyleStep {
18
- /** 当 count >= minCount 时命中该样式(按 minCount 从大到小匹配更直观) */
19
- minCount: number;
20
- color: Cesium.Color | string;
21
- /** 聚合点圆点大小(像素),不填则使用 options.clusterPixelSize */
22
- pixelSize?: number;
23
- }
24
- export interface PointClusterLayerOptions {
25
- /** 图层 id(用于 Cesium.DataSourceCollection 里区分) */
26
- id?: string;
27
- /** 单点渲染:像素大小 */
28
- pointPixelSize?: number;
29
- /** 单点渲染:颜色 */
30
- pointColor?: Cesium.Color | string;
31
- /** 单点渲染:是否贴地(height=0 时等价贴地效果更明显) */
32
- clampToGround?: boolean;
33
- /** 聚类开关(默认 true) */
34
- clusteringEnabled?: boolean;
35
- /** 聚类像素范围(越大越容易聚合),默认 50 */
36
- pixelRange?: number;
37
- /** 最小聚类数量,默认 2 */
38
- minimumClusterSize?: number;
39
- /** 聚合点默认大小(像素) */
40
- clusterPixelSize?: number;
41
- /** 聚合点样式分段:用 count 决定颜色/大小 */
42
- clusterStyleSteps?: ClusterStyleStep[];
43
- /** 自定义聚合点渲染(直接修改 cluster entity) */
44
- renderCluster?: (args: {
45
- cluster: Entity;
46
- clusteredEntities: Entity[];
47
- count: number;
48
- }) => void;
49
- /** 自定义单点渲染(直接修改 point entity) */
50
- renderSinglePoint?: (args: {
51
- entity: Entity;
52
- point: ClusterPoint;
53
- }) => void;
54
- /** 点击聚合点回调:返回该聚合内的原始点 */
55
- onClusterClick?: (points: ClusterPoint[], ctx: {
56
- screenPosition: Cesium.Cartesian2;
57
- worldPosition?: Cesium.Cartesian3;
58
- }) => void;
59
- /** 点击单点回调 */
60
- onPointClick?: (point: ClusterPoint, ctx: {
61
- screenPosition: Cesium.Cartesian2;
62
- worldPosition?: Cesium.Cartesian3;
63
- }) => void;
64
- /** entity id 前缀(用于避免与外部实体冲突) */
65
- idPrefix?: string;
66
- }
67
- export default class CesiumPointClusterLayer {
68
- private static readonly CLUSTER_STYLE_MIN_INTERVAL_MS;
69
- private static readonly CLICK_PICK_MIN_INTERVAL_MS;
70
- private viewer;
71
- private readonly options;
72
- private dataSource;
73
- private entityIdToPoint;
74
- private clickHandler;
75
- private readonly layerId;
76
- private pendingClusterStyles;
77
- private clusterStyleRAF;
78
- private clusterStyleTimer;
79
- private lastClusterStyleFlushTime;
80
- private readonly pickGovernor;
81
- constructor(viewer: Viewer, options?: PointClusterLayerOptions);
82
- /** 设置/替换点数据(经纬度单位:度) */
83
- setData(points: ClusterPoint[]): void;
84
- setVisible(visible: boolean): void;
85
- setClusteringEnabled(enabled: boolean): void;
86
- destroy(): void;
87
- private enqueueClusterStyle;
88
- private flushClusterStyles;
89
- private applyClusterStyle;
90
- private pickStyle;
91
- private installClickHandler;
92
- }
93
- export { CesiumPointClusterLayer };
@@ -1,23 +0,0 @@
1
- export type PickGovernorKind = 'hover' | 'click' | 'cluster' | 'draw' | 'edit';
2
- export interface PickGovernorProfile {
3
- minIntervalMs: number;
4
- minMovePx: number;
5
- }
6
- export interface PickGovernorOptions {
7
- profiles?: Partial<Record<PickGovernorKind, Partial<PickGovernorProfile>>>;
8
- }
9
- type PointLike = {
10
- x: number;
11
- y: number;
12
- };
13
- export declare function isMacPlatform(): boolean;
14
- export declare class PickGovernor {
15
- private readonly profiles;
16
- private readonly lastByKind;
17
- private suspendUntil;
18
- constructor(options?: PickGovernorOptions);
19
- shouldPick(kind: PickGovernorKind, point: PointLike, nowMs?: number): boolean;
20
- suspend(ms: number): void;
21
- private isFinitePoint;
22
- }
23
- export {};
@@ -1,13 +0,0 @@
1
- import { Viewer } from '../../../node_modules/cesium';
2
- import { default as DrawHelper } from '../CesiumMapDraw';
3
- import { MapType, ToolbarConfig, SearchCallback, MeasurementCallback, ZoomCallback } from '../CesiumMapModel';
4
- export interface CesiumMapConfig {
5
- viewer?: Viewer;
6
- drawHelper?: DrawHelper;
7
- toolbar?: ToolbarConfig;
8
- search?: SearchCallback;
9
- measurement?: MeasurementCallback;
10
- zoom?: ZoomCallback;
11
- mapTypes?: MapType[];
12
- }
13
- export declare const TDTMapTypes: MapType[];