@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,101 @@
|
|
|
1
|
+
import * as Cesium from "cesium";
|
|
2
|
+
/**
|
|
3
|
+
* 句柄样式(颜色/描边/像素大小)
|
|
4
|
+
*/
|
|
5
|
+
export type HandleStyle = {
|
|
6
|
+
color: Cesium.Color;
|
|
7
|
+
outlineColor: Cesium.Color;
|
|
8
|
+
pixelSize: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 创建编辑句柄实体
|
|
12
|
+
*/
|
|
13
|
+
export type CreateHandle = (position: Cesium.Cartesian3, style: HandleStyle, meta: any) => Cesium.Entity;
|
|
14
|
+
export interface OverlayEditOptions {
|
|
15
|
+
vertex: {
|
|
16
|
+
enable?: boolean;
|
|
17
|
+
color?: Cesium.Color;
|
|
18
|
+
outlineColor?: Cesium.Color;
|
|
19
|
+
outlineWidth?: number;
|
|
20
|
+
pixelSize?: number;
|
|
21
|
+
} | boolean;
|
|
22
|
+
mid: {
|
|
23
|
+
enable?: boolean;
|
|
24
|
+
color?: Cesium.Color;
|
|
25
|
+
outlineColor?: Cesium.Color;
|
|
26
|
+
outlineWidth?: number;
|
|
27
|
+
pixelSize?: number;
|
|
28
|
+
} | boolean;
|
|
29
|
+
move: {
|
|
30
|
+
enable?: boolean;
|
|
31
|
+
color?: Cesium.Color;
|
|
32
|
+
outlineColor?: Cesium.Color;
|
|
33
|
+
outlineWidth?: number;
|
|
34
|
+
pixelSize?: number;
|
|
35
|
+
} | boolean;
|
|
36
|
+
rotate: {
|
|
37
|
+
enable?: boolean;
|
|
38
|
+
color?: Cesium.Color;
|
|
39
|
+
outlineColor?: Cesium.Color;
|
|
40
|
+
outlineWidth?: number;
|
|
41
|
+
pixelSize?: number;
|
|
42
|
+
} | boolean;
|
|
43
|
+
scale: {
|
|
44
|
+
enable?: boolean;
|
|
45
|
+
color?: Cesium.Color;
|
|
46
|
+
outlineColor?: Cesium.Color;
|
|
47
|
+
outlineWidth?: number;
|
|
48
|
+
pixelSize?: number;
|
|
49
|
+
} | boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare const DEFAULT_OPTIONS: OverlayEditOptions;
|
|
52
|
+
/**
|
|
53
|
+
* 构建/更新句柄所需的依赖函数集合
|
|
54
|
+
*/
|
|
55
|
+
export interface HandleHelpers {
|
|
56
|
+
createHandle: CreateHandle;
|
|
57
|
+
computePolygonCenterCartesian: (positions: Cesium.Cartesian3[]) => Cesium.Cartesian3;
|
|
58
|
+
computePolylineHandleRadius: (positions: Cesium.Cartesian3[], center: Cesium.Cartesian3) => number;
|
|
59
|
+
offsetByMeters: (center: Cesium.Cartesian3, meters: number, bearingDeg: number) => Cesium.Cartesian3;
|
|
60
|
+
circleRadiusHandlePosition: (center: Cesium.Cartesian3, radiusMeters: number) => Cesium.Cartesian3;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 构建多边形编辑句柄(顶点/中点/整体移动)
|
|
64
|
+
*/
|
|
65
|
+
export declare function buildPolygonHandles(verts: Cesium.Cartesian3[], helpers: HandleHelpers, options: OverlayEditOptions): Cesium.Entity[];
|
|
66
|
+
/**
|
|
67
|
+
* 构建矩形编辑句柄(顶点/边中点/整体移动)
|
|
68
|
+
*/
|
|
69
|
+
export declare function buildRectangleHandles(verts: Cesium.Cartesian3[], helpers: HandleHelpers, options: OverlayEditOptions): Cesium.Entity[];
|
|
70
|
+
/**
|
|
71
|
+
* 构建折线编辑句柄(顶点/中点/整体移动/旋转/缩放)
|
|
72
|
+
*/
|
|
73
|
+
export declare function buildPolylineHandles(verts: Cesium.Cartesian3[], helpers: HandleHelpers, options: OverlayEditOptions): Cesium.Entity[];
|
|
74
|
+
/**
|
|
75
|
+
* 构建点编辑句柄
|
|
76
|
+
*/
|
|
77
|
+
export declare function buildPointHandles(pos: Cesium.Cartesian3 | null, helpers: HandleHelpers, options: OverlayEditOptions): Cesium.Entity[];
|
|
78
|
+
/**
|
|
79
|
+
* 构建圆形编辑句柄(圆心/半径)
|
|
80
|
+
*/
|
|
81
|
+
export declare function buildCircleHandles(center: Cesium.Cartesian3 | null, radiusMeters: number, helpers: HandleHelpers, options: OverlayEditOptions): Cesium.Entity[];
|
|
82
|
+
/**
|
|
83
|
+
* 更新多边形句柄位置
|
|
84
|
+
* @returns false 表示句柄数量不匹配,需重建
|
|
85
|
+
*/
|
|
86
|
+
export declare function updatePolygonHandlePositions(verts: Cesium.Cartesian3[], handles: Cesium.Entity[], helpers: HandleHelpers): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* 更新折线句柄位置
|
|
89
|
+
* @returns false 表示句柄数量不匹配,需重建
|
|
90
|
+
*/
|
|
91
|
+
export declare function updatePolylineHandlePositions(verts: Cesium.Cartesian3[], handles: Cesium.Entity[], helpers: HandleHelpers): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* 更新点句柄位置
|
|
94
|
+
* @returns false 表示句柄数量不匹配或参数为空
|
|
95
|
+
*/
|
|
96
|
+
export declare function updatePointHandlePositions(pos: Cesium.Cartesian3 | null, handles: Cesium.Entity[]): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* 更新圆形句柄位置
|
|
99
|
+
* @returns false 表示句柄数量不匹配或参数为空
|
|
100
|
+
*/
|
|
101
|
+
export declare function updateCircleHandlePositions(center: Cesium.Cartesian3 | null, radiusMeters: number, handles: Cesium.Entity[], helpers: HandleHelpers): boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Entity } from '../../../node_modules/cesium';
|
|
2
|
+
import { DrawEntity } from '../drawHelper';
|
|
3
|
+
import { OverlayEntity } from './types';
|
|
4
|
+
import { MapCircle } from './MapCircle';
|
|
5
|
+
import { MapPolygon } from './MapPolygon';
|
|
6
|
+
import { MapRectangle } from './MapRectangle';
|
|
7
|
+
import * as Cesium from "cesium";
|
|
8
|
+
export interface OverlayHighlightHost {
|
|
9
|
+
getEntities(): Cesium.EntityCollection;
|
|
10
|
+
getOverlayById(id: string): (DrawEntity & OverlayEntity) | undefined;
|
|
11
|
+
getPropertyValue<T>(prop: any, fallback: T): T;
|
|
12
|
+
getNumberProperty(prop: any, fallback: number): number;
|
|
13
|
+
getCircle(): MapCircle;
|
|
14
|
+
getPolygon(): MapPolygon;
|
|
15
|
+
getRectangle(): MapRectangle;
|
|
16
|
+
}
|
|
17
|
+
export declare class OverlayHighlight {
|
|
18
|
+
private readonly host;
|
|
19
|
+
private static readonly DEFAULT_HIGHLIGHT_COLOR;
|
|
20
|
+
private static readonly DEFAULT_HIGHLIGHT_FILL_ALPHA;
|
|
21
|
+
private static readonly DEFAULT_HIGHLIGHT_GLOW_POWER;
|
|
22
|
+
private static readonly GLOW_OUTLINE_ROOT_ID_PROP;
|
|
23
|
+
private readonly entities;
|
|
24
|
+
constructor(host: OverlayHighlightHost);
|
|
25
|
+
mapGlowOutlineEntityToRoot(entity: Cesium.Entity): (DrawEntity & OverlayEntity) | null;
|
|
26
|
+
setOverlayHighlightReason(targets: Entity[], reason: "click" | "hover", enabled: boolean): void;
|
|
27
|
+
toggleOverlayHighlight(entity: OverlayEntity, reason?: "click" | "hover"): void;
|
|
28
|
+
setOverlayHighlight(entityOrId: OverlayEntity | string, enabled: boolean, reason?: "click" | "hover"): boolean;
|
|
29
|
+
private getEntityPropertyString;
|
|
30
|
+
private getPropertyValue;
|
|
31
|
+
private getNumberProperty;
|
|
32
|
+
private resolveHighlightOptions;
|
|
33
|
+
private getActiveHighlightOptions;
|
|
34
|
+
private getClosedPositions;
|
|
35
|
+
private generateEllipseOutlinePositions;
|
|
36
|
+
private ensureGlowOutline;
|
|
37
|
+
private removeGlowOutline;
|
|
38
|
+
private applyOverlayHighlightStyle;
|
|
39
|
+
private restoreOverlayHighlightStyle;
|
|
40
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { CesiumOverlayService } from '../CesiumOverlayService';
|
|
2
|
+
export type { CesiumOverlayServiceOptions } from '../CesiumOverlayService';
|
|
3
|
+
export { MapMarker } from './MapMarker';
|
|
4
|
+
export { MapLabel } from './MapLabel';
|
|
5
|
+
export { MapIcon } from './MapIcon';
|
|
6
|
+
export { MapSVG } from './MapSVG';
|
|
7
|
+
export { MapInfoWindow } from './MapInfoWindow';
|
|
8
|
+
export { MapPolyline } from './MapPolyline';
|
|
9
|
+
export { MapPolygon } from './MapPolygon';
|
|
10
|
+
export { MapRectangle } from './MapRectangle';
|
|
11
|
+
export { MapCircle } from './MapCircle';
|
|
12
|
+
export { MapRing } from './MapRing';
|
|
13
|
+
export type { OverlayPosition } from './types';
|
|
14
|
+
export type { MarkerOptions } from './MapMarker';
|
|
15
|
+
export type { LabelOptions } from './MapLabel';
|
|
16
|
+
export type { IconOptions } from './MapIcon';
|
|
17
|
+
export type { SvgOptions } from './MapSVG';
|
|
18
|
+
export type { InfoWindowOptions } from './MapInfoWindow';
|
|
19
|
+
export type { PolylineOptions } from './MapPolyline';
|
|
20
|
+
export type { PolygonOptions } from './MapPolygon';
|
|
21
|
+
export type { RectangleOptions } from './MapRectangle';
|
|
22
|
+
export type { CircleOptions } from './MapCircle';
|
|
23
|
+
export type { RingOptions } from './MapRing';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Viewer, Entity } from '../../../../node_modules/cesium';
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
export interface CirclePrimitiveParts {
|
|
4
|
+
outer: Entity;
|
|
5
|
+
inner: Entity;
|
|
6
|
+
}
|
|
7
|
+
export declare class CirclePrimitiveBatch {
|
|
8
|
+
private viewer;
|
|
9
|
+
private ringCollection;
|
|
10
|
+
private fillCollection;
|
|
11
|
+
private ownsCollections;
|
|
12
|
+
private ownedRootCollection;
|
|
13
|
+
private ringPrimitive;
|
|
14
|
+
private fillPrimitive;
|
|
15
|
+
private records;
|
|
16
|
+
private rebuildScheduled;
|
|
17
|
+
private colorApplyScheduled;
|
|
18
|
+
private pendingColorApplyIds;
|
|
19
|
+
constructor(viewer: Viewer, options?: {
|
|
20
|
+
ringCollection?: Cesium.PrimitiveCollection;
|
|
21
|
+
fillCollection?: Cesium.PrimitiveCollection;
|
|
22
|
+
});
|
|
23
|
+
destroy(): void;
|
|
24
|
+
has(circleId: string): boolean;
|
|
25
|
+
upsertGeometry(args: {
|
|
26
|
+
circleId: string;
|
|
27
|
+
parts: CirclePrimitiveParts;
|
|
28
|
+
ringPositions: Cesium.Cartesian3[];
|
|
29
|
+
fillPositions: Cesium.Cartesian3[];
|
|
30
|
+
ringColor: Cesium.Color;
|
|
31
|
+
fillColor: Cesium.Color;
|
|
32
|
+
visible: boolean;
|
|
33
|
+
}): void;
|
|
34
|
+
remove(circleId: string): void;
|
|
35
|
+
setVisible(circleId: string, visible: boolean): void;
|
|
36
|
+
setColors(circleId: string, ringColor: Cesium.Color, fillColor: Cesium.Color): void;
|
|
37
|
+
private scheduleApplyColors;
|
|
38
|
+
private scheduleRebuild;
|
|
39
|
+
private assertCloneableInstanceId;
|
|
40
|
+
private rebuild;
|
|
41
|
+
private applyCurrentColors;
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Viewer } from '../../../../node_modules/cesium';
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
export interface CirclePrimitiveLayerCollections {
|
|
4
|
+
fillCollection: Cesium.PrimitiveCollection;
|
|
5
|
+
ringCollection: Cesium.PrimitiveCollection;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 为 Circle(圆)Primitive 渲染维护一个稳定的有序图层栈。
|
|
9
|
+
*
|
|
10
|
+
* 渲染顺序:
|
|
11
|
+
* - 所有填充图层(从下到上)
|
|
12
|
+
* - 所有外环图层(从下到上)
|
|
13
|
+
*
|
|
14
|
+
* 这样可以确保在存在多个半透明填充重叠时,外环边界仍然清晰可见。
|
|
15
|
+
*/
|
|
16
|
+
export declare class CirclePrimitiveLayerStack {
|
|
17
|
+
private viewer;
|
|
18
|
+
private fillsRoot;
|
|
19
|
+
private ringsRoot;
|
|
20
|
+
private layers;
|
|
21
|
+
constructor(viewer: Viewer);
|
|
22
|
+
getLayerCollections(layerKey: string): CirclePrimitiveLayerCollections;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Viewer, Entity } from '../../../../node_modules/cesium';
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
export interface PolygonPrimitiveParts {
|
|
4
|
+
fill: Entity;
|
|
5
|
+
border: Entity;
|
|
6
|
+
}
|
|
7
|
+
export declare class PolygonPrimitiveBatch {
|
|
8
|
+
private viewer;
|
|
9
|
+
private fillCollection;
|
|
10
|
+
private borderCollection;
|
|
11
|
+
private ownsCollections;
|
|
12
|
+
private ownedRootCollection;
|
|
13
|
+
private fillPrimitive;
|
|
14
|
+
private borderPrimitive;
|
|
15
|
+
private records;
|
|
16
|
+
private rebuildScheduled;
|
|
17
|
+
private colorApplyScheduled;
|
|
18
|
+
private pendingColorApplyIds;
|
|
19
|
+
constructor(viewer: Viewer, options?: {
|
|
20
|
+
fillCollection?: Cesium.PrimitiveCollection;
|
|
21
|
+
borderCollection?: Cesium.PrimitiveCollection;
|
|
22
|
+
});
|
|
23
|
+
destroy(): void;
|
|
24
|
+
upsertGeometry(args: {
|
|
25
|
+
polygonId: string;
|
|
26
|
+
parts: PolygonPrimitiveParts;
|
|
27
|
+
fillPositions: Cesium.Cartesian3[];
|
|
28
|
+
borderPositions: Cesium.Cartesian3[];
|
|
29
|
+
borderWidth: number;
|
|
30
|
+
fillColor: Cesium.Color;
|
|
31
|
+
borderColor: Cesium.Color;
|
|
32
|
+
visible: boolean;
|
|
33
|
+
}): void;
|
|
34
|
+
remove(polygonId: string): void;
|
|
35
|
+
setVisible(polygonId: string, visible: boolean): void;
|
|
36
|
+
setColors(polygonId: string, borderColor: Cesium.Color, fillColor: Cesium.Color): void;
|
|
37
|
+
private scheduleApplyColors;
|
|
38
|
+
setBorderWidth(polygonId: string, borderWidth: number): void;
|
|
39
|
+
private scheduleRebuild;
|
|
40
|
+
private assertCloneableInstanceId;
|
|
41
|
+
private rebuild;
|
|
42
|
+
private applyCurrentColors;
|
|
43
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Viewer } from '../../../../node_modules/cesium';
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
export interface PolygonPrimitiveLayerCollections {
|
|
4
|
+
fillCollection: Cesium.PrimitiveCollection;
|
|
5
|
+
borderCollection: Cesium.PrimitiveCollection;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 为 Polygon(多边形)Primitive 渲染维护一个稳定的有序图层栈。
|
|
9
|
+
*
|
|
10
|
+
* 渲染顺序:
|
|
11
|
+
* - 所有填充图层(从下到上)
|
|
12
|
+
* - 所有边框图层(从下到上)
|
|
13
|
+
*
|
|
14
|
+
* 这样可以确保在存在多个半透明填充重叠时,边框仍然清晰可见。
|
|
15
|
+
*/
|
|
16
|
+
export declare class PolygonPrimitiveLayerStack {
|
|
17
|
+
private viewer;
|
|
18
|
+
private fillsRoot;
|
|
19
|
+
private bordersRoot;
|
|
20
|
+
private layers;
|
|
21
|
+
constructor(viewer: Viewer);
|
|
22
|
+
getLayerCollections(layerKey: string): PolygonPrimitiveLayerCollections;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Viewer, Entity } from '../../../../node_modules/cesium';
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
export interface RectanglePrimitiveParts {
|
|
4
|
+
outer: Entity;
|
|
5
|
+
inner: Entity;
|
|
6
|
+
}
|
|
7
|
+
export declare class RectanglePrimitiveBatch {
|
|
8
|
+
private viewer;
|
|
9
|
+
private ringCollection;
|
|
10
|
+
private fillCollection;
|
|
11
|
+
private ownsCollections;
|
|
12
|
+
private ownedRootCollection;
|
|
13
|
+
private ringPrimitive;
|
|
14
|
+
private fillPrimitive;
|
|
15
|
+
private records;
|
|
16
|
+
private rebuildScheduled;
|
|
17
|
+
private colorApplyScheduled;
|
|
18
|
+
private pendingColorApplyIds;
|
|
19
|
+
constructor(viewer: Viewer, options?: {
|
|
20
|
+
ringCollection?: Cesium.PrimitiveCollection;
|
|
21
|
+
fillCollection?: Cesium.PrimitiveCollection;
|
|
22
|
+
});
|
|
23
|
+
destroy(): void;
|
|
24
|
+
upsertGeometry(args: {
|
|
25
|
+
rectangleId: string;
|
|
26
|
+
parts: RectanglePrimitiveParts;
|
|
27
|
+
outerPositions: Cesium.Cartesian3[];
|
|
28
|
+
innerPositions: Cesium.Cartesian3[];
|
|
29
|
+
ringColor: Cesium.Color;
|
|
30
|
+
fillColor: Cesium.Color;
|
|
31
|
+
visible: boolean;
|
|
32
|
+
}): void;
|
|
33
|
+
remove(rectangleId: string): void;
|
|
34
|
+
setVisible(rectangleId: string, visible: boolean): void;
|
|
35
|
+
setColors(rectangleId: string, ringColor: Cesium.Color, fillColor: Cesium.Color): void;
|
|
36
|
+
private scheduleApplyColors;
|
|
37
|
+
private scheduleRebuild;
|
|
38
|
+
private assertCloneableInstanceId;
|
|
39
|
+
private rebuild;
|
|
40
|
+
private applyCurrentColors;
|
|
41
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Viewer } from '../../../../node_modules/cesium';
|
|
2
|
+
import * as Cesium from 'cesium';
|
|
3
|
+
export interface RectanglePrimitiveLayerCollections {
|
|
4
|
+
fillCollection: Cesium.PrimitiveCollection;
|
|
5
|
+
ringCollection: Cesium.PrimitiveCollection;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 为矩形 Primitive 渲染维护一个稳定的有序图层栈。
|
|
9
|
+
*
|
|
10
|
+
* 渲染顺序:
|
|
11
|
+
* - 所有填充图层(从下到上)
|
|
12
|
+
* - 所有描边图层(从下到上)
|
|
13
|
+
*
|
|
14
|
+
* 这样可以确保在存在多个半透明填充重叠时,描边仍然清晰可见。
|
|
15
|
+
*/
|
|
16
|
+
export declare class RectanglePrimitiveLayerStack {
|
|
17
|
+
private viewer;
|
|
18
|
+
private fillsRoot;
|
|
19
|
+
private ringsRoot;
|
|
20
|
+
private layers;
|
|
21
|
+
constructor(viewer: Viewer);
|
|
22
|
+
getLayerCollections(layerKey: string): RectanglePrimitiveLayerCollections;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Cartesian3, Entity, Color, MaterialProperty, Rectangle, Cartographic } from '../../../node_modules/cesium';
|
|
2
|
+
/**
|
|
3
|
+
* 覆盖物位置类型
|
|
4
|
+
*/
|
|
5
|
+
export type OverlayPosition = Cartesian3 | [number, number] | [number, number, number];
|
|
6
|
+
export interface OverlayHighlightOriginalStyle {
|
|
7
|
+
point?: {
|
|
8
|
+
pixelSize?: any;
|
|
9
|
+
color?: any;
|
|
10
|
+
outlineColor?: any;
|
|
11
|
+
outlineWidth?: any;
|
|
12
|
+
};
|
|
13
|
+
label?: {
|
|
14
|
+
fillColor?: any;
|
|
15
|
+
outlineColor?: any;
|
|
16
|
+
outlineWidth?: any;
|
|
17
|
+
scale?: any;
|
|
18
|
+
};
|
|
19
|
+
billboard?: {
|
|
20
|
+
scale?: any;
|
|
21
|
+
color?: any;
|
|
22
|
+
};
|
|
23
|
+
polyline?: {
|
|
24
|
+
width?: any;
|
|
25
|
+
material?: any;
|
|
26
|
+
};
|
|
27
|
+
polygon?: {
|
|
28
|
+
outline?: any;
|
|
29
|
+
outlineColor?: any;
|
|
30
|
+
outlineWidth?: any;
|
|
31
|
+
material?: any;
|
|
32
|
+
};
|
|
33
|
+
rectangle?: {
|
|
34
|
+
outline?: any;
|
|
35
|
+
outlineColor?: any;
|
|
36
|
+
outlineWidth?: any;
|
|
37
|
+
material?: any;
|
|
38
|
+
};
|
|
39
|
+
ellipse?: {
|
|
40
|
+
outline?: any;
|
|
41
|
+
outlineColor?: any;
|
|
42
|
+
outlineWidth?: any;
|
|
43
|
+
material?: any;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface OverlayClickHighlightOptions {
|
|
47
|
+
/** 高亮主颜色(默认 yellow) */
|
|
48
|
+
color?: Color | string;
|
|
49
|
+
/** 面填充透明度(默认 0.35) */
|
|
50
|
+
fillAlpha?: number;
|
|
51
|
+
}
|
|
52
|
+
/** 与 clickHighlight 使用同样的参数结构(颜色 + 面填充透明度) */
|
|
53
|
+
export type OverlayHoverHighlightOptions = OverlayClickHighlightOptions;
|
|
54
|
+
/**
|
|
55
|
+
* 覆盖物扩展实体类型
|
|
56
|
+
* 用于在 Cesium.Entity 上挂载覆盖物相关的元数据
|
|
57
|
+
*/
|
|
58
|
+
export interface OverlayEntity extends Entity {
|
|
59
|
+
/** 覆盖物点击回调(由各 Map* 工具类设置) */
|
|
60
|
+
_onClick?: (entity: Entity) => void;
|
|
61
|
+
/** 点击覆盖物时是否启用高亮(由各 Map* 工具类设置) */
|
|
62
|
+
_clickHighlight?: boolean | OverlayClickHighlightOptions;
|
|
63
|
+
/** 鼠标移入覆盖物时是否启用高亮(由各 Map* 工具类设置) */
|
|
64
|
+
_hoverHighlight?: boolean | OverlayHoverHighlightOptions;
|
|
65
|
+
/** 高亮联动的实体集合(复合覆盖物:边框/填充等一起切换) */
|
|
66
|
+
_highlightEntities?: Entity[];
|
|
67
|
+
/** 当前是否处于高亮状态 */
|
|
68
|
+
_isHighlighted?: boolean;
|
|
69
|
+
/** 当前高亮原因(click/hover 可叠加;click 优先显示) */
|
|
70
|
+
_highlightState?: {
|
|
71
|
+
click?: boolean;
|
|
72
|
+
hover?: boolean;
|
|
73
|
+
};
|
|
74
|
+
/** 用于还原高亮前的原始样式 */
|
|
75
|
+
_highlightOriginalStyle?: OverlayHighlightOriginalStyle;
|
|
76
|
+
/** 高亮时临时创建的“发光边框”实体(由 CesiumOverlayService 管理) */
|
|
77
|
+
_highlightGlowEntity?: Entity;
|
|
78
|
+
/** 覆盖物类型标识(用于 CesiumOverlayService 做差异化更新/删除) */
|
|
79
|
+
_overlayType?: string;
|
|
80
|
+
/** 信息窗口根 DOM(由 MapInfoWindow / CesiumOverlayService 使用) */
|
|
81
|
+
_infoWindow?: HTMLElement;
|
|
82
|
+
/** 复合图形的内层实体或边框实体等关联引用 */
|
|
83
|
+
_borderEntity?: Entity;
|
|
84
|
+
_innerEntity?: Entity;
|
|
85
|
+
/** 粗边框 / 环形等形状相关元数据 */
|
|
86
|
+
/** 是否贴地(粗边框/环形等复合形状用) */
|
|
87
|
+
_clampToGround?: boolean;
|
|
88
|
+
/** 复合形状的基准高度(米,clampToGround=false 时有效) */
|
|
89
|
+
_baseHeight?: number;
|
|
90
|
+
/** 贴地抬高量(米,clampToGround=true 时有效) */
|
|
91
|
+
_groundHeightEpsilon?: number;
|
|
92
|
+
_isThickOutline?: boolean;
|
|
93
|
+
_outlineWidth?: number;
|
|
94
|
+
_isRing?: boolean;
|
|
95
|
+
_ringThickness?: number;
|
|
96
|
+
_ringSegments?: number;
|
|
97
|
+
_ringGlowPower?: number;
|
|
98
|
+
_ringLineColor?: Color | string;
|
|
99
|
+
_ringLineStyle?: 'solid' | 'dashed';
|
|
100
|
+
_ringLineMaterialMode?: 'stripe' | 'dash';
|
|
101
|
+
_ringStripeRepeat?: number;
|
|
102
|
+
_ringDashLength?: number;
|
|
103
|
+
_ringDashPattern?: number;
|
|
104
|
+
_ringGapColor?: Color | string;
|
|
105
|
+
_ringShowInnerLine?: boolean;
|
|
106
|
+
_fillMaterial?: MaterialProperty | Color | string;
|
|
107
|
+
_ringHeightEpsilon?: number;
|
|
108
|
+
_centerCartographic?: Cartographic;
|
|
109
|
+
_outerRadius?: number;
|
|
110
|
+
_innerRadius?: number;
|
|
111
|
+
_outerRectangle?: Rectangle;
|
|
112
|
+
/** primitive circle: 内部使用的纯色缓存(用于高亮恢复) */
|
|
113
|
+
/** primitive layer key: 用于分层批处理路由 */
|
|
114
|
+
_primitiveLayerKey?: string;
|
|
115
|
+
_primitiveRingBaseColor?: Color;
|
|
116
|
+
_primitiveFillBaseColor?: Color;
|
|
117
|
+
/** primitive:用于高亮发光边框的外圈/边界位置(通常为闭合折线) */
|
|
118
|
+
_primitiveOutlinePositions?: Cartesian3[];
|
|
119
|
+
/** primitive polygon/rectangle: 边框纯色缓存(用于高亮恢复) */
|
|
120
|
+
_primitiveBorderBaseColor?: Color;
|
|
121
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
+
import { MapType, ZoomCallback } from '../CesiumMapModel';
|
|
3
|
+
interface MapInitialCenter {
|
|
4
|
+
longitude: number;
|
|
5
|
+
latitude: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
interface CesiumMapControllerOptions {
|
|
9
|
+
initialCenter?: MapInitialCenter;
|
|
10
|
+
/** 当前可用的地图类型列表(由外部维护),用于读取 maximumLevel 等配置 */
|
|
11
|
+
getMapTypes?: () => MapType[];
|
|
12
|
+
/** 获取当前底图类型 id(由外部维护) */
|
|
13
|
+
getCurrentMapTypeId?: () => string;
|
|
14
|
+
/** 获取当前天地图 token(用于从 provider 读取 maximumLevel 时保持行为一致) */
|
|
15
|
+
getToken?: () => string;
|
|
16
|
+
/** 获取当前天地图 sk(用于从 provider 读取 maximumLevel 时保持行为一致) */
|
|
17
|
+
getSk?: () => string | undefined;
|
|
18
|
+
/** 缩放回调(来自 Toolbar 的 ZoomCallback) */
|
|
19
|
+
zoomCallback?: ZoomCallback;
|
|
20
|
+
/** 场景模式切换后回调(例如通知 DrawHelper 重新计算偏移) */
|
|
21
|
+
onSceneModeChanged?: () => void;
|
|
22
|
+
/** 全屏切换回调 */
|
|
23
|
+
fullscreenCallback?: (isFullscreen: boolean) => void;
|
|
24
|
+
/** 复位位置回调 */
|
|
25
|
+
resetLocationCallback?: () => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 负责地图相机控制、缩放层级和 2D/3D 切换等逻辑的控制器
|
|
29
|
+
* 与 UI(工具栏)解耦,避免 Cesium 细节散落在各处。
|
|
30
|
+
*/
|
|
31
|
+
export declare class CesiumMapController {
|
|
32
|
+
private viewer;
|
|
33
|
+
private initialCenter?;
|
|
34
|
+
private getMapTypes?;
|
|
35
|
+
private getCurrentMapTypeId?;
|
|
36
|
+
private getToken?;
|
|
37
|
+
private getSk?;
|
|
38
|
+
private zoomCallback?;
|
|
39
|
+
private onSceneModeChanged?;
|
|
40
|
+
private fullscreenCallback?;
|
|
41
|
+
private resetLocationCallback?;
|
|
42
|
+
constructor(viewer: Viewer, options?: CesiumMapControllerOptions);
|
|
43
|
+
/**
|
|
44
|
+
* 监听相机缩放,限制层级范围到 [1, 18],并参考当前底图的 maximumLevel
|
|
45
|
+
*/
|
|
46
|
+
setupCameraZoomLimitListener(): void;
|
|
47
|
+
/**
|
|
48
|
+
* 获取当前地图层级(1-18)
|
|
49
|
+
*/
|
|
50
|
+
getCurrentZoomLevel(): number;
|
|
51
|
+
/**
|
|
52
|
+
* 设置地图层级
|
|
53
|
+
* @param zoomLevel 目标层级(1-18)
|
|
54
|
+
*/
|
|
55
|
+
setZoomLevel(zoomLevel: number): void;
|
|
56
|
+
/** 放大 */
|
|
57
|
+
zoomIn(): void;
|
|
58
|
+
/** 缩小 */
|
|
59
|
+
zoomOut(): void;
|
|
60
|
+
/**
|
|
61
|
+
* 2D/3D 切换
|
|
62
|
+
*/
|
|
63
|
+
toggle2D3D(buttonElement: HTMLElement): void;
|
|
64
|
+
/**
|
|
65
|
+
* 复位到初始位置
|
|
66
|
+
*/
|
|
67
|
+
resetLocation(): void;
|
|
68
|
+
setInitialCenter(center: MapInitialCenter): void;
|
|
69
|
+
getInitialCenter(): MapInitialCenter | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* 切换全屏
|
|
72
|
+
*/
|
|
73
|
+
toggleFullscreen(): void;
|
|
74
|
+
/**
|
|
75
|
+
* 检查是否处于全屏状态
|
|
76
|
+
*/
|
|
77
|
+
isFullscreen(): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* 进入全屏
|
|
80
|
+
*/
|
|
81
|
+
enterFullscreen(): void;
|
|
82
|
+
/**
|
|
83
|
+
* 退出全屏
|
|
84
|
+
*/
|
|
85
|
+
exitFullscreen(): void;
|
|
86
|
+
}
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
+
import { MapType } from '../CesiumMapModel';
|
|
3
|
+
import { I18nLike } from '../../libs/i18n';
|
|
4
|
+
/**
|
|
5
|
+
* 图层服务配置接口
|
|
6
|
+
*/
|
|
7
|
+
export interface MapLayersServiceConfig {
|
|
8
|
+
mapTypes: MapType[];
|
|
9
|
+
currentMapType: string;
|
|
10
|
+
token: string;
|
|
11
|
+
sk?: string;
|
|
12
|
+
isNoFlyZoneChecked: boolean;
|
|
13
|
+
isNoFlyZoneVisible: boolean;
|
|
14
|
+
i18n?: I18nLike;
|
|
15
|
+
useI18n?: boolean;
|
|
16
|
+
onMapTypeChange?: (mapTypeId: string) => void;
|
|
17
|
+
onShowNoFlyZones?: () => Promise<void> | void;
|
|
18
|
+
onNoFlyZoneToggle?: (isChecked: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 图层服务类
|
|
22
|
+
* 负责处理地图图层切换相关的所有逻辑
|
|
23
|
+
*/
|
|
24
|
+
export declare class MapLayersService {
|
|
25
|
+
private static readonly PLACE_NAME_LAYER_TAG;
|
|
26
|
+
private viewer;
|
|
27
|
+
private readonly defaultTerrainProvider;
|
|
28
|
+
private toolbarElement;
|
|
29
|
+
private config;
|
|
30
|
+
private currentGeoWTFS;
|
|
31
|
+
private currentMapTypeConfig;
|
|
32
|
+
private currentMapLayers;
|
|
33
|
+
private currentPlaceNameProvider;
|
|
34
|
+
private currentPlaceNameLayer;
|
|
35
|
+
private isPlaceNameChecked;
|
|
36
|
+
private i18n;
|
|
37
|
+
private useI18n;
|
|
38
|
+
constructor(viewer: Viewer, toolbarElement: HTMLElement, config: MapLayersServiceConfig);
|
|
39
|
+
/**
|
|
40
|
+
* 初始化当前地图上下文:用于“初始底图不是通过 switchMapType 加载”时的路网层识别。
|
|
41
|
+
*/
|
|
42
|
+
private bootstrapCurrentMapContext;
|
|
43
|
+
/**
|
|
44
|
+
* 更新配置
|
|
45
|
+
*/
|
|
46
|
+
updateConfig(config: Partial<MapLayersServiceConfig>): void;
|
|
47
|
+
adjustMenuPosition: (menu: HTMLElement) => void;
|
|
48
|
+
/**
|
|
49
|
+
* 切换图层菜单
|
|
50
|
+
*/
|
|
51
|
+
toggleLayers(buttonElement: HTMLElement): void;
|
|
52
|
+
/**
|
|
53
|
+
* 创建地图类型部分
|
|
54
|
+
*/
|
|
55
|
+
private createMapTypeSection;
|
|
56
|
+
/**
|
|
57
|
+
* 创建地图类型项
|
|
58
|
+
*/
|
|
59
|
+
private createMapTypeItem;
|
|
60
|
+
/**
|
|
61
|
+
* 创建叠加图层部分
|
|
62
|
+
*/
|
|
63
|
+
private createOverlaySection;
|
|
64
|
+
/**
|
|
65
|
+
* 创建叠加图层项
|
|
66
|
+
*/
|
|
67
|
+
private createOverlayItem;
|
|
68
|
+
/**
|
|
69
|
+
* 切换地图类型
|
|
70
|
+
*/
|
|
71
|
+
switchMapType(mapTypeId: string): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* 获取当前地图类型
|
|
74
|
+
*/
|
|
75
|
+
getCurrentMapType(): string;
|
|
76
|
+
private setPlaceNameChecked;
|
|
77
|
+
private ensureTDTPluginForMapType;
|
|
78
|
+
private syncGeoWTFSWithPlugin;
|
|
79
|
+
private shouldEnablePlaceName;
|
|
80
|
+
private isSameProvider;
|
|
81
|
+
private resolveExistingPlaceNameLayer;
|
|
82
|
+
private ensurePlaceNameProvider;
|
|
83
|
+
private addPlaceNameLayer;
|
|
84
|
+
private removePlaceNameLayer;
|
|
85
|
+
private shouldUse3DForCurrentMapType;
|
|
86
|
+
private ensure3DSceneIfNeeded;
|
|
87
|
+
private applyTerrainForMapType;
|
|
88
|
+
private syncGeoWTFS;
|
|
89
|
+
private destroyGeoWTFS;
|
|
90
|
+
/**
|
|
91
|
+
* 关闭图层菜单
|
|
92
|
+
*/
|
|
93
|
+
closeLayersMenu(): void;
|
|
94
|
+
/**
|
|
95
|
+
* 销毁图层服务
|
|
96
|
+
*/
|
|
97
|
+
destroy(): void;
|
|
98
|
+
}
|