@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
package/README.md
DELETED
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
# @xingm/vmap-cesium-toolbar
|
|
2
|
-
|
|
3
|
-
一个功能强大的 Cesium 地图工具栏组件,提供搜索、测量、绘制、2D/3D切换、图层管理等功能。
|
|
4
|
-
|
|
5
|
-
## 特性
|
|
6
|
-
|
|
7
|
-
- 🗺️ **完整的地图工具栏** - 搜索、测量、绘制、图层切换等功能
|
|
8
|
-
- 📏 **精确测量工具** - 支持距离、面积、高度测量
|
|
9
|
-
- ✏️ **绘制功能** - 支持点、线、面绘制和编辑
|
|
10
|
-
- 🔄 **2D/3D切换** - 无缝切换2D和3D视图模式
|
|
11
|
-
- 🎨 **可定制样式** - 支持自定义按钮样式和布局
|
|
12
|
-
- 📱 **响应式设计** - 适配不同屏幕尺寸
|
|
13
|
-
- 🚀 **TypeScript支持** - 完整的类型定义
|
|
14
|
-
- ⚡ **Vue 3兼容** - 原生支持Vue 3项目
|
|
15
|
-
|
|
16
|
-
## 安装
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npm install @xingm/vmap-cesium-toolbar cesium
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## 快速开始
|
|
23
|
-
|
|
24
|
-
### 基本使用
|
|
25
|
-
|
|
26
|
-
```javascript
|
|
27
|
-
import { CesiumMapToolbar, initCesium } from '@xingm/vmap-cesium-toolbar';
|
|
28
|
-
import '@xingm/vmap-cesium-toolbar/style';
|
|
29
|
-
|
|
30
|
-
// 初始化Cesium
|
|
31
|
-
(async () => {
|
|
32
|
-
const { viewer } = await initCesium('cesiumContainer', {
|
|
33
|
-
terrainProvider: Cesium.createWorldTerrain(),
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
// 创建工具栏
|
|
37
|
-
const toolbar = new CesiumMapToolbar(viewer, document.getElementById('toolbar'));
|
|
38
|
-
})();
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Vue 3 项目中使用
|
|
42
|
-
|
|
43
|
-
```vue
|
|
44
|
-
<template>
|
|
45
|
-
<div id="cesiumContainer"></div>
|
|
46
|
-
<div id="toolbar"></div>
|
|
47
|
-
</template>
|
|
48
|
-
|
|
49
|
-
<script setup>
|
|
50
|
-
import { onMounted } from 'vue';
|
|
51
|
-
import { CesiumMapToolbar, initCesium } from '@xingm/vmap-cesium-toolbar';
|
|
52
|
-
import '@xingm/vmap-cesium-toolbar/style';
|
|
53
|
-
|
|
54
|
-
let viewer;
|
|
55
|
-
let toolbar;
|
|
56
|
-
|
|
57
|
-
onMounted(async () => {
|
|
58
|
-
// 初始化Cesium
|
|
59
|
-
const result = await initCesium('cesiumContainer', {
|
|
60
|
-
terrainProvider: Cesium.createWorldTerrain(),
|
|
61
|
-
});
|
|
62
|
-
viewer = result.viewer;
|
|
63
|
-
|
|
64
|
-
// 创建工具栏
|
|
65
|
-
toolbar = new CesiumMapToolbar(viewer, document.getElementById('toolbar'));
|
|
66
|
-
});
|
|
67
|
-
</script>
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## 主要组件
|
|
71
|
-
|
|
72
|
-
### CesiumMapToolbar
|
|
73
|
-
|
|
74
|
-
主要工具栏组件,提供完整的地图操作功能。
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
const toolbar = new CesiumMapToolbar(
|
|
78
|
-
viewer, // Cesium Viewer实例
|
|
79
|
-
container, // 工具栏容器元素
|
|
80
|
-
config, // 配置选项(可选)
|
|
81
|
-
callbacks, // 回调函数(可选)
|
|
82
|
-
initialCenter // 初始中心点(可选)
|
|
83
|
-
);
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### DrawHelper
|
|
87
|
-
|
|
88
|
-
绘制工具类(包的默认导出),提供线/面/矩形/圆等交互绘制能力。
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
import DrawHelper from '@xingm/vmap-cesium-toolbar';
|
|
92
|
-
|
|
93
|
-
const drawHelper = new DrawHelper(viewer);
|
|
94
|
-
drawHelper.startDrawingPolygon();
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### initCesium
|
|
98
|
-
|
|
99
|
-
Cesium 初始化函数,简化 Viewer 创建、底图/地形与初始视角配置。
|
|
100
|
-
|
|
101
|
-
```typescript
|
|
102
|
-
import { initCesium } from '@xingm/vmap-cesium-toolbar';
|
|
103
|
-
|
|
104
|
-
const { viewer } = await initCesium('cesiumContainer', {
|
|
105
|
-
cesiumToken: 'your_cesium_ion_token',
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
// 使用天地图时可指定底图类型(默认 imagery)
|
|
109
|
-
const { viewer: tdtViewer } = await initCesium('cesiumContainer', {
|
|
110
|
-
mapType: 'tiandi',
|
|
111
|
-
tdtMapTypeId: 'terrain',
|
|
112
|
-
token: 'your_tianditu_token',
|
|
113
|
-
});
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## 配置选项
|
|
117
|
-
|
|
118
|
-
### 工具栏配置
|
|
119
|
-
|
|
120
|
-
```typescript
|
|
121
|
-
interface ToolbarConfig {
|
|
122
|
-
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
123
|
-
buttonSize?: number; // 按钮大小 (默认40px)
|
|
124
|
-
buttonSpacing?: number; // 按钮间距 (默认8px)
|
|
125
|
-
backgroundColor?: string; // 背景色
|
|
126
|
-
borderColor?: string; // 边框色
|
|
127
|
-
borderRadius?: number; // 圆角半径
|
|
128
|
-
showSearch?: boolean; // 显示搜索框
|
|
129
|
-
showMeasurement?: boolean; // 显示测量工具
|
|
130
|
-
showDrawing?: boolean; // 显示绘制工具
|
|
131
|
-
showLayerControl?: boolean; // 显示图层控制
|
|
132
|
-
show2D3DToggle?: boolean; // 显示2D/3D切换
|
|
133
|
-
}
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### 回调函数
|
|
137
|
-
|
|
138
|
-
```typescript
|
|
139
|
-
interface ToolbarCallbacks {
|
|
140
|
-
search?: (query: string) => void;
|
|
141
|
-
measurement?: (type: string, result: any) => void;
|
|
142
|
-
drawing?: (type: string, entity: Entity) => void;
|
|
143
|
-
zoom?: (level: number) => void;
|
|
144
|
-
}
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
## 功能说明
|
|
148
|
-
|
|
149
|
-
### 搜索功能
|
|
150
|
-
|
|
151
|
-
支持路网搜索和坐标定位:
|
|
152
|
-
|
|
153
|
-
```javascript
|
|
154
|
-
// 搜索回调
|
|
155
|
-
const callbacks = {
|
|
156
|
-
search: (query) => {
|
|
157
|
-
console.log('搜索:', query);
|
|
158
|
-
// 实现搜索逻辑
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
### 测量工具
|
|
164
|
-
|
|
165
|
-
支持多种测量类型:
|
|
166
|
-
|
|
167
|
-
- **距离测量** - 测量两点间距离
|
|
168
|
-
- **面积测量** - 测量多边形面积
|
|
169
|
-
- **高度测量** - 测量点的高度信息
|
|
170
|
-
|
|
171
|
-
```javascript
|
|
172
|
-
// 测量回调
|
|
173
|
-
const callbacks = {
|
|
174
|
-
measurement: (type, result) => {
|
|
175
|
-
console.log('测量结果:', type, result);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
### 绘制功能
|
|
181
|
-
|
|
182
|
-
支持多种绘制类型:
|
|
183
|
-
|
|
184
|
-
- **点绘制** - 在地图上标记点
|
|
185
|
-
- **线绘制** - 绘制线条
|
|
186
|
-
- **面绘制** - 绘制多边形区域
|
|
187
|
-
|
|
188
|
-
```javascript
|
|
189
|
-
// 绘制回调
|
|
190
|
-
const callbacks = {
|
|
191
|
-
drawing: (type, entity) => {
|
|
192
|
-
console.log('绘制完成:', type, entity);
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
## 样式定制
|
|
198
|
-
|
|
199
|
-
组件提供了完整的CSS变量支持,可以轻松定制样式:
|
|
200
|
-
|
|
201
|
-
```css
|
|
202
|
-
:root {
|
|
203
|
-
--toolbar-bg-color: #ffffff;
|
|
204
|
-
--toolbar-border-color: #e0e0e0;
|
|
205
|
-
--toolbar-button-size: 40px;
|
|
206
|
-
--toolbar-button-spacing: 8px;
|
|
207
|
-
--toolbar-border-radius: 4px;
|
|
208
|
-
}
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
## 示例项目
|
|
212
|
-
|
|
213
|
-
### 基本使用示例
|
|
214
|
-
|
|
215
|
-
```bash
|
|
216
|
-
# 克隆项目
|
|
217
|
-
git clone https://github.com/your-username/vmap-cesium-toolbar.git
|
|
218
|
-
cd vmap-cesium-toolbar
|
|
219
|
-
|
|
220
|
-
# 查看基本示例
|
|
221
|
-
cd examples/basic-usage
|
|
222
|
-
# 在浏览器中打开 index.html
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
### Vue 3 示例
|
|
226
|
-
|
|
227
|
-
```bash
|
|
228
|
-
cd examples/vue3-usage
|
|
229
|
-
npm install
|
|
230
|
-
npm run dev
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
## API 文档
|
|
234
|
-
|
|
235
|
-
详细的API文档请参考:
|
|
236
|
-
|
|
237
|
-
- [CesiumMapToolbar API](./doc/CesiumMapToolbar_API.md)
|
|
238
|
-
- [CesiumMapHelper API](./doc/CesiumMapHelper_API.md)
|
|
239
|
-
- [CesiumMapLoader API](./doc/CesiumMapLoader_API.md)
|
|
240
|
-
- [CesiumOverlayService API](./doc/CesiumOverlayService_API.md)
|
|
241
|
-
|
|
242
|
-
## 依赖要求
|
|
243
|
-
|
|
244
|
-
- **Cesium**: ^1.100.0
|
|
245
|
-
- **Vue**: ^3.0.0 (可选,用于Vue项目)
|
|
246
|
-
|
|
247
|
-
## 浏览器支持
|
|
248
|
-
|
|
249
|
-
- Chrome 60+
|
|
250
|
-
- Firefox 55+
|
|
251
|
-
- Safari 12+
|
|
252
|
-
- Edge 79+
|
|
253
|
-
|
|
254
|
-
## 许可证
|
|
255
|
-
|
|
256
|
-
MIT License
|
|
257
|
-
|
|
258
|
-
## 贡献
|
|
259
|
-
|
|
260
|
-
欢迎提交 Issue 和 Pull Request!
|
|
261
|
-
|
|
262
|
-
## 更新日志
|
|
263
|
-
|
|
264
|
-
### v0.0.1-beta.2
|
|
265
|
-
|
|
266
|
-
- 新增高度测量功能
|
|
267
|
-
- 优化标签显示逻辑
|
|
268
|
-
- 修复3D模式下标签位置问题
|
|
269
|
-
- 改进绘制工具的用户体验
|
|
270
|
-
|
|
271
|
-
### v0.0.1-beta.1
|
|
272
|
-
|
|
273
|
-
- 初始版本发布
|
|
274
|
-
- 基础工具栏功能
|
|
275
|
-
- 搜索、测量、绘制功能
|
|
276
|
-
- Vue 3 支持
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { SearchResult } from '../libs/CesiumMapModel';
|
|
2
|
-
import { Viewer } from '../../node_modules/cesium';
|
|
3
|
-
import { Ref } from 'vue';
|
|
4
|
-
export declare const useToolBarConfig: (viewer: Viewer | undefined, message: Ref<string>) => {
|
|
5
|
-
toolbarConfig: {
|
|
6
|
-
position: string;
|
|
7
|
-
buttonSize: number;
|
|
8
|
-
buttonSpacing: number;
|
|
9
|
-
borderRadius: number;
|
|
10
|
-
borderWidth: number;
|
|
11
|
-
zIndex: number;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
buttons: ({
|
|
14
|
-
size: number;
|
|
15
|
-
id: string;
|
|
16
|
-
icon: string;
|
|
17
|
-
title: string;
|
|
18
|
-
titleKey: string;
|
|
19
|
-
color: string;
|
|
20
|
-
borderColor: string;
|
|
21
|
-
backgroundColor: string;
|
|
22
|
-
activeIcon?: undefined;
|
|
23
|
-
callback?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
size: number;
|
|
26
|
-
id: string;
|
|
27
|
-
icon: string;
|
|
28
|
-
title: string;
|
|
29
|
-
titleKey: string;
|
|
30
|
-
color: string;
|
|
31
|
-
backgroundColor: string;
|
|
32
|
-
borderColor?: undefined;
|
|
33
|
-
activeIcon?: undefined;
|
|
34
|
-
callback?: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
size: number;
|
|
37
|
-
id: string;
|
|
38
|
-
icon: boolean;
|
|
39
|
-
activeIcon: boolean;
|
|
40
|
-
title: string;
|
|
41
|
-
titleKey: string;
|
|
42
|
-
color: string;
|
|
43
|
-
backgroundColor: string;
|
|
44
|
-
borderColor?: undefined;
|
|
45
|
-
callback?: undefined;
|
|
46
|
-
} | {
|
|
47
|
-
size: number;
|
|
48
|
-
id: string;
|
|
49
|
-
icon: string;
|
|
50
|
-
title: string;
|
|
51
|
-
titleKey: string;
|
|
52
|
-
color: string;
|
|
53
|
-
borderColor: string;
|
|
54
|
-
backgroundColor: string;
|
|
55
|
-
callback: (isChecked: boolean, toolbar?: any) => void;
|
|
56
|
-
activeIcon?: undefined;
|
|
57
|
-
})[];
|
|
58
|
-
};
|
|
59
|
-
toolbarCallback: {
|
|
60
|
-
search: {
|
|
61
|
-
onSearch: (query: string) => Promise<SearchResult[]>;
|
|
62
|
-
onSelect: (result: SearchResult) => void;
|
|
63
|
-
};
|
|
64
|
-
measurement: {
|
|
65
|
-
onMeasurementStart: (positions?: any) => void;
|
|
66
|
-
onDistanceComplete: (positions: any, distance: any) => void;
|
|
67
|
-
onAreaComplete: (positions: any, area: any) => void;
|
|
68
|
-
onClear: () => void;
|
|
69
|
-
};
|
|
70
|
-
zoom: {
|
|
71
|
-
onZoomIn: (beforeLevel: any, afterLevel: any, currentLevel: any) => void;
|
|
72
|
-
onZoomOut: (beforeLevel: any, afterLevel: any, currentLevel: any) => void;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { default as DrawHelper } from '../libs/CesiumMapDraw';
|
|
3
|
-
import * as Cesium from "cesium";
|
|
4
|
-
/**
|
|
5
|
-
* 绘制相关的辅助逻辑
|
|
6
|
-
* - 提供线、矩形、圆形、多边形的绘制示例方法
|
|
7
|
-
*/
|
|
8
|
-
export declare function useDrawHelper(viewer: Ref<Cesium.Viewer | undefined>, message: Ref<string>): {
|
|
9
|
-
drawHelper: import('vue').ShallowRef<DrawHelper | null, DrawHelper | null>;
|
|
10
|
-
isDrawing: Ref<boolean, boolean>;
|
|
11
|
-
currentDrawMode: Ref<string | null, string | null>;
|
|
12
|
-
initDrawHelper: () => void;
|
|
13
|
-
endDrawing: () => void;
|
|
14
|
-
addDrawLine: () => void;
|
|
15
|
-
addDrawArea: () => void;
|
|
16
|
-
addDrawAreaNoLabel: () => void;
|
|
17
|
-
addDrawCircle: () => void;
|
|
18
|
-
addDrawCircleNoLabel: () => void;
|
|
19
|
-
addDrawPolygon: () => void;
|
|
20
|
-
addDrawPolygonNoLabel: () => void;
|
|
21
|
-
addDrawPolygon_PointIntercept: () => void;
|
|
22
|
-
addDrawPolygon_FinishFallback: () => void;
|
|
23
|
-
destroyDrawHelper: () => void;
|
|
24
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Viewer } from '../../node_modules/cesium';
|
|
2
|
-
import * as Cesium from "cesium";
|
|
3
|
-
export type CleanupFn = () => void;
|
|
4
|
-
export type RingDirection = "outward" | "inward";
|
|
5
|
-
export type AddDynamicRingOptions = {
|
|
6
|
-
position: Cesium.Cartesian3;
|
|
7
|
-
color?: Cesium.Color;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
scale?: number;
|
|
11
|
-
direction?: RingDirection;
|
|
12
|
-
imageSize?: number;
|
|
13
|
-
disableDepthTestDistance?: number;
|
|
14
|
-
};
|
|
15
|
-
export type DynamicRingInstance = {
|
|
16
|
-
billboard: Cesium.Billboard;
|
|
17
|
-
color: Cesium.Color;
|
|
18
|
-
direction: RingDirection;
|
|
19
|
-
};
|
|
20
|
-
export declare function getRingCanvas(size?: number): HTMLCanvasElement;
|
|
21
|
-
export declare function addDynamicRing(collection: Cesium.BillboardCollection, options: AddDynamicRingOptions): DynamicRingInstance;
|
|
22
|
-
export type StartDynamicRingOptions = {
|
|
23
|
-
lon: number;
|
|
24
|
-
lat: number;
|
|
25
|
-
/** 任选其一:radiusMeters / diameterMeters / widthMeters+heightMeters */
|
|
26
|
-
radiusMeters?: number;
|
|
27
|
-
diameterMeters?: number;
|
|
28
|
-
widthMeters?: number;
|
|
29
|
-
heightMeters?: number;
|
|
30
|
-
color?: Cesium.Color;
|
|
31
|
-
/** 发散方向:outward(由小到大) / inward(由大到小) */
|
|
32
|
-
direction?: RingDirection;
|
|
33
|
-
heightOffset?: number;
|
|
34
|
-
imageSize?: number;
|
|
35
|
-
disableDepthTestDistance?: number;
|
|
36
|
-
period?: number;
|
|
37
|
-
baseScale?: number;
|
|
38
|
-
scaleRange?: number;
|
|
39
|
-
baseAlpha?: number;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* 一站式:创建光圈 + 贴地采样 + preRender 动画,并返回 cleanup
|
|
43
|
-
*/
|
|
44
|
-
export declare function startDynamicRing(viewer: Viewer, options: StartDynamicRingOptions): CleanupFn;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { default as CesiumHeatmapLayer, HeatPoint, HeatmapOptions, HeatmapGradient, HeatmapAutoUpdateOptions } from '../libs/CesiumHeatmapLayer';
|
|
3
|
-
import * as Cesium from "cesium";
|
|
4
|
-
/**
|
|
5
|
-
* 热力图相关的辅助逻辑
|
|
6
|
-
*/
|
|
7
|
-
export declare function useHeatmapHelper(viewer: Ref<Cesium.Viewer | undefined>): {
|
|
8
|
-
heatmapLayer: import('vue').ShallowRef<CesiumHeatmapLayer | null, CesiumHeatmapLayer | null>;
|
|
9
|
-
visible: Ref<boolean, boolean>;
|
|
10
|
-
initHeatmap: (options?: HeatmapOptions) => void;
|
|
11
|
-
updateHeatmapData: (points: HeatPoint[]) => void;
|
|
12
|
-
setHeatmapVisible: (v: boolean) => void;
|
|
13
|
-
setHeatmapOpacity: (alpha: number) => void;
|
|
14
|
-
setHeatmapGradient: (gradient: HeatmapGradient) => void;
|
|
15
|
-
setHeatmapAutoUpdate: (options?: HeatmapAutoUpdateOptions) => void;
|
|
16
|
-
stopHeatmapAutoUpdate: () => void;
|
|
17
|
-
destroyHeatmap: () => void;
|
|
18
|
-
};
|
package/dist/hooks/useMap.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const TD_Map_TOKEN: any;
|
|
2
|
-
export declare const China_Map_Bound = "73.5577,18.1597,135.0882,53.5609";
|
|
3
|
-
export declare const China_Map_Center: {
|
|
4
|
-
longitude: number;
|
|
5
|
-
latitude: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const China_Map_Extent: {
|
|
9
|
-
west: number;
|
|
10
|
-
south: number;
|
|
11
|
-
east: number;
|
|
12
|
-
north: number;
|
|
13
|
-
};
|
|
14
|
-
export declare const TD_Map_Search_URL: (keywords: string, mapConfig: any, token?: any) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const TD_Map_TOKEN: any;
|
|
2
|
-
export declare const China_Map_Bound = "73.5577,18.1597,135.0882,53.5609";
|
|
3
|
-
export declare const China_Map_Center: {
|
|
4
|
-
longitude: number;
|
|
5
|
-
latitude: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const China_Map_Extent: {
|
|
9
|
-
west: number;
|
|
10
|
-
south: number;
|
|
11
|
-
east: number;
|
|
12
|
-
north: number;
|
|
13
|
-
};
|
|
14
|
-
export declare const TD_Map_Search_URL: (keywords: string, mapConfig: any, token?: any) => string;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Entity } from '../../node_modules/cesium';
|
|
3
|
-
import { OverlayEntity } from '../libs/overlay/types';
|
|
4
|
-
import { CesiumOverlayService } from '../libs/overlay';
|
|
5
|
-
import * as Cesium from "cesium";
|
|
6
|
-
type OverlayEditChangeHandler = (entity: Entity & OverlayEntity) => void;
|
|
7
|
-
type OverlayHelperOptions = {
|
|
8
|
-
/**
|
|
9
|
-
* 覆盖物编辑模式下,拖拽结束且几何变化时触发。
|
|
10
|
-
* 可用于同步业务数据或触发保存。
|
|
11
|
-
*/
|
|
12
|
-
onOverlayEditChange?: OverlayEditChangeHandler;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* 覆盖物相关的辅助逻辑
|
|
16
|
-
* - 提供添加点位(Marker)与示例覆盖物的便捷方法
|
|
17
|
-
* - 管理点位模式的事件处理及清理
|
|
18
|
-
*/
|
|
19
|
-
export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>, message: Ref<string>): {
|
|
20
|
-
overlayService: import('vue').ShallowRef<CesiumOverlayService | null, CesiumOverlayService | null>;
|
|
21
|
-
initOverlayService: (options?: OverlayHelperOptions) => void;
|
|
22
|
-
addMarker: () => void;
|
|
23
|
-
addMarkerWithLabel: () => void;
|
|
24
|
-
addLabel: (options: any) => void;
|
|
25
|
-
addIcon: (coords?: {
|
|
26
|
-
longitude: number;
|
|
27
|
-
latitude: number;
|
|
28
|
-
}) => void;
|
|
29
|
-
addSvg: (coords?: {
|
|
30
|
-
longitude: number;
|
|
31
|
-
latitude: number;
|
|
32
|
-
}) => void;
|
|
33
|
-
addPolyline: () => void;
|
|
34
|
-
addLine: () => void;
|
|
35
|
-
addArea: () => void;
|
|
36
|
-
addCircle: () => void;
|
|
37
|
-
addCircle123: () => void;
|
|
38
|
-
addRing: (i?: number) => Cesium.Entity | undefined;
|
|
39
|
-
addPolygon: () => void;
|
|
40
|
-
addRectangle: () => void;
|
|
41
|
-
addInfoWindow: () => void;
|
|
42
|
-
closeInfoWindow: () => void;
|
|
43
|
-
testSetOverlayHighlight: () => void;
|
|
44
|
-
testToggleOverlayHighlight: () => void;
|
|
45
|
-
cancelMarkerMode: () => void;
|
|
46
|
-
destroyOverlayService: () => void;
|
|
47
|
-
};
|
|
48
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { default as CesiumPointClusterLayer, ClusterPoint, PointClusterLayerOptions } from '../libs/CesiumPointClusterLayer';
|
|
3
|
-
import * as Cesium from 'cesium';
|
|
4
|
-
/**
|
|
5
|
-
* 点聚类图层相关的辅助逻辑(Vue3 composition API)
|
|
6
|
-
*/
|
|
7
|
-
export declare function usePointClusterHelper(viewer: Ref<Cesium.Viewer | undefined>): {
|
|
8
|
-
clusterLayer: import('vue').ShallowRef<CesiumPointClusterLayer | null, CesiumPointClusterLayer | null>;
|
|
9
|
-
visible: Ref<boolean, boolean>;
|
|
10
|
-
initCluster: (options?: PointClusterLayerOptions) => void;
|
|
11
|
-
updateClusterData: (points: ClusterPoint[]) => void;
|
|
12
|
-
setClusterVisible: (v: boolean) => void;
|
|
13
|
-
destroyCluster: () => void;
|
|
14
|
-
};
|
package/dist/i18n/en-US.d.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
declare const enUS: {
|
|
2
|
-
locale: string;
|
|
3
|
-
app: {
|
|
4
|
-
lang: {
|
|
5
|
-
zh: string;
|
|
6
|
-
en: string;
|
|
7
|
-
};
|
|
8
|
-
located: string;
|
|
9
|
-
init_success: string;
|
|
10
|
-
heatmap_empty: string;
|
|
11
|
-
heatmap_need_add: string;
|
|
12
|
-
heatmap_added: string;
|
|
13
|
-
heatmap_auto_on: string;
|
|
14
|
-
heatmap_auto_off: string;
|
|
15
|
-
heatmap_lod_coarse: string;
|
|
16
|
-
heatmap_lod_medium: string;
|
|
17
|
-
heatmap_lod_fine: string;
|
|
18
|
-
ring_test_added: string;
|
|
19
|
-
custom_alert: string;
|
|
20
|
-
custom_stats: string;
|
|
21
|
-
custom_visibility: string;
|
|
22
|
-
custom_alert_title: string;
|
|
23
|
-
custom_stats_title: string;
|
|
24
|
-
custom_visibility_title: string;
|
|
25
|
-
};
|
|
26
|
-
ui: {
|
|
27
|
-
draw: {
|
|
28
|
-
line: string;
|
|
29
|
-
area: string;
|
|
30
|
-
area_no_label: string;
|
|
31
|
-
circle: string;
|
|
32
|
-
circle_no_label: string;
|
|
33
|
-
polygon: string;
|
|
34
|
-
polygon_point_intercept: string;
|
|
35
|
-
polygon_finish_fallback: string;
|
|
36
|
-
polygon_no_label: string;
|
|
37
|
-
};
|
|
38
|
-
add: {
|
|
39
|
-
marker: string;
|
|
40
|
-
line: string;
|
|
41
|
-
area: string;
|
|
42
|
-
circle: string;
|
|
43
|
-
circle123: string;
|
|
44
|
-
polygon: string;
|
|
45
|
-
polyline: string;
|
|
46
|
-
icon: string;
|
|
47
|
-
svg: string;
|
|
48
|
-
marker_with_label: string;
|
|
49
|
-
label: string;
|
|
50
|
-
rectangle: string;
|
|
51
|
-
info_window: string;
|
|
52
|
-
ring: string;
|
|
53
|
-
ring_test: string;
|
|
54
|
-
heatmap: string;
|
|
55
|
-
};
|
|
56
|
-
test: {
|
|
57
|
-
set_highlight: string;
|
|
58
|
-
toggle_highlight: string;
|
|
59
|
-
};
|
|
60
|
-
heatmap: {
|
|
61
|
-
auto_on: string;
|
|
62
|
-
auto_off: string;
|
|
63
|
-
lod_coarse: string;
|
|
64
|
-
lod_medium: string;
|
|
65
|
-
lod_fine: string;
|
|
66
|
-
};
|
|
67
|
-
overlay_edit: {
|
|
68
|
-
enable: string;
|
|
69
|
-
disable: string;
|
|
70
|
-
stop: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
layers: {
|
|
74
|
-
map_type: {
|
|
75
|
-
place_name: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
draw: {
|
|
79
|
-
start: {
|
|
80
|
-
line: string;
|
|
81
|
-
rectangle: string;
|
|
82
|
-
rectangle_no_label: string;
|
|
83
|
-
circle: string;
|
|
84
|
-
circle_no_label: string;
|
|
85
|
-
polygon: string;
|
|
86
|
-
polygon_no_label: string;
|
|
87
|
-
polygon_point_intercept: string;
|
|
88
|
-
polygon_finish_fallback: string;
|
|
89
|
-
};
|
|
90
|
-
done: {
|
|
91
|
-
line: string;
|
|
92
|
-
rectangle: string;
|
|
93
|
-
rectangle_no_label: string;
|
|
94
|
-
circle: string;
|
|
95
|
-
circle_no_label: string;
|
|
96
|
-
polygon: string;
|
|
97
|
-
polygon_no_label: string;
|
|
98
|
-
polygon_point_intercept_ok: string;
|
|
99
|
-
polygon_point_intercept_end: string;
|
|
100
|
-
polygon_finish_fallback_ok: string;
|
|
101
|
-
polygon_finish_fallback_blocked: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
overlay: {
|
|
105
|
-
marker_mode: string;
|
|
106
|
-
marker_added: string;
|
|
107
|
-
marker_position: string;
|
|
108
|
-
sample_marker_label: string;
|
|
109
|
-
sample_marker_added: string;
|
|
110
|
-
icon_added: string;
|
|
111
|
-
icon_clicked: string;
|
|
112
|
-
svg_added: string;
|
|
113
|
-
svg_clicked: string;
|
|
114
|
-
polyline_added: string;
|
|
115
|
-
polyline_clicked: string;
|
|
116
|
-
line_added: string;
|
|
117
|
-
line_clicked: string;
|
|
118
|
-
area_added: string;
|
|
119
|
-
area_a_clicked: string;
|
|
120
|
-
area_b_clicked: string;
|
|
121
|
-
circle_added: string;
|
|
122
|
-
circle_a_clicked: string;
|
|
123
|
-
circle_b_clicked: string;
|
|
124
|
-
circle_c_clicked: string;
|
|
125
|
-
circle_d_clicked: string;
|
|
126
|
-
circle_e_clicked: string;
|
|
127
|
-
circle_alarm_clicked: string;
|
|
128
|
-
circle_detect_clicked: string;
|
|
129
|
-
rectangle_added: string;
|
|
130
|
-
rectangle_a_clicked: string;
|
|
131
|
-
rectangle_b_clicked: string;
|
|
132
|
-
rectangle_c_clicked: string;
|
|
133
|
-
rectangle_d_clicked: string;
|
|
134
|
-
rectangle_e_clicked: string;
|
|
135
|
-
highlight_need_rect_b: string;
|
|
136
|
-
highlight_need_rect_e: string;
|
|
137
|
-
info_window_added: string;
|
|
138
|
-
info_clicked: string;
|
|
139
|
-
info_window_title: string;
|
|
140
|
-
info_window_desc: string;
|
|
141
|
-
ring_added: string;
|
|
142
|
-
ring_clicked: string;
|
|
143
|
-
edit_mode_on: string;
|
|
144
|
-
edit_mode_off: string;
|
|
145
|
-
edit_stopped: string;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
export default enUS;
|
package/dist/i18n/index.d.ts
DELETED