@xingm/vmap-cesium-toolbar 0.0.6 → 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.
- package/{dist/index.d.ts → index.d.ts} +7 -0
- package/{dist/index.es.js → index.es.js} +2316 -1461
- package/index.umd.js +337 -0
- package/package.json +46 -73
- package/{dist/style.css → style.css} +161 -161
- package/README.md +0 -276
- package/dist/hooks/toolBarConfig.d.ts +0 -75
- package/dist/hooks/useDrawHelper.d.ts +0 -24
- package/dist/hooks/useDynamicRing.d.ts +0 -44
- package/dist/hooks/useHeatmapHelper.d.ts +0 -18
- package/dist/hooks/useMap.d.ts +0 -14
- package/dist/hooks/useMapInit.d.ts +0 -14
- package/dist/hooks/useOverlayHelper.d.ts +0 -48
- package/dist/hooks/usePointClusterHelper.d.ts +0 -14
- package/dist/i18n/en-US.d.ts +0 -148
- package/dist/i18n/index.d.ts +0 -3
- package/dist/i18n/zh-CN.d.ts +0 -148
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -326
- package/dist/index.umd.js.map +0 -1
- package/dist/libs/CesiumAutoRecover.d.ts +0 -48
- package/dist/libs/CesiumHeatmapLayer.d.ts +0 -143
- package/dist/libs/CesiumMapDraw.d.ts +0 -251
- package/dist/libs/CesiumMapLoader.d.ts +0 -71
- package/dist/libs/CesiumMapModel.d.ts +0 -172
- package/dist/libs/CesiumMapToolbar.d.ts +0 -219
- package/dist/libs/CesiumOverlayService.d.ts +0 -227
- package/dist/libs/CesiumPointClusterLayer.d.ts +0 -93
- package/dist/libs/PickGovernor.d.ts +0 -23
- package/dist/libs/config/CesiumMapConfig.d.ts +0 -13
- package/dist/libs/drawHelper/BaseDraw.d.ts +0 -194
- package/dist/libs/drawHelper/DrawCircle.d.ts +0 -31
- package/dist/libs/drawHelper/DrawHint.d.ts +0 -32
- package/dist/libs/drawHelper/DrawLine.d.ts +0 -49
- package/dist/libs/drawHelper/DrawPolgon.d.ts +0 -35
- package/dist/libs/drawHelper/DrawRectangle.d.ts +0 -24
- package/dist/libs/drawHelper/index.d.ts +0 -6
- package/dist/libs/i18n/en-US.d.ts +0 -69
- package/dist/libs/i18n/index.d.ts +0 -25
- package/dist/libs/i18n/zh-CN.d.ts +0 -69
- package/dist/libs/overlay/MapCircle.d.ts +0 -130
- package/dist/libs/overlay/MapIcon.d.ts +0 -69
- package/dist/libs/overlay/MapInfoWindow.d.ts +0 -100
- package/dist/libs/overlay/MapLabel.d.ts +0 -73
- package/dist/libs/overlay/MapMarker.d.ts +0 -60
- package/dist/libs/overlay/MapPolygon.d.ts +0 -114
- package/dist/libs/overlay/MapPolyline.d.ts +0 -64
- package/dist/libs/overlay/MapRectangle.d.ts +0 -101
- package/dist/libs/overlay/MapRing.d.ts +0 -107
- package/dist/libs/overlay/MapSVG.d.ts +0 -73
- package/dist/libs/overlay/OverlayEditController.d.ts +0 -167
- package/dist/libs/overlay/OverlayEditHandles.d.ts +0 -101
- package/dist/libs/overlay/OverlayHighlight.d.ts +0 -40
- package/dist/libs/overlay/index.d.ts +0 -23
- package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +0 -42
- package/dist/libs/overlay/primitives/CirclePrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +0 -43
- package/dist/libs/overlay/primitives/PolygonPrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +0 -41
- package/dist/libs/overlay/primitives/RectanglePrimitiveLayerStack.d.ts +0 -24
- package/dist/libs/overlay/types.d.ts +0 -121
- package/dist/libs/toolBar/CesiumMapController.d.ts +0 -84
- package/dist/libs/toolBar/MapLayersService.d.ts +0 -89
- package/dist/libs/toolBar/MapSearchService.d.ts +0 -47
- package/dist/libs/toolBar/MapToolBarConfig.d.ts +0 -10
- package/dist/libs/toolBar/MeasurementService.d.ts +0 -16
- package/dist/libs/toolBar/NotFlyZonesService.d.ts +0 -51
- package/dist/package.json +0 -46
- package/dist/utils/calc.d.ts +0 -50
- package/dist/utils/common.d.ts +0 -14
- package/dist/utils/geojson.d.ts +0 -86
- package/dist/utils/selfIntersection.d.ts +0 -15
- package/dist/z.const.d.ts +0 -24
- /package/{dist/geojson → geojson}/file-list.json +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//344/270/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//344/271/211/344/271/214/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /package/{dist/geojson → geojson}//344/271/214/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /package/{dist/geojson → geojson}//344/272/225/345/206/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/274/212/345/256/201/346/234/272/345/234/272.geojson" +0 -0
- /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
- /package/{dist/geojson → geojson}//344/275/263/346/234/250/346/226/257/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/277/235/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//345/214/205/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//345/222/214/347/224/260/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /package/{dist/geojson → geojson}//345/226/200/344/273/200/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/230/211/345/263/252/345/205/263/346/234/272/345/234/272.geojson" +0 -0
- /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
- /package/{dist/geojson → geojson}//345/241/224/345/237/216/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//345/256/211/345/272/206/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//345/272/267/345/256/232/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//346/225/246/347/205/214/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//346/234/235/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//346/242/247/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//346/264/233/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//346/271/233/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /package/{dist/geojson → geojson}//346/275/215/345/235/212/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//350/241/242/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//351/230/277/345/213/222/346/263/260/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
- /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
- /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
- /package/{dist/geojson → geojson}//351/273/216/345/271/263/346/234/272/345/234/272.geojson" +0 -0
- /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
- /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
- /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
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Cartesian3, Entity, Color, MaterialProperty, Rectangle, Cartographic } from '../../../node_modules/cesium';
|
|
2
|
-
/**
|
|
3
|
-
* 覆盖物位置类型
|
|
4
|
-
*/
|
|
5
|
-
export type OverlayPosition = Cartesian3 | [number, number] | [number, number, number];
|
|
6
|
-
export interface OverlayHighlightOriginalStyle {
|
|
7
|
-
point?: {
|
|
8
|
-
pixelSize?: any;
|
|
9
|
-
color?: any;
|
|
10
|
-
outlineColor?: any;
|
|
11
|
-
outlineWidth?: any;
|
|
12
|
-
};
|
|
13
|
-
label?: {
|
|
14
|
-
fillColor?: any;
|
|
15
|
-
outlineColor?: any;
|
|
16
|
-
outlineWidth?: any;
|
|
17
|
-
scale?: any;
|
|
18
|
-
};
|
|
19
|
-
billboard?: {
|
|
20
|
-
scale?: any;
|
|
21
|
-
color?: any;
|
|
22
|
-
};
|
|
23
|
-
polyline?: {
|
|
24
|
-
width?: any;
|
|
25
|
-
material?: any;
|
|
26
|
-
};
|
|
27
|
-
polygon?: {
|
|
28
|
-
outline?: any;
|
|
29
|
-
outlineColor?: any;
|
|
30
|
-
outlineWidth?: any;
|
|
31
|
-
material?: any;
|
|
32
|
-
};
|
|
33
|
-
rectangle?: {
|
|
34
|
-
outline?: any;
|
|
35
|
-
outlineColor?: any;
|
|
36
|
-
outlineWidth?: any;
|
|
37
|
-
material?: any;
|
|
38
|
-
};
|
|
39
|
-
ellipse?: {
|
|
40
|
-
outline?: any;
|
|
41
|
-
outlineColor?: any;
|
|
42
|
-
outlineWidth?: any;
|
|
43
|
-
material?: any;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export interface OverlayClickHighlightOptions {
|
|
47
|
-
/** 高亮主颜色(默认 yellow) */
|
|
48
|
-
color?: Color | string;
|
|
49
|
-
/** 面填充透明度(默认 0.35) */
|
|
50
|
-
fillAlpha?: number;
|
|
51
|
-
}
|
|
52
|
-
/** 与 clickHighlight 使用同样的参数结构(颜色 + 面填充透明度) */
|
|
53
|
-
export type OverlayHoverHighlightOptions = OverlayClickHighlightOptions;
|
|
54
|
-
/**
|
|
55
|
-
* 覆盖物扩展实体类型
|
|
56
|
-
* 用于在 Cesium.Entity 上挂载覆盖物相关的元数据
|
|
57
|
-
*/
|
|
58
|
-
export interface OverlayEntity extends Entity {
|
|
59
|
-
/** 覆盖物点击回调(由各 Map* 工具类设置) */
|
|
60
|
-
_onClick?: (entity: Entity) => void;
|
|
61
|
-
/** 点击覆盖物时是否启用高亮(由各 Map* 工具类设置) */
|
|
62
|
-
_clickHighlight?: boolean | OverlayClickHighlightOptions;
|
|
63
|
-
/** 鼠标移入覆盖物时是否启用高亮(由各 Map* 工具类设置) */
|
|
64
|
-
_hoverHighlight?: boolean | OverlayHoverHighlightOptions;
|
|
65
|
-
/** 高亮联动的实体集合(复合覆盖物:边框/填充等一起切换) */
|
|
66
|
-
_highlightEntities?: Entity[];
|
|
67
|
-
/** 当前是否处于高亮状态 */
|
|
68
|
-
_isHighlighted?: boolean;
|
|
69
|
-
/** 当前高亮原因(click/hover 可叠加;click 优先显示) */
|
|
70
|
-
_highlightState?: {
|
|
71
|
-
click?: boolean;
|
|
72
|
-
hover?: boolean;
|
|
73
|
-
};
|
|
74
|
-
/** 用于还原高亮前的原始样式 */
|
|
75
|
-
_highlightOriginalStyle?: OverlayHighlightOriginalStyle;
|
|
76
|
-
/** 高亮时临时创建的“发光边框”实体(由 CesiumOverlayService 管理) */
|
|
77
|
-
_highlightGlowEntity?: Entity;
|
|
78
|
-
/** 覆盖物类型标识(用于 CesiumOverlayService 做差异化更新/删除) */
|
|
79
|
-
_overlayType?: string;
|
|
80
|
-
/** 信息窗口根 DOM(由 MapInfoWindow / CesiumOverlayService 使用) */
|
|
81
|
-
_infoWindow?: HTMLElement;
|
|
82
|
-
/** 复合图形的内层实体或边框实体等关联引用 */
|
|
83
|
-
_borderEntity?: Entity;
|
|
84
|
-
_innerEntity?: Entity;
|
|
85
|
-
/** 粗边框 / 环形等形状相关元数据 */
|
|
86
|
-
/** 是否贴地(粗边框/环形等复合形状用) */
|
|
87
|
-
_clampToGround?: boolean;
|
|
88
|
-
/** 复合形状的基准高度(米,clampToGround=false 时有效) */
|
|
89
|
-
_baseHeight?: number;
|
|
90
|
-
/** 贴地抬高量(米,clampToGround=true 时有效) */
|
|
91
|
-
_groundHeightEpsilon?: number;
|
|
92
|
-
_isThickOutline?: boolean;
|
|
93
|
-
_outlineWidth?: number;
|
|
94
|
-
_isRing?: boolean;
|
|
95
|
-
_ringThickness?: number;
|
|
96
|
-
_ringSegments?: number;
|
|
97
|
-
_ringGlowPower?: number;
|
|
98
|
-
_ringLineColor?: Color | string;
|
|
99
|
-
_ringLineStyle?: 'solid' | 'dashed';
|
|
100
|
-
_ringLineMaterialMode?: 'stripe' | 'dash';
|
|
101
|
-
_ringStripeRepeat?: number;
|
|
102
|
-
_ringDashLength?: number;
|
|
103
|
-
_ringDashPattern?: number;
|
|
104
|
-
_ringGapColor?: Color | string;
|
|
105
|
-
_ringShowInnerLine?: boolean;
|
|
106
|
-
_fillMaterial?: MaterialProperty | Color | string;
|
|
107
|
-
_ringHeightEpsilon?: number;
|
|
108
|
-
_centerCartographic?: Cartographic;
|
|
109
|
-
_outerRadius?: number;
|
|
110
|
-
_innerRadius?: number;
|
|
111
|
-
_outerRectangle?: Rectangle;
|
|
112
|
-
/** primitive circle: 内部使用的纯色缓存(用于高亮恢复) */
|
|
113
|
-
/** primitive layer key: 用于分层批处理路由 */
|
|
114
|
-
_primitiveLayerKey?: string;
|
|
115
|
-
_primitiveRingBaseColor?: Color;
|
|
116
|
-
_primitiveFillBaseColor?: Color;
|
|
117
|
-
/** primitive:用于高亮发光边框的外圈/边界位置(通常为闭合折线) */
|
|
118
|
-
_primitiveOutlinePositions?: Cartesian3[];
|
|
119
|
-
/** primitive polygon/rectangle: 边框纯色缓存(用于高亮恢复) */
|
|
120
|
-
_primitiveBorderBaseColor?: Color;
|
|
121
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
-
import { MapType, ZoomCallback } from '../CesiumMapModel';
|
|
3
|
-
interface MapInitialCenter {
|
|
4
|
-
longitude: number;
|
|
5
|
-
latitude: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}
|
|
8
|
-
interface CesiumMapControllerOptions {
|
|
9
|
-
initialCenter?: MapInitialCenter;
|
|
10
|
-
/** 当前可用的地图类型列表(由外部维护),用于读取 maximumLevel 等配置 */
|
|
11
|
-
getMapTypes?: () => MapType[];
|
|
12
|
-
/** 获取当前底图类型 id(由外部维护) */
|
|
13
|
-
getCurrentMapTypeId?: () => string;
|
|
14
|
-
/** 获取当前天地图 token(用于从 provider 读取 maximumLevel 时保持行为一致) */
|
|
15
|
-
getToken?: () => string;
|
|
16
|
-
/** 缩放回调(来自 Toolbar 的 ZoomCallback) */
|
|
17
|
-
zoomCallback?: ZoomCallback;
|
|
18
|
-
/** 场景模式切换后回调(例如通知 DrawHelper 重新计算偏移) */
|
|
19
|
-
onSceneModeChanged?: () => void;
|
|
20
|
-
/** 全屏切换回调 */
|
|
21
|
-
fullscreenCallback?: (isFullscreen: boolean) => void;
|
|
22
|
-
/** 复位位置回调 */
|
|
23
|
-
resetLocationCallback?: () => void;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 负责地图相机控制、缩放层级和 2D/3D 切换等逻辑的控制器
|
|
27
|
-
* 与 UI(工具栏)解耦,避免 Cesium 细节散落在各处。
|
|
28
|
-
*/
|
|
29
|
-
export declare class CesiumMapController {
|
|
30
|
-
private viewer;
|
|
31
|
-
private initialCenter?;
|
|
32
|
-
private getMapTypes?;
|
|
33
|
-
private getCurrentMapTypeId?;
|
|
34
|
-
private getToken?;
|
|
35
|
-
private zoomCallback?;
|
|
36
|
-
private onSceneModeChanged?;
|
|
37
|
-
private fullscreenCallback?;
|
|
38
|
-
private resetLocationCallback?;
|
|
39
|
-
constructor(viewer: Viewer, options?: CesiumMapControllerOptions);
|
|
40
|
-
/**
|
|
41
|
-
* 监听相机缩放,限制层级范围到 [1, 18],并参考当前底图的 maximumLevel
|
|
42
|
-
*/
|
|
43
|
-
setupCameraZoomLimitListener(): void;
|
|
44
|
-
/**
|
|
45
|
-
* 获取当前地图层级(1-18)
|
|
46
|
-
*/
|
|
47
|
-
getCurrentZoomLevel(): number;
|
|
48
|
-
/**
|
|
49
|
-
* 设置地图层级
|
|
50
|
-
* @param zoomLevel 目标层级(1-18)
|
|
51
|
-
*/
|
|
52
|
-
setZoomLevel(zoomLevel: number): void;
|
|
53
|
-
/** 放大 */
|
|
54
|
-
zoomIn(): void;
|
|
55
|
-
/** 缩小 */
|
|
56
|
-
zoomOut(): void;
|
|
57
|
-
/**
|
|
58
|
-
* 2D/3D 切换
|
|
59
|
-
*/
|
|
60
|
-
toggle2D3D(buttonElement: HTMLElement): void;
|
|
61
|
-
/**
|
|
62
|
-
* 复位到初始位置
|
|
63
|
-
*/
|
|
64
|
-
resetLocation(): void;
|
|
65
|
-
setInitialCenter(center: MapInitialCenter): void;
|
|
66
|
-
getInitialCenter(): MapInitialCenter | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* 切换全屏
|
|
69
|
-
*/
|
|
70
|
-
toggleFullscreen(): void;
|
|
71
|
-
/**
|
|
72
|
-
* 检查是否处于全屏状态
|
|
73
|
-
*/
|
|
74
|
-
isFullscreen(): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* 进入全屏
|
|
77
|
-
*/
|
|
78
|
-
enterFullscreen(): void;
|
|
79
|
-
/**
|
|
80
|
-
* 退出全屏
|
|
81
|
-
*/
|
|
82
|
-
exitFullscreen(): void;
|
|
83
|
-
}
|
|
84
|
-
export {};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
-
import { MapType } from '../CesiumMapModel';
|
|
3
|
-
import { I18nLike } from '../../libs/i18n';
|
|
4
|
-
/**
|
|
5
|
-
* 图层服务配置接口
|
|
6
|
-
*/
|
|
7
|
-
export interface MapLayersServiceConfig {
|
|
8
|
-
mapTypes: MapType[];
|
|
9
|
-
currentMapType: string;
|
|
10
|
-
token: string;
|
|
11
|
-
isNoFlyZoneChecked: boolean;
|
|
12
|
-
isNoFlyZoneVisible: boolean;
|
|
13
|
-
i18n?: I18nLike;
|
|
14
|
-
useI18n?: boolean;
|
|
15
|
-
onMapTypeChange?: (mapTypeId: string) => void;
|
|
16
|
-
onShowNoFlyZones?: () => Promise<void> | void;
|
|
17
|
-
onNoFlyZoneToggle?: (isChecked: boolean) => void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 图层服务类
|
|
21
|
-
* 负责处理地图图层切换相关的所有逻辑
|
|
22
|
-
*/
|
|
23
|
-
export declare class MapLayersService {
|
|
24
|
-
private static readonly PLACE_NAME_LAYER_TAG;
|
|
25
|
-
private viewer;
|
|
26
|
-
private toolbarElement;
|
|
27
|
-
private config;
|
|
28
|
-
private currentGeoWTFS;
|
|
29
|
-
private currentMapTypeConfig;
|
|
30
|
-
private currentMapLayers;
|
|
31
|
-
private currentPlaceNameProvider;
|
|
32
|
-
private currentPlaceNameLayer;
|
|
33
|
-
private isPlaceNameChecked;
|
|
34
|
-
private i18n;
|
|
35
|
-
private useI18n;
|
|
36
|
-
constructor(viewer: Viewer, toolbarElement: HTMLElement, config: MapLayersServiceConfig);
|
|
37
|
-
/**
|
|
38
|
-
* 初始化当前地图上下文:用于“初始底图不是通过 switchMapType 加载”时的路网层识别。
|
|
39
|
-
*/
|
|
40
|
-
private bootstrapCurrentMapContext;
|
|
41
|
-
/**
|
|
42
|
-
* 更新配置
|
|
43
|
-
*/
|
|
44
|
-
updateConfig(config: Partial<MapLayersServiceConfig>): void;
|
|
45
|
-
adjustMenuPosition: (menu: HTMLElement) => void;
|
|
46
|
-
/**
|
|
47
|
-
* 切换图层菜单
|
|
48
|
-
*/
|
|
49
|
-
toggleLayers(buttonElement: HTMLElement): void;
|
|
50
|
-
/**
|
|
51
|
-
* 创建地图类型部分
|
|
52
|
-
*/
|
|
53
|
-
private createMapTypeSection;
|
|
54
|
-
/**
|
|
55
|
-
* 创建地图类型项
|
|
56
|
-
*/
|
|
57
|
-
private createMapTypeItem;
|
|
58
|
-
/**
|
|
59
|
-
* 创建叠加图层部分
|
|
60
|
-
*/
|
|
61
|
-
private createOverlaySection;
|
|
62
|
-
/**
|
|
63
|
-
* 创建叠加图层项
|
|
64
|
-
*/
|
|
65
|
-
private createOverlayItem;
|
|
66
|
-
/**
|
|
67
|
-
* 切换地图类型
|
|
68
|
-
*/
|
|
69
|
-
switchMapType(mapTypeId: string): void;
|
|
70
|
-
/**
|
|
71
|
-
* 获取当前地图类型
|
|
72
|
-
*/
|
|
73
|
-
getCurrentMapType(): string;
|
|
74
|
-
private setPlaceNameChecked;
|
|
75
|
-
private shouldEnablePlaceName;
|
|
76
|
-
private isSameProvider;
|
|
77
|
-
private resolveExistingPlaceNameLayer;
|
|
78
|
-
private ensurePlaceNameProvider;
|
|
79
|
-
private addPlaceNameLayer;
|
|
80
|
-
private removePlaceNameLayer;
|
|
81
|
-
/**
|
|
82
|
-
* 关闭图层菜单
|
|
83
|
-
*/
|
|
84
|
-
closeLayersMenu(): void;
|
|
85
|
-
/**
|
|
86
|
-
* 销毁图层服务
|
|
87
|
-
*/
|
|
88
|
-
destroy(): void;
|
|
89
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
-
import { SearchResult, SearchCallback } from '../CesiumMapModel';
|
|
3
|
-
import { I18nLike } from '../../libs/i18n';
|
|
4
|
-
/**
|
|
5
|
-
* 搜索服务类
|
|
6
|
-
* 负责处理地图搜索相关的所有逻辑
|
|
7
|
-
*/
|
|
8
|
-
export declare class SearchService {
|
|
9
|
-
private viewer;
|
|
10
|
-
private toolbarElement;
|
|
11
|
-
private searchCallback?;
|
|
12
|
-
private searchContainer;
|
|
13
|
-
private i18n;
|
|
14
|
-
private useI18n;
|
|
15
|
-
constructor(viewer: Viewer, toolbarElement: HTMLElement, searchCallback?: SearchCallback, options?: {
|
|
16
|
-
i18n?: I18nLike;
|
|
17
|
-
useI18n?: boolean;
|
|
18
|
-
});
|
|
19
|
-
/**
|
|
20
|
-
* 设置搜索回调
|
|
21
|
-
*/
|
|
22
|
-
setSearchCallback(callback: SearchCallback): void;
|
|
23
|
-
/**
|
|
24
|
-
* 切换搜索功能
|
|
25
|
-
*/
|
|
26
|
-
toggleSearch(buttonElement: HTMLElement): void;
|
|
27
|
-
/**
|
|
28
|
-
* 执行默认搜索(使用天地图 API)
|
|
29
|
-
*/
|
|
30
|
-
private performDefaultSearch;
|
|
31
|
-
/**
|
|
32
|
-
* 显示搜索结果
|
|
33
|
-
*/
|
|
34
|
-
displaySearchResults(results: SearchResult[], container: HTMLElement): void;
|
|
35
|
-
/**
|
|
36
|
-
* 选择搜索结果
|
|
37
|
-
*/
|
|
38
|
-
selectSearchResult(result: SearchResult): void;
|
|
39
|
-
/**
|
|
40
|
-
* 关闭搜索框
|
|
41
|
-
*/
|
|
42
|
-
closeSearchContainer(): void;
|
|
43
|
-
/**
|
|
44
|
-
* 销毁搜索服务
|
|
45
|
-
*/
|
|
46
|
-
destroy(): void;
|
|
47
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ButtonConfig, ToolbarConfig } from '../CesiumMapModel';
|
|
2
|
-
export declare const defaultButtonSorts: Record<string, number>;
|
|
3
|
-
export declare const defaultButtons: ButtonConfig[];
|
|
4
|
-
export declare const defaultMeasureItems: {
|
|
5
|
-
id: string;
|
|
6
|
-
text: string;
|
|
7
|
-
textKey: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const defaultToolBarStyle: ToolbarConfig;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
-
import { default as DrawHelper } from '../CesiumMapDraw';
|
|
3
|
-
import { MeasurementCallback } from '../CesiumMapModel';
|
|
4
|
-
export type MeasureMode = 'none' | 'distance' | 'area';
|
|
5
|
-
export declare class MeasurementService {
|
|
6
|
-
private viewer;
|
|
7
|
-
private drawHelper;
|
|
8
|
-
private measurementCallback?;
|
|
9
|
-
private currentMode;
|
|
10
|
-
constructor(viewer: Viewer, drawHelper: DrawHelper, measurementCallback?: MeasurementCallback);
|
|
11
|
-
getMeasureMode(): MeasureMode;
|
|
12
|
-
setupDrawHelperCallbacks(): void;
|
|
13
|
-
startAreaMeasurement(): void;
|
|
14
|
-
startDistanceMeasurement(): void;
|
|
15
|
-
clearMeasurements(): void;
|
|
16
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
-
import { I18nLike } from '../../libs/i18n';
|
|
3
|
-
/**
|
|
4
|
-
* 禁飞区服务配置接口
|
|
5
|
-
*/
|
|
6
|
-
export interface NotFlyZonesServiceConfig {
|
|
7
|
-
extrudedHeight?: number;
|
|
8
|
-
autoLoad?: boolean;
|
|
9
|
-
i18n?: I18nLike;
|
|
10
|
-
useI18n?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 禁飞区服务类
|
|
14
|
-
* 负责处理机场禁飞区相关的所有逻辑
|
|
15
|
-
*/
|
|
16
|
-
export declare class NotFlyZonesService {
|
|
17
|
-
private viewer;
|
|
18
|
-
private noFlyZoneEntities;
|
|
19
|
-
private isNoFlyZoneVisible;
|
|
20
|
-
private isNoFlyZoneLoading;
|
|
21
|
-
private readonly extrudedHeight;
|
|
22
|
-
private i18n;
|
|
23
|
-
private useI18n;
|
|
24
|
-
constructor(viewer: Viewer, config?: NotFlyZonesServiceConfig);
|
|
25
|
-
/**
|
|
26
|
-
* 加载并显示机场禁飞区
|
|
27
|
-
*/
|
|
28
|
-
showNoFlyZones(): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* 隐藏机场禁飞区
|
|
31
|
-
*/
|
|
32
|
-
hideNoFlyZones(): void;
|
|
33
|
-
/**
|
|
34
|
-
* 切换机场禁飞区显示状态
|
|
35
|
-
*/
|
|
36
|
-
toggleNoFlyZones(): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* 获取禁飞区显示状态
|
|
39
|
-
*/
|
|
40
|
-
getNoFlyZoneVisible(): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* 创建禁飞区多边形配置选项
|
|
43
|
-
* @param positions - 多边形的顶点坐标数组,使用笛卡尔坐标系
|
|
44
|
-
* @returns 返回一个包含多边形图形配置选项的对象
|
|
45
|
-
*/
|
|
46
|
-
private createNoFlyZonePolygonOptions;
|
|
47
|
-
/**
|
|
48
|
-
* 销毁禁飞区服务
|
|
49
|
-
*/
|
|
50
|
-
destroy(): void;
|
|
51
|
-
}
|
package/dist/package.json
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@xingm/vmap-cesium-toolbar",
|
|
3
|
-
"version": "0.0.5",
|
|
4
|
-
"description": "A powerful Cesium map toolbar plugin with drawing, measurement, and interaction features",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.es.js",
|
|
7
|
-
"module": "index.es.js",
|
|
8
|
-
"types": "index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"index.es.js",
|
|
11
|
-
"index.umd.js",
|
|
12
|
-
"index.d.ts",
|
|
13
|
-
"style.css",
|
|
14
|
-
"README.md",
|
|
15
|
-
"geojson"
|
|
16
|
-
],
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"import": "./index.es.js",
|
|
20
|
-
"default": "./index.es.js"
|
|
21
|
-
},
|
|
22
|
-
"./style": "./style.css"
|
|
23
|
-
},
|
|
24
|
-
"peerDependencies": {
|
|
25
|
-
"vue": "^3.0.0"
|
|
26
|
-
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"cesium",
|
|
29
|
-
"map",
|
|
30
|
-
"toolbar",
|
|
31
|
-
"drawing",
|
|
32
|
-
"measurement",
|
|
33
|
-
"vue3",
|
|
34
|
-
"typescript"
|
|
35
|
-
],
|
|
36
|
-
"author": "pengxueyou",
|
|
37
|
-
"license": "MIT",
|
|
38
|
-
"repository": {
|
|
39
|
-
"type": "git",
|
|
40
|
-
"url": "git+https://github.com/BenXueYou/vmap-cesium-tool.git"
|
|
41
|
-
},
|
|
42
|
-
"bugs": {
|
|
43
|
-
"url": "https://github.com/BenXueYou/vmap-cesium-tool/issues"
|
|
44
|
-
},
|
|
45
|
-
"homepage": "https://github.com/BenXueYou/vmap-cesium-tool#readme"
|
|
46
|
-
}
|
package/dist/utils/calc.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Cartesian3, Ellipsoid, Rectangle } from '../../node_modules/cesium';
|
|
2
|
-
/**
|
|
3
|
-
* 判断一个 Cartesian3 是否为有效坐标(x/y/z 都是有限数字)
|
|
4
|
-
*/
|
|
5
|
-
export declare function isValidCartesian3(pos: Cartesian3 | null | undefined): pos is Cartesian3;
|
|
6
|
-
/**
|
|
7
|
-
* 格式化距离显示
|
|
8
|
-
* 超过1000m时转换为km,保留两位小数
|
|
9
|
-
* @param distance 距离(米)
|
|
10
|
-
* @returns 格式化后的距离字符串
|
|
11
|
-
*/
|
|
12
|
-
export declare function formatDistance(distance: number): string;
|
|
13
|
-
/**
|
|
14
|
-
* 格式化面积显示
|
|
15
|
-
* @param areaKm2 面积(平方公里)
|
|
16
|
-
* @returns 格式化后的面积字符串
|
|
17
|
-
*/
|
|
18
|
-
export declare function formatArea(areaKm2: number): string;
|
|
19
|
-
/**
|
|
20
|
-
* 计算矩形
|
|
21
|
-
* @param p1 第一个点
|
|
22
|
-
* @param p2 第二个点
|
|
23
|
-
* @returns 矩形对象
|
|
24
|
-
*/
|
|
25
|
-
export declare function calculateRectangle(p1: Cartesian3, p2: Cartesian3): Rectangle;
|
|
26
|
-
/**
|
|
27
|
-
* 计算矩形面积
|
|
28
|
-
* @param rect 矩形对象
|
|
29
|
-
* @returns 面积(平方公里)
|
|
30
|
-
*/
|
|
31
|
-
export declare function calculateRectangleArea(rect: Rectangle): number;
|
|
32
|
-
/**
|
|
33
|
-
* 计算多边形面积
|
|
34
|
-
* @param positions 多边形顶点坐标数组
|
|
35
|
-
* @param ellipsoid 椭球体对象(默认使用 WGS84)
|
|
36
|
-
* @returns 面积(平方公里)
|
|
37
|
-
*/
|
|
38
|
-
export declare function calculatePolygonArea(positions: Cartesian3[], ellipsoid?: Ellipsoid): number;
|
|
39
|
-
/**
|
|
40
|
-
* 计算多边形中心点
|
|
41
|
-
* @param positions 多边形顶点坐标数组
|
|
42
|
-
* @returns 中心点坐标
|
|
43
|
-
*/
|
|
44
|
-
export declare function calculatePolygonCenter(positions: Cartesian3[]): Cartesian3;
|
|
45
|
-
/**
|
|
46
|
-
* 计算折线总长度
|
|
47
|
-
* @param positions 折线顶点坐标数组
|
|
48
|
-
* @returns 总长度(米)
|
|
49
|
-
*/
|
|
50
|
-
export declare function calculatePolylineDistance(positions: Cartesian3[]): number;
|
package/dist/utils/common.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare function getViteTdToken(): any;
|
|
2
|
-
export declare function getViteCesiumToken(): any;
|
|
3
|
-
/**
|
|
4
|
-
* 将相机高度转换为地图层级
|
|
5
|
-
* @param height 相机高度(米)
|
|
6
|
-
* @returns 地图层级(1-18)
|
|
7
|
-
*/
|
|
8
|
-
export declare function heightToZoomLevel(height: number): number;
|
|
9
|
-
/**
|
|
10
|
-
* 将地图层级转换为相机高度
|
|
11
|
-
* @param zoomLevel 地图层级(1-18)
|
|
12
|
-
* @returns 相机高度(米)
|
|
13
|
-
*/
|
|
14
|
-
export declare function zoomLevelToHeight(zoomLevel: number): number;
|
package/dist/utils/geojson.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GeoJSON 类型定义
|
|
3
|
-
*/
|
|
4
|
-
export interface GeoJSONPoint {
|
|
5
|
-
type: 'Point';
|
|
6
|
-
coordinates: [number, number];
|
|
7
|
-
}
|
|
8
|
-
export interface GeoJSONPolygon {
|
|
9
|
-
type: 'Polygon';
|
|
10
|
-
coordinates: number[][][];
|
|
11
|
-
}
|
|
12
|
-
export interface GeoJSONFeature<T = GeoJSONPolygon> {
|
|
13
|
-
type: 'Feature';
|
|
14
|
-
geometry: T;
|
|
15
|
-
properties?: Record<string, any>;
|
|
16
|
-
}
|
|
17
|
-
export interface GeoJSONFeatureCollection<T = GeoJSONPolygon> {
|
|
18
|
-
type: 'FeatureCollection';
|
|
19
|
-
features: GeoJSONFeature<T>[];
|
|
20
|
-
name?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 机场禁飞区数据接口
|
|
24
|
-
*/
|
|
25
|
-
export interface AirportNoFlyZone {
|
|
26
|
-
name: string;
|
|
27
|
-
feature: GeoJSONFeature<GeoJSONPolygon>;
|
|
28
|
-
fileName: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* GeoJSON 加载配置
|
|
32
|
-
*/
|
|
33
|
-
export interface GeoJSONLoaderConfig {
|
|
34
|
-
/**
|
|
35
|
-
* GeoJSON 文件的基础路径
|
|
36
|
-
* 开发环境: '/geojson' (指向 public/geojson)
|
|
37
|
-
* 生产环境: 可以是 '/geojson' 或用户自定义路径
|
|
38
|
-
* @default '/geojson'
|
|
39
|
-
*/
|
|
40
|
-
basePath?: string;
|
|
41
|
-
/**
|
|
42
|
-
* 是否在加载失败时静默处理(不抛出错误)
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
silent?: boolean;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* 读取所有机场禁飞区 GeoJSON 文件
|
|
49
|
-
*
|
|
50
|
-
* 注意:由于无法直接获取目录文件列表,需要提供文件列表
|
|
51
|
-
* 可以通过以下方式之一:
|
|
52
|
-
* 1. 提供 fileList 参数
|
|
53
|
-
* 2. 在 public/geojson 目录下放置 file-list.json 文件
|
|
54
|
-
* 3. 使用 getAllAirportNoFlyZonesWithList 方法
|
|
55
|
-
*
|
|
56
|
-
* @param fileList 可选的文件名列表(不含扩展名)
|
|
57
|
-
* @param config 加载配置
|
|
58
|
-
* @returns Promise<AirportNoFlyZone[]> 机场禁飞区数据数组
|
|
59
|
-
*/
|
|
60
|
-
export declare function loadAllAirportNoFlyZones(fileList?: string[], config?: GeoJSONLoaderConfig): Promise<AirportNoFlyZone[]>;
|
|
61
|
-
/**
|
|
62
|
-
* 读取单个机场禁飞区 GeoJSON 文件
|
|
63
|
-
* @param fileName 文件名(不含扩展名,如 '珠海_金湾机场')
|
|
64
|
-
* @param config 加载配置
|
|
65
|
-
* @returns Promise<AirportNoFlyZone | null> 机场禁飞区数据或 null
|
|
66
|
-
*/
|
|
67
|
-
export declare function loadAirportNoFlyZone(fileName: string, config?: GeoJSONLoaderConfig): Promise<AirportNoFlyZone | null>;
|
|
68
|
-
/**
|
|
69
|
-
* 将 GeoJSON 坐标转换为 Cesium Cartesian3 数组
|
|
70
|
-
* @param coordinates GeoJSON 多边形坐标数组
|
|
71
|
-
* @param height 高度偏移(米),默认为 0
|
|
72
|
-
* @returns 包含 longitude, latitude, height 的对象数组
|
|
73
|
-
*/
|
|
74
|
-
export declare function geojsonCoordinatesToCartesian3(coordinates: number[][], height?: number): Array<{
|
|
75
|
-
longitude: number;
|
|
76
|
-
latitude: number;
|
|
77
|
-
height: number;
|
|
78
|
-
}>;
|
|
79
|
-
/**
|
|
80
|
-
* 从文件名列表生成 file-list.json
|
|
81
|
-
* 这个函数可以在构建时使用,生成文件列表
|
|
82
|
-
*
|
|
83
|
-
* @param fileNames 文件名列表(不含扩展名)
|
|
84
|
-
* @returns JSON 字符串
|
|
85
|
-
*/
|
|
86
|
-
export declare function generateFileListJson(fileNames: string[]): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Cartesian3 } from '../../node_modules/cesium';
|
|
2
|
-
export type IntersectionKind = "none" | "touch" | "cross" | "overlap";
|
|
3
|
-
/**
|
|
4
|
-
* Returns true if adding `nextPoint` to an open polygon polyline would create a self-intersection.
|
|
5
|
-
*/
|
|
6
|
-
export declare function wouldCreatePolygonSelfIntersection(existingPoints: Cartesian3[], nextPoint: Cartesian3, opts?: {
|
|
7
|
-
allowTouch?: boolean;
|
|
8
|
-
}): boolean;
|
|
9
|
-
export declare function wouldCreatePolygonSelfIntersectionKind(existingPoints: Cartesian3[], nextPoint: Cartesian3): IntersectionKind;
|
|
10
|
-
/**
|
|
11
|
-
* Returns true if the closed polygon described by `points` is self-intersecting.
|
|
12
|
-
*/
|
|
13
|
-
export declare function isClosedPolygonSelfIntersecting(points: Cartesian3[], opts?: {
|
|
14
|
-
allowTouch?: boolean;
|
|
15
|
-
}): boolean;
|
package/dist/z.const.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const defaultHeatmapData: ({
|
|
2
|
-
lon: string;
|
|
3
|
-
lat: string;
|
|
4
|
-
height: string;
|
|
5
|
-
appearTime: number;
|
|
6
|
-
lng?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
lng: string;
|
|
9
|
-
lat: string;
|
|
10
|
-
height: string;
|
|
11
|
-
appearTime: number;
|
|
12
|
-
lon?: undefined;
|
|
13
|
-
})[][];
|
|
14
|
-
export declare const defaultHeatmapColors: {
|
|
15
|
-
0: string;
|
|
16
|
-
40: string;
|
|
17
|
-
60: string;
|
|
18
|
-
90: string;
|
|
19
|
-
110: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const defaultHeatmapOpacity: {
|
|
22
|
-
0: number;
|
|
23
|
-
0.5: number;
|
|
24
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|