@xingm/vmap-cesium-toolbar 0.0.7-alpha.1 → 0.0.7-alpha.2
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/README.md +276 -0
- package/dist/hooks/toolBarConfig.d.ts +78 -0
- package/dist/hooks/useDrawHelper.d.ts +24 -0
- package/dist/hooks/useDynamicRing.d.ts +44 -0
- package/dist/hooks/useHeatmapHelper.d.ts +18 -0
- package/dist/hooks/useMap.d.ts +14 -0
- package/dist/hooks/useMapInit.d.ts +14 -0
- package/dist/hooks/useOverlayHelper.d.ts +48 -0
- package/dist/hooks/usePointClusterHelper.d.ts +14 -0
- package/dist/i18n/en-US.d.ts +148 -0
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/zh-CN.d.ts +148 -0
- package/{index.d.ts → dist/index.d.ts} +1 -0
- package/{index.es.js → dist/index.es.js} +513 -473
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +342 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/libs/CesiumAutoRecover.d.ts +48 -0
- package/dist/libs/CesiumHeatmapLayer.d.ts +143 -0
- package/dist/libs/CesiumMapDraw.d.ts +251 -0
- package/dist/libs/CesiumMapLoader.d.ts +74 -0
- package/dist/libs/CesiumMapMark.d.ts +202 -0
- package/dist/libs/CesiumMapModel.d.ts +180 -0
- package/dist/libs/CesiumMapToolbar.d.ts +231 -0
- package/dist/libs/CesiumOverlayService.d.ts +227 -0
- package/dist/libs/CesiumPointClusterLayer.d.ts +93 -0
- package/dist/libs/PickGovernor.d.ts +23 -0
- package/dist/libs/config/CesiumMapConfig.d.ts +13 -0
- package/dist/libs/drawHelper/BaseDraw.d.ts +194 -0
- package/dist/libs/drawHelper/DrawCircle.d.ts +31 -0
- package/dist/libs/drawHelper/DrawHint.d.ts +32 -0
- package/dist/libs/drawHelper/DrawLine.d.ts +49 -0
- package/dist/libs/drawHelper/DrawPolgon.d.ts +35 -0
- package/dist/libs/drawHelper/DrawRectangle.d.ts +24 -0
- package/dist/libs/drawHelper/index.d.ts +6 -0
- package/dist/libs/i18n/en-US.d.ts +69 -0
- package/dist/libs/i18n/index.d.ts +25 -0
- package/dist/libs/i18n/zh-CN.d.ts +69 -0
- package/dist/libs/overlay/MapCircle.d.ts +130 -0
- package/dist/libs/overlay/MapIcon.d.ts +69 -0
- package/dist/libs/overlay/MapInfoWindow.d.ts +100 -0
- package/dist/libs/overlay/MapLabel.d.ts +73 -0
- package/dist/libs/overlay/MapMarker.d.ts +60 -0
- package/dist/libs/overlay/MapPolygon.d.ts +114 -0
- package/dist/libs/overlay/MapPolyline.d.ts +64 -0
- package/dist/libs/overlay/MapRectangle.d.ts +101 -0
- package/dist/libs/overlay/MapRing.d.ts +107 -0
- package/dist/libs/overlay/MapSVG.d.ts +73 -0
- package/dist/libs/overlay/OverlayEditController.d.ts +167 -0
- package/dist/libs/overlay/OverlayEditHandles.d.ts +101 -0
- package/dist/libs/overlay/OverlayHighlight.d.ts +40 -0
- package/dist/libs/overlay/index.d.ts +23 -0
- package/dist/libs/overlay/primitives/CirclePrimitiveBatch.d.ts +42 -0
- package/dist/libs/overlay/primitives/CirclePrimitiveLayerStack.d.ts +24 -0
- package/dist/libs/overlay/primitives/PolygonPrimitiveBatch.d.ts +43 -0
- package/dist/libs/overlay/primitives/PolygonPrimitiveLayerStack.d.ts +24 -0
- package/dist/libs/overlay/primitives/RectanglePrimitiveBatch.d.ts +41 -0
- package/dist/libs/overlay/primitives/RectanglePrimitiveLayerStack.d.ts +24 -0
- package/dist/libs/overlay/types.d.ts +121 -0
- package/dist/libs/toolBar/CesiumMapController.d.ts +87 -0
- package/dist/libs/toolBar/MapLayersService.d.ts +98 -0
- package/dist/libs/toolBar/MapSearchService.d.ts +51 -0
- package/dist/libs/toolBar/MapToolBarConfig.d.ts +10 -0
- package/dist/libs/toolBar/MeasurementService.d.ts +16 -0
- package/dist/libs/toolBar/NotFlyZonesService.d.ts +51 -0
- package/dist/package.json +46 -0
- package/dist/tdt/tdtAuth.d.ts +1 -0
- package/dist/tdt/tdtController.d.ts +16 -0
- package/dist/tdt/tdtPlugin.d.ts +14 -0
- package/dist/tdt/tdtProviders.d.ts +4 -0
- package/dist/tdt3dplug.es-pUYPBBmH.js +5264 -0
- package/dist/tdt3dplug.es-pUYPBBmH.js.map +1 -0
- package/dist/utils/calc.d.ts +50 -0
- package/dist/utils/common.d.ts +15 -0
- package/dist/utils/geojson.d.ts +86 -0
- package/dist/utils/overlayUtils.d.ts +149 -0
- package/dist/utils/selfIntersection.d.ts +15 -0
- package/dist/z.const.d.ts +24 -0
- package/package.json +74 -46
- package/index.umd.js +0 -337
- /package/{geojson → dist/geojson}/file-list.json +0 -0
- /package/{geojson → dist/geojson}//344/270/207/345/267/236_/344/272/224/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/270/211/344/272/232_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/270/211/346/230/216_/346/262/231/345/216/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/270/212/346/265/267_/346/265/246/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/270/212/346/265/267_/350/231/271/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//344/270/224/346/234/253_/347/216/211/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/270/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//344/270/264/346/261/276_/344/271/224/346/235/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//344/270/264/346/262/247_/345/215/232/345/260/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/270/271/344/270/234_/346/265/252/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/270/275/346/261/237_/344/270/211/344/271/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/271/211/344/271/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//344/271/214/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//344/272/225/345/206/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/274/212/345/256/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/274/212/346/230/245_/346/236/227/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/275/263/346/234/250/346/226/257/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//344/277/235/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/205/213/346/213/211/347/216/233/344/276/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/205/260/345/267/236_/344/270/255/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//345/214/205/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/214/227/344/272/254_/351/246/226/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/214/227/346/265/267_/347/246/217/346/210/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//345/215/227/344/272/254_/347/246/204/345/217/243/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/215/227/345/256/201_/345/220/264/345/234/251/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/215/227/346/230/214_/346/230/214/345/214/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/215/227/351/200/232_/345/205/264/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/215/227/351/230/263_/345/247/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//345/216/246/351/227/250_/351/253/230/345/264/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/217/260/345/267/236_/350/267/257/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/220/210/350/202/245_/346/226/260/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//345/222/214/347/224/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//345/226/200/344/273/200/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/230/211/345/263/252/345/205/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//345/241/224/345/237/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/244/247/345/220/214_/344/272/221/345/206/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//345/244/251/346/264/245_/346/273/250/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/244/252/345/216/237_/346/255/246/345/256/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/256/201/346/263/242_/346/240/216/347/244/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//345/256/211/345/272/206/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/256/234/345/256/276_/350/217/234/345/235/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/256/234/346/230/214_/344/270/211/345/263/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//345/270/270/345/267/236_/345/245/224/347/211/233/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//345/271/277/345/205/203_/347/233/230/351/276/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/271/277/345/267/236_/347/231/275/344/272/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/272/206/351/230/263_/350/245/277/345/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/272/223/350/275/246_/351/276/237/345/205/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/272/267/345/256/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//345/274/240/346/216/226_/347/224/230/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/276/220/345/267/236_/350/247/202/351/237/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//345/276/267/345/256/217_/350/212/222/345/270/202/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/200/200/345/214/226_/350/212/267/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/210/220/351/203/275_/345/217/214/346/265/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/211/254/345/267/236_/346/263/260/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/212/232/350/277/234_/344/270/234/346/236/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/217/255/351/230/263_/346/275/256/346/261/225/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/225/246/347/205/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//346/230/206/346/230/216_/351/225/277/346/260/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/231/256/346/264/261_/346/200/235/350/214/205/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/234/235/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/235/255/345/267/236_/350/220/247/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/236/234/346/264/233_/347/216/233/346/262/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/237/263/345/267/236_/347/231/275/350/216/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/241/202/346/236/227_/344/270/244/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/242/247/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/246/206/346/236/227_/346/246/206/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/255/246/346/261/211_/345/244/251/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/260/270/345/267/236_/351/233/266/351/231/265/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/261/211/344/270/255_/345/237/216/345/233/272/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/262/210/351/230/263_/346/241/203/344/273/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/263/211/345/267/236_/346/231/213/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/264/233/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/265/216/345/215/227_/351/201/245/345/242/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/265/216/345/256/201_/346/233/262/351/230/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/265/267/345/217/243_/347/276/216/345/205/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//346/267/256/345/256/211_/346/266/237/346/260/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/267/261/345/234/263_/345/256/235/345/256/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/270/251/345/267/236_/351/276/231/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/271/233/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//346/274/240/346/262/263_/345/217/244/350/216/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/275/215/345/235/212/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//346/276/234/346/262/247_/346/231/257/350/277/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//347/203/237/345/217/260_/350/223/254/350/216/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//347/216/211/346/240/221_/345/267/264/345/241/230/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//347/217/240/346/265/267_/351/207/221/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//347/220/274/346/265/267_/345/215/232/351/263/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//347/224/230/345/215/227_/345/244/217/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//347/231/275/345/237/216_/351/225/277/345/256/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//347/231/276/350/211/262_/345/267/264/351/251/254/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//347/246/217/345/267/236_/351/225/277/344/271/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//347/250/273/345/237/216_/344/272/232/344/270/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/205/276/345/206/262_/351/251/274/345/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/220/245/345/217/243_/345/205/260/346/227/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/241/241/351/230/263_/345/215/227/345/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/241/242/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/245/204/351/230/263_/345/210/230/351/233/206/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//350/245/277/345/256/211_/345/222/270/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/245/277/346/230/214_/351/235/222/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//350/265/243/345/267/236_/351/273/204/351/207/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/265/244/345/263/260_/347/216/211/351/276/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//350/276/276/345/267/236_/346/262/263/345/270/202/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{geojson → dist/geojson}//351/203/221/345/267/236_/346/226/260/351/203/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//351/207/215/345/272/206_/346/261/237/345/214/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/207/221/346/230/214_/351/207/221/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/223/234/344/273/201_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/223/266/345/267/235_/346/262/263/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/224/241/346/236/227/346/265/251/347/211/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//351/225/277/346/230/245_/351/276/231/345/230/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/225/277/346/262/231_/351/273/204/350/212/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//351/230/277/345/213/222/346/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//351/235/222/345/262/233_/346/265/201/344/272/255/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/236/215/345/261/261_/350/205/276/351/263/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/geojson}//351/273/204/345/261/261_/345/261/257/346/272/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/273/216/345/271/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/geojson}//351/273/221/346/262/263_/347/221/267/347/217/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{geojson → dist/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/{geojson → dist/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/{style.css → dist/style.css} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
+
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
+
/**
|
|
4
|
+
* 画多边形绘制类
|
|
5
|
+
*/
|
|
6
|
+
export declare class DrawPolygon extends BaseDraw {
|
|
7
|
+
private currentPolygonEntity;
|
|
8
|
+
private currentBorderEntity;
|
|
9
|
+
/**
|
|
10
|
+
* 结束绘制但未生成最终结果(例如点数不足/自相交被拦截)时的统一清理。
|
|
11
|
+
* 目标:不留下临时实体/状态副作用(尤其是 depthTestAgainstTerrain)。
|
|
12
|
+
*/
|
|
13
|
+
private abortFinishCleanup;
|
|
14
|
+
/**
|
|
15
|
+
* 开始绘制
|
|
16
|
+
*/
|
|
17
|
+
startDrawing(options?: DrawOptions): void;
|
|
18
|
+
/**
|
|
19
|
+
* 更新绘制实体(预览)
|
|
20
|
+
*/
|
|
21
|
+
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
22
|
+
/**
|
|
23
|
+
* 完成绘制
|
|
24
|
+
*/
|
|
25
|
+
finishDrawing(): DrawResult | null;
|
|
26
|
+
/**
|
|
27
|
+
* 清理所有绘制相关的实体
|
|
28
|
+
*/
|
|
29
|
+
clear(): void;
|
|
30
|
+
/**
|
|
31
|
+
* 获取绘制类型
|
|
32
|
+
*/
|
|
33
|
+
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
34
|
+
addPoint(position: Cartesian3): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
+
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
+
/**
|
|
4
|
+
* 画矩形绘制类
|
|
5
|
+
*/
|
|
6
|
+
export declare class DrawRectangle extends BaseDraw {
|
|
7
|
+
private currentRectangleEntity;
|
|
8
|
+
/**
|
|
9
|
+
* 开始绘制
|
|
10
|
+
*/
|
|
11
|
+
startDrawing(options?: DrawOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* 更新绘制实体(预览)
|
|
14
|
+
*/
|
|
15
|
+
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
16
|
+
/**
|
|
17
|
+
* 完成绘制
|
|
18
|
+
*/
|
|
19
|
+
finishDrawing(): DrawResult | null;
|
|
20
|
+
/**
|
|
21
|
+
* 获取绘制类型
|
|
22
|
+
*/
|
|
23
|
+
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BaseDraw, type DrawResult, type DrawCallbacks, type DrawOptions, type DrawEntity, toggleSelectedStyle } from './BaseDraw';
|
|
2
|
+
export { DrawLine } from './DrawLine';
|
|
3
|
+
export { DrawPolygon } from './DrawPolgon';
|
|
4
|
+
export { DrawRectangle } from './DrawRectangle';
|
|
5
|
+
export { DrawCircle } from './DrawCircle';
|
|
6
|
+
export { DrawHintHelper } from './DrawHint';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const enUS: {
|
|
2
|
+
locale: string;
|
|
3
|
+
toolbar: {
|
|
4
|
+
search: string;
|
|
5
|
+
measure: string;
|
|
6
|
+
view2d3d: string;
|
|
7
|
+
layers: string;
|
|
8
|
+
location: string;
|
|
9
|
+
zoom_in: string;
|
|
10
|
+
zoom_out: string;
|
|
11
|
+
fullscreen: string;
|
|
12
|
+
};
|
|
13
|
+
measurement: {
|
|
14
|
+
start: string;
|
|
15
|
+
distance_done: string;
|
|
16
|
+
area_done: string;
|
|
17
|
+
cleared: string;
|
|
18
|
+
menu: {
|
|
19
|
+
area: string;
|
|
20
|
+
distance: string;
|
|
21
|
+
clear: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
search: {
|
|
25
|
+
placeholder: string;
|
|
26
|
+
failed: string;
|
|
27
|
+
no_results: string;
|
|
28
|
+
};
|
|
29
|
+
layers: {
|
|
30
|
+
title: string;
|
|
31
|
+
overlay_title: string;
|
|
32
|
+
overlay: {
|
|
33
|
+
airport: string;
|
|
34
|
+
};
|
|
35
|
+
map_type: {
|
|
36
|
+
place_name: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
map_type: {
|
|
40
|
+
normal: string;
|
|
41
|
+
"3d": string;
|
|
42
|
+
imagery: string;
|
|
43
|
+
terrain: string;
|
|
44
|
+
};
|
|
45
|
+
no_fly: {
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
draw: {
|
|
49
|
+
hint: {
|
|
50
|
+
circle_start: string;
|
|
51
|
+
circle_radius: string;
|
|
52
|
+
rectangle_start: string;
|
|
53
|
+
rectangle_end: string;
|
|
54
|
+
finish_or_undo: string;
|
|
55
|
+
polygon_start: string;
|
|
56
|
+
polygon_add: string;
|
|
57
|
+
polygon_continue: string;
|
|
58
|
+
line_start: string;
|
|
59
|
+
line_add: string;
|
|
60
|
+
line_continue: string;
|
|
61
|
+
polygon_no_intersection: string;
|
|
62
|
+
};
|
|
63
|
+
label: {
|
|
64
|
+
total_length: string;
|
|
65
|
+
area: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default enUS;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type Locale = "zh-CN" | "en-US" | (string & {});
|
|
2
|
+
type I18nDict = Record<string, any>;
|
|
3
|
+
interface I18nLike {
|
|
4
|
+
getLocale(): Locale;
|
|
5
|
+
setLocale(locale: Locale, options?: {
|
|
6
|
+
persist?: boolean;
|
|
7
|
+
}): void;
|
|
8
|
+
t(key: string, params?: Record<string, any>, localeOverride?: Locale): string;
|
|
9
|
+
onLocaleChange(cb: (locale: Locale) => void): () => void;
|
|
10
|
+
bindElement(el: HTMLElement, key: string, attr?: "text" | "title" | "placeholder", params?: Record<string, any>): void;
|
|
11
|
+
updateElement(el: HTMLElement): void;
|
|
12
|
+
updateTree(root: HTMLElement): void;
|
|
13
|
+
addMessages?(locale: Locale, dict: I18nDict, options?: {
|
|
14
|
+
merge?: boolean;
|
|
15
|
+
}): void;
|
|
16
|
+
setFallbackLocale?(locale: Locale): void;
|
|
17
|
+
configure?(options: {
|
|
18
|
+
persist?: boolean;
|
|
19
|
+
useStoredLocale?: boolean;
|
|
20
|
+
fallbackLocale?: Locale;
|
|
21
|
+
locale?: Locale;
|
|
22
|
+
}): void;
|
|
23
|
+
}
|
|
24
|
+
export declare const i18n: I18nLike;
|
|
25
|
+
export type { Locale, I18nLike };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const zhCN: {
|
|
2
|
+
locale: string;
|
|
3
|
+
toolbar: {
|
|
4
|
+
search: string;
|
|
5
|
+
measure: string;
|
|
6
|
+
view2d3d: string;
|
|
7
|
+
layers: string;
|
|
8
|
+
location: string;
|
|
9
|
+
zoom_in: string;
|
|
10
|
+
zoom_out: string;
|
|
11
|
+
fullscreen: string;
|
|
12
|
+
};
|
|
13
|
+
measurement: {
|
|
14
|
+
start: string;
|
|
15
|
+
distance_done: string;
|
|
16
|
+
area_done: string;
|
|
17
|
+
cleared: string;
|
|
18
|
+
menu: {
|
|
19
|
+
area: string;
|
|
20
|
+
distance: string;
|
|
21
|
+
clear: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
search: {
|
|
25
|
+
placeholder: string;
|
|
26
|
+
failed: string;
|
|
27
|
+
no_results: string;
|
|
28
|
+
};
|
|
29
|
+
layers: {
|
|
30
|
+
title: string;
|
|
31
|
+
overlay_title: string;
|
|
32
|
+
overlay: {
|
|
33
|
+
airport: string;
|
|
34
|
+
};
|
|
35
|
+
map_type: {
|
|
36
|
+
place_name: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
map_type: {
|
|
40
|
+
normal: string;
|
|
41
|
+
"3d": string;
|
|
42
|
+
imagery: string;
|
|
43
|
+
terrain: string;
|
|
44
|
+
};
|
|
45
|
+
no_fly: {
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
draw: {
|
|
49
|
+
hint: {
|
|
50
|
+
circle_start: string;
|
|
51
|
+
circle_radius: string;
|
|
52
|
+
rectangle_start: string;
|
|
53
|
+
rectangle_end: string;
|
|
54
|
+
finish_or_undo: string;
|
|
55
|
+
polygon_start: string;
|
|
56
|
+
polygon_add: string;
|
|
57
|
+
polygon_continue: string;
|
|
58
|
+
line_start: string;
|
|
59
|
+
line_add: string;
|
|
60
|
+
line_continue: string;
|
|
61
|
+
polygon_no_intersection: string;
|
|
62
|
+
};
|
|
63
|
+
label: {
|
|
64
|
+
total_length: string;
|
|
65
|
+
area: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default zhCN;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition, OverlayEntity } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Circle 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface CircleOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
radius: number;
|
|
10
|
+
/**
|
|
11
|
+
* 渲染模式:
|
|
12
|
+
* - auto:自动选择(默认;当前实现等同于 entity)
|
|
13
|
+
* - entity:使用 Cesium Entity
|
|
14
|
+
* - primitive:使用 Cesium Primitive(为大批量静态覆盖物预留)
|
|
15
|
+
*/
|
|
16
|
+
renderMode?: 'auto' | 'entity' | 'primitive';
|
|
17
|
+
material?: Cesium.MaterialProperty | Color | string;
|
|
18
|
+
outline?: boolean;
|
|
19
|
+
outlineColor?: Color | string;
|
|
20
|
+
outlineWidth?: number;
|
|
21
|
+
/**
|
|
22
|
+
* 粗边框(outlineWidth>1)模式下用于近似圆的分段数,越大越圆滑但更耗性能。
|
|
23
|
+
* 默认 256。
|
|
24
|
+
*/
|
|
25
|
+
segments?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 是否贴地(默认:在粗边框模式下为 true)。
|
|
28
|
+
* - true:填充与边框都贴地。
|
|
29
|
+
* - false:填充与边框都使用 position 高度悬空。
|
|
30
|
+
*/
|
|
31
|
+
clampToGround?: boolean;
|
|
32
|
+
/** 贴地抬高量(米,clampToGround=true 时生效) */
|
|
33
|
+
groundHeightEpsilon?: number;
|
|
34
|
+
heightReference?: HeightReference;
|
|
35
|
+
extrudedHeight?: number;
|
|
36
|
+
heightEpsilon?: number;
|
|
37
|
+
/** 点击该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
38
|
+
clickHighlight?: boolean | {
|
|
39
|
+
color?: Color | string;
|
|
40
|
+
fillAlpha?: number;
|
|
41
|
+
};
|
|
42
|
+
/** 鼠标移入该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
43
|
+
hoverHighlight?: boolean | {
|
|
44
|
+
color?: Color | string;
|
|
45
|
+
fillAlpha?: number;
|
|
46
|
+
};
|
|
47
|
+
onClick?: (entity: Entity) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Primitive 模式分层渲染 key。
|
|
50
|
+
* - 相同 layerKey 的 circle 会被合并到同一个批次中(更高性能)
|
|
51
|
+
* - 不同 layerKey 会进入不同的“图层空间”,并按首次出现顺序确定上下层
|
|
52
|
+
* - 只对 primitive 生效;entity 模式忽略
|
|
53
|
+
*/
|
|
54
|
+
layerKey?: string;
|
|
55
|
+
id?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Circle 工具类
|
|
59
|
+
*/
|
|
60
|
+
export declare class MapCircle {
|
|
61
|
+
private viewer;
|
|
62
|
+
private entities;
|
|
63
|
+
private primitiveBatch;
|
|
64
|
+
private primitiveLayerStack;
|
|
65
|
+
private primitiveBatchesByLayer;
|
|
66
|
+
private static bearingTableCache;
|
|
67
|
+
constructor(viewer: Viewer);
|
|
68
|
+
private getPrimitiveBatch;
|
|
69
|
+
private getLayeredPrimitiveBatch;
|
|
70
|
+
private getPrimitiveBatchForOverlay;
|
|
71
|
+
private resolveMaterialColor;
|
|
72
|
+
private canUsePrimitive;
|
|
73
|
+
/**
|
|
74
|
+
* 添加一个基础的圆形图元
|
|
75
|
+
* @param options 圆形配置选项
|
|
76
|
+
* @returns 返回创建的实体对象
|
|
77
|
+
*/
|
|
78
|
+
private addPrimitiveCircle;
|
|
79
|
+
/**
|
|
80
|
+
* 转换位置为 Cartesian3
|
|
81
|
+
*/
|
|
82
|
+
private convertPosition;
|
|
83
|
+
/**
|
|
84
|
+
* 转换颜色
|
|
85
|
+
*/
|
|
86
|
+
private resolveColor;
|
|
87
|
+
/**
|
|
88
|
+
* 解析材质
|
|
89
|
+
*/
|
|
90
|
+
private resolveMaterial;
|
|
91
|
+
/**
|
|
92
|
+
* 添加 Circle(圆形)
|
|
93
|
+
*/
|
|
94
|
+
add(options: CircleOptions): Entity;
|
|
95
|
+
/**
|
|
96
|
+
* 生成近似圆(多边形)顶点,返回 Cartesian3 数组。
|
|
97
|
+
* 使用大圆航线公式,segments 越大越平滑。
|
|
98
|
+
*/
|
|
99
|
+
private generateCirclePositions;
|
|
100
|
+
/**
|
|
101
|
+
* 获取方位角查找表,用于存储正弦和余弦值
|
|
102
|
+
* @param segments 分段数量,用于确定查找表的精度
|
|
103
|
+
* @returns 返回一个包含正弦和余弦数组的对象
|
|
104
|
+
*/
|
|
105
|
+
private getBearingTable;
|
|
106
|
+
/**
|
|
107
|
+
* 粗边框模式的默认分段数:平衡“圆滑程度/性能”。
|
|
108
|
+
* 用户如果传了 options.segments,则完全尊重用户设置。
|
|
109
|
+
*/
|
|
110
|
+
private getDefaultSegmentsForRadius;
|
|
111
|
+
/**
|
|
112
|
+
* 更新 Circle 位置
|
|
113
|
+
*/
|
|
114
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
115
|
+
/**
|
|
116
|
+
* 更新 Circle 半径
|
|
117
|
+
*/
|
|
118
|
+
updateRadius(entity: Entity, radius: number): void;
|
|
119
|
+
/**
|
|
120
|
+
* 更新 Circle 样式
|
|
121
|
+
*/
|
|
122
|
+
updateStyle(entity: Entity, options: Partial<Pick<CircleOptions, 'material' | 'outline' | 'outlineColor' | 'outlineWidth'>>): void;
|
|
123
|
+
/**
|
|
124
|
+
* 移除 Circle(通过实体或实体 id)
|
|
125
|
+
*/
|
|
126
|
+
remove(entityOrId: Entity | string): boolean;
|
|
127
|
+
setPrimitiveVisible(entity: Entity, visible: boolean): void;
|
|
128
|
+
applyPrimitiveHighlight(entity: OverlayEntity, hlColor: Cesium.Color, fillAlpha: number): void;
|
|
129
|
+
restorePrimitiveHighlight(entity: OverlayEntity): void;
|
|
130
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference, VerticalOrigin, HorizontalOrigin } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Icon 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface IconOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
image: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
scale?: number;
|
|
13
|
+
rotation?: number;
|
|
14
|
+
pixelOffset?: Cesium.Cartesian2;
|
|
15
|
+
eyeOffset?: Cesium.Cartesian3;
|
|
16
|
+
horizontalOrigin?: HorizontalOrigin;
|
|
17
|
+
verticalOrigin?: VerticalOrigin;
|
|
18
|
+
heightReference?: HeightReference;
|
|
19
|
+
disableDepthTestDistance?: number;
|
|
20
|
+
color?: Color | string;
|
|
21
|
+
/** 点击该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
22
|
+
clickHighlight?: boolean | {
|
|
23
|
+
color?: Color | string;
|
|
24
|
+
fillAlpha?: number;
|
|
25
|
+
};
|
|
26
|
+
/** 鼠标移入该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
27
|
+
hoverHighlight?: boolean | {
|
|
28
|
+
color?: Color | string;
|
|
29
|
+
fillAlpha?: number;
|
|
30
|
+
};
|
|
31
|
+
onClick?: (entity: Entity) => void;
|
|
32
|
+
id?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Icon 工具类
|
|
36
|
+
*/
|
|
37
|
+
export declare class MapIcon {
|
|
38
|
+
private viewer;
|
|
39
|
+
private entities;
|
|
40
|
+
constructor(viewer: Viewer);
|
|
41
|
+
/**
|
|
42
|
+
* 转换位置为 Cartesian3
|
|
43
|
+
*/
|
|
44
|
+
private convertPosition;
|
|
45
|
+
/**
|
|
46
|
+
* 转换颜色
|
|
47
|
+
*/
|
|
48
|
+
private resolveColor;
|
|
49
|
+
/**
|
|
50
|
+
* 添加 Icon(图标,使用 Billboard)
|
|
51
|
+
*/
|
|
52
|
+
add(options: IconOptions): Entity;
|
|
53
|
+
/**
|
|
54
|
+
* 更新 Icon 位置
|
|
55
|
+
*/
|
|
56
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
57
|
+
/**
|
|
58
|
+
* 更新 Icon 图片
|
|
59
|
+
*/
|
|
60
|
+
updateImage(entity: Entity, image: string): void;
|
|
61
|
+
/**
|
|
62
|
+
* 更新 Icon 样式
|
|
63
|
+
*/
|
|
64
|
+
updateStyle(entity: Entity, options: Partial<Pick<IconOptions, 'scale' | 'rotation' | 'color'>>): void;
|
|
65
|
+
/**
|
|
66
|
+
* 移除 Icon(通过实体或实体 id)
|
|
67
|
+
*/
|
|
68
|
+
remove(entityOrId: Entity | string): boolean;
|
|
69
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Viewer, Entity } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from 'cesium';
|
|
4
|
+
export interface InfoWindowOptions {
|
|
5
|
+
position: OverlayPosition;
|
|
6
|
+
content: string | HTMLElement;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
pixelOffset?: Cesium.Cartesian2;
|
|
10
|
+
show?: boolean;
|
|
11
|
+
onClick?: (entity: Entity) => void;
|
|
12
|
+
id?: string;
|
|
13
|
+
closable?: boolean;
|
|
14
|
+
onClose?: (entity: Entity) => void;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
font?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
20
|
+
showArrow?: boolean;
|
|
21
|
+
arrowSize?: number;
|
|
22
|
+
positionOffset?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
|
|
23
|
+
hideWhenOutOfView?: boolean;
|
|
24
|
+
anchorHeight?: number;
|
|
25
|
+
anchorPixel?: number;
|
|
26
|
+
tailGap?: number;
|
|
27
|
+
updateInterval?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 面向 Cesium 的 HTML 信息窗口管理器
|
|
31
|
+
* 要求 container 为 position: relative 的 DOM 容器(通常与 viewer.canvas 同级或包裹)
|
|
32
|
+
*/
|
|
33
|
+
export declare class MapInfoWindow {
|
|
34
|
+
private viewer;
|
|
35
|
+
private container;
|
|
36
|
+
private entityMap;
|
|
37
|
+
private currentTopZIndex;
|
|
38
|
+
private defaultUpdateInterval;
|
|
39
|
+
private isCameraMoving;
|
|
40
|
+
private cameraMoveStartListener?;
|
|
41
|
+
private cameraMoveEndListener?;
|
|
42
|
+
/**
|
|
43
|
+
* 合并用户传入的 InfoWindowOptions 与默认值,提升入参灵活性。
|
|
44
|
+
* 注意:必填项 position / content 由调用方提供,不在默认值内。
|
|
45
|
+
*/
|
|
46
|
+
private mergeOptions;
|
|
47
|
+
constructor(viewer: Viewer, container: HTMLElement);
|
|
48
|
+
/**
|
|
49
|
+
* 设置默认的位置更新间隔(毫秒):当 InfoWindow 未指定 `updateInterval` 时使用。
|
|
50
|
+
* 0 表示每帧更新。
|
|
51
|
+
*/
|
|
52
|
+
setDefaultUpdateInterval(ms: number): void;
|
|
53
|
+
/**
|
|
54
|
+
* 强制立即更新(重新计算位置)所有已管理的信息窗。
|
|
55
|
+
*/
|
|
56
|
+
forceUpdateAll(): void;
|
|
57
|
+
private convertPosition;
|
|
58
|
+
/**
|
|
59
|
+
* 将世界坐标转换为相对于 container 的 CSS 像素坐标
|
|
60
|
+
*/
|
|
61
|
+
private getContainerPixelPosition;
|
|
62
|
+
/**
|
|
63
|
+
* 更新单个 infoWindow 的显示状态和位置
|
|
64
|
+
*/
|
|
65
|
+
private updateDomPosition;
|
|
66
|
+
/**
|
|
67
|
+
* 创建 DOM 元素
|
|
68
|
+
*/
|
|
69
|
+
private createDomElement;
|
|
70
|
+
/**
|
|
71
|
+
* 将指定 InfoWindow 置于最前
|
|
72
|
+
*/
|
|
73
|
+
bringToFront(entity: Entity): void;
|
|
74
|
+
/**
|
|
75
|
+
* 添加信息窗口
|
|
76
|
+
*/
|
|
77
|
+
add(options: InfoWindowOptions): Entity;
|
|
78
|
+
/**
|
|
79
|
+
* 更新位置
|
|
80
|
+
*/
|
|
81
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
82
|
+
/**
|
|
83
|
+
* 更新内容
|
|
84
|
+
*/
|
|
85
|
+
updateContent(entity: Entity, content: string | HTMLElement): void;
|
|
86
|
+
/**
|
|
87
|
+
* 显示/隐藏
|
|
88
|
+
*/
|
|
89
|
+
setVisible(entity: Entity, visible: boolean): void;
|
|
90
|
+
show(entity: Entity): void;
|
|
91
|
+
hide(entity: Entity): void;
|
|
92
|
+
/**
|
|
93
|
+
* 移除信息窗口(清理 DOM + 监听器 + 实体)
|
|
94
|
+
*/
|
|
95
|
+
remove(entity: Entity): void;
|
|
96
|
+
/**
|
|
97
|
+
* 销毁整个管理器(清理所有 infoWindow)
|
|
98
|
+
*/
|
|
99
|
+
destroy(): void;
|
|
100
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference, LabelStyle, VerticalOrigin, HorizontalOrigin } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Label 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface LabelOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
text: string;
|
|
10
|
+
font?: string;
|
|
11
|
+
fillColor?: Color | string;
|
|
12
|
+
outlineColor?: Color | string;
|
|
13
|
+
outlineWidth?: number;
|
|
14
|
+
style?: LabelStyle;
|
|
15
|
+
pixelOffset?: Cesium.Cartesian2;
|
|
16
|
+
eyeOffset?: Cesium.Cartesian3;
|
|
17
|
+
horizontalOrigin?: HorizontalOrigin;
|
|
18
|
+
verticalOrigin?: VerticalOrigin;
|
|
19
|
+
heightReference?: HeightReference;
|
|
20
|
+
scale?: number;
|
|
21
|
+
showBackground?: boolean;
|
|
22
|
+
backgroundColor?: Color | string;
|
|
23
|
+
backgroundPadding?: Cesium.Cartesian2;
|
|
24
|
+
disableDepthTestDistance?: number;
|
|
25
|
+
/** 点击该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
26
|
+
clickHighlight?: boolean | {
|
|
27
|
+
color?: Color | string;
|
|
28
|
+
fillAlpha?: number;
|
|
29
|
+
};
|
|
30
|
+
/** 鼠标移入该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
31
|
+
hoverHighlight?: boolean | {
|
|
32
|
+
color?: Color | string;
|
|
33
|
+
fillAlpha?: number;
|
|
34
|
+
};
|
|
35
|
+
onClick?: (entity: Entity) => void;
|
|
36
|
+
id?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Label 工具类
|
|
40
|
+
*/
|
|
41
|
+
export declare class MapLabel {
|
|
42
|
+
private viewer;
|
|
43
|
+
private entities;
|
|
44
|
+
constructor(viewer: Viewer);
|
|
45
|
+
/**
|
|
46
|
+
* 转换位置为 Cartesian3
|
|
47
|
+
*/
|
|
48
|
+
private convertPosition;
|
|
49
|
+
/**
|
|
50
|
+
* 转换颜色
|
|
51
|
+
*/
|
|
52
|
+
private resolveColor;
|
|
53
|
+
/**
|
|
54
|
+
* 添加 Label(文本标签)
|
|
55
|
+
*/
|
|
56
|
+
add(options: LabelOptions): Entity;
|
|
57
|
+
/**
|
|
58
|
+
* 更新 Label 位置
|
|
59
|
+
*/
|
|
60
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
61
|
+
/**
|
|
62
|
+
* 更新 Label 文本
|
|
63
|
+
*/
|
|
64
|
+
updateText(entity: Entity, text: string): void;
|
|
65
|
+
/**
|
|
66
|
+
* 更新 Label 样式
|
|
67
|
+
*/
|
|
68
|
+
updateStyle(entity: Entity, options: Partial<Pick<LabelOptions, 'fillColor' | 'outlineColor' | 'outlineWidth' | 'font' | 'scale'>>): void;
|
|
69
|
+
/**
|
|
70
|
+
* 移除 Label(通过实体或实体 id)
|
|
71
|
+
*/
|
|
72
|
+
remove(entityOrId: Entity | string): boolean;
|
|
73
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Marker 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface MarkerOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
pixelSize?: number;
|
|
10
|
+
color?: Color | string;
|
|
11
|
+
outlineColor?: Color | string;
|
|
12
|
+
outlineWidth?: number;
|
|
13
|
+
heightReference?: HeightReference;
|
|
14
|
+
scaleByDistance?: Cesium.NearFarScalar;
|
|
15
|
+
disableDepthTestDistance?: number;
|
|
16
|
+
/** 点击该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
17
|
+
clickHighlight?: boolean | {
|
|
18
|
+
color?: Color | string;
|
|
19
|
+
fillAlpha?: number;
|
|
20
|
+
};
|
|
21
|
+
/** 鼠标移入该覆盖物时是否高亮显示(默认 false)。支持传入自定义颜色等参数 */
|
|
22
|
+
hoverHighlight?: boolean | {
|
|
23
|
+
color?: Color | string;
|
|
24
|
+
fillAlpha?: number;
|
|
25
|
+
};
|
|
26
|
+
onClick?: (entity: Entity) => void;
|
|
27
|
+
id?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Marker 工具类
|
|
31
|
+
*/
|
|
32
|
+
export declare class MapMarker {
|
|
33
|
+
private viewer;
|
|
34
|
+
private entities;
|
|
35
|
+
constructor(viewer: Viewer);
|
|
36
|
+
/**
|
|
37
|
+
* 转换位置为 Cartesian3
|
|
38
|
+
*/
|
|
39
|
+
private convertPosition;
|
|
40
|
+
/**
|
|
41
|
+
* 转换颜色
|
|
42
|
+
*/
|
|
43
|
+
private resolveColor;
|
|
44
|
+
/**
|
|
45
|
+
* 添加 Marker(点标记)
|
|
46
|
+
*/
|
|
47
|
+
add(options: MarkerOptions): Entity;
|
|
48
|
+
/**
|
|
49
|
+
* 更新 Marker 位置
|
|
50
|
+
*/
|
|
51
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
52
|
+
/**
|
|
53
|
+
* 更新 Marker 样式
|
|
54
|
+
*/
|
|
55
|
+
updateStyle(entity: Entity, options: Partial<Pick<MarkerOptions, 'color' | 'outlineColor' | 'outlineWidth' | 'pixelSize'>>): void;
|
|
56
|
+
/**
|
|
57
|
+
* 移除 Marker(通过实体或实体 id)
|
|
58
|
+
*/
|
|
59
|
+
remove(entityOrId: Entity | string): boolean;
|
|
60
|
+
}
|