@xingm/vmap-cesium-toolbar 1.0.0 → 1.0.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/{dist/adapters → adapters}/DrawHelperAdapter.d.ts +29 -4
- package/adapters/HeatmapLayerAdapter.d.ts +11 -0
- package/{dist/adapters → adapters}/MapLoaderAdapter.d.ts +17 -0
- package/adapters/MapMarkAdapter.d.ts +29 -0
- package/{dist/adapters → adapters}/OverlayServiceAdapter.d.ts +57 -3
- package/{dist/adapters → adapters}/ToolbarAdapter.d.ts +40 -2
- package/{dist/adapters → adapters}/index.d.ts +4 -0
- package/{dist/core → core}/MapPlugin.d.ts +32 -4
- package/{dist/core → core}/entities/BaseOverlay.d.ts +7 -0
- package/{dist/core → core}/entities/Circle.d.ts +17 -1
- package/{dist/core → core}/entities/Polyline.d.ts +2 -0
- package/{dist/core → core}/entities/Ring.d.ts +2 -0
- package/core/entities/primitives/CirclePrimitiveBatch.d.ts +42 -0
- package/core/entities/primitives/CirclePrimitiveLayerStack.d.ts +15 -0
- package/core/layers/TDTMapLayer.d.ts +61 -0
- package/{dist/core → core}/layers/index.d.ts +1 -0
- package/core/mapProviders/coordinates/CoordinateService.d.ts +8 -0
- package/core/mapProviders/coordinates/bd09.d.ts +5 -0
- package/core/mapProviders/coordinates/cesium.d.ts +5 -0
- package/core/mapProviders/coordinates/gcj02.d.ts +4 -0
- package/core/mapProviders/coordinates/transform.d.ts +2 -0
- package/core/mapProviders/coordinates/types.d.ts +6 -0
- package/core/mapProviders/registry.d.ts +13 -0
- package/core/mapProviders/tilingSchemes/baidu.d.ts +2 -0
- package/core/mapProviders/tilingSchemes/gcj02.d.ts +2 -0
- package/core/mapProviders/types.d.ts +65 -0
- package/{dist/core → core}/services/draw/DrawService.d.ts +7 -0
- package/core/services/draw/DrawSessionStore.d.ts +127 -0
- package/{dist/core → core}/services/draw/entities/drawPreviewFactory.d.ts +1 -0
- package/{dist/core → core}/services/draw/geometry/drawGeometry.d.ts +1 -0
- package/{dist/core → core}/services/draw/types/drawTypes.d.ts +15 -0
- package/{dist/core → core}/services/index.d.ts +1 -0
- package/core/services/mark/MarkService.d.ts +50 -0
- package/core/services/mark/MarkToolbar.d.ts +11 -0
- package/core/services/mark/index.d.ts +3 -0
- package/core/services/mark/markDefaults.d.ts +2 -0
- package/core/services/mark/markResult.d.ts +5 -0
- package/core/services/mark/markTypes.d.ts +71 -0
- package/{dist/core → core}/services/overlay/OverlayService.d.ts +53 -0
- package/{dist/core → core}/services/toolbar/ToolbarService.d.ts +12 -0
- package/{dist/core → core}/services/toolbar/buttons/MeasureButtonHandler.d.ts +5 -0
- package/{dist/core → core}/services/toolbar/buttons/SearchButtonHandler.d.ts +4 -0
- package/{dist/core → core}/services/toolbar/buttons/SimpleButtonHandler.d.ts +3 -0
- package/{dist/core → core}/services/toolbar/config.d.ts +1 -0
- package/{dist/core → core}/services/toolbar/types.d.ts +7 -0
- package/{dist/core → core}/types.d.ts +56 -13
- package/{dist/i18n → i18n}/en-US.d.ts +7 -0
- package/{dist/i18n → i18n}/zh-CN.d.ts +7 -0
- package/{dist/index.d.ts → index.d.ts} +12 -5
- package/index.es.js +11172 -0
- package/index.es.js.map +1 -0
- package/{dist/libs → libs}/CesiumMapLoader.d.ts +1 -0
- package/{dist/libs → libs}/CesiumMapToolbar.d.ts +5 -0
- package/{dist/libs → libs}/toolBar/MapToolBarConfig.d.ts +4 -0
- package/package.json +60 -73
- package/dist/README.md +0 -172
- package/dist/core/layers/TDTMapLayer.d.ts +0 -45
- package/dist/core/services/draw/DrawSessionStore.d.ts +0 -28
- package/dist/index.es.js +0 -8024
- package/dist/index.es.js.map +0 -1
- package/dist/package.json +0 -59
- /package/{dist/components → components}/BaseComponent.d.ts +0 -0
- /package/{dist/components → components}/SearchBox.d.ts +0 -0
- /package/{dist/components → components}/Toolbar.d.ts +0 -0
- /package/{dist/components → components}/ToolbarButton.d.ts +0 -0
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/core → core}/constants.d.ts +0 -0
- /package/{dist/core → core}/entities/Icon.d.ts +0 -0
- /package/{dist/core → core}/entities/InfoWindow.d.ts +0 -0
- /package/{dist/core → core}/entities/Label.d.ts +0 -0
- /package/{dist/core → core}/entities/Marker.d.ts +0 -0
- /package/{dist/core → core}/entities/Polygon.d.ts +0 -0
- /package/{dist/core → core}/entities/Rectangle.d.ts +0 -0
- /package/{dist/core → core}/entities/SVG.d.ts +0 -0
- /package/{dist/core → core}/entities/index.d.ts +0 -0
- /package/{dist/core → core}/index.d.ts +0 -0
- /package/{dist/core → core}/layers/BaiduMapLayer.d.ts +0 -0
- /package/{dist/core → core}/layers/CustomMapLayer.d.ts +0 -0
- /package/{dist/core → core}/layers/GaodeMapLayer.d.ts +0 -0
- /package/{dist/core → core}/layers/HeatmapLayer.d.ts +0 -0
- /package/{dist/core → core}/layers/MapLayer.d.ts +0 -0
- /package/{dist/core → core}/layers/OSMMapLayer.d.ts +0 -0
- /package/{dist/core → core}/layers/PointClusterLayer.d.ts +0 -0
- /package/{dist/core → core}/services/draw/DrawInteractionController.d.ts +0 -0
- /package/{dist/core → core}/services/draw/drawDefaults.d.ts +0 -0
- /package/{dist/core → core}/services/draw/entities/drawEntityFactory.d.ts +0 -0
- /package/{dist/core → core}/services/draw/entities/drawEntityRegistry.d.ts +0 -0
- /package/{dist/core → core}/services/draw/entities/drawFinalFactory.d.ts +0 -0
- /package/{dist/core → core}/services/draw/geometry/drawPosition.d.ts +0 -0
- /package/{dist/core → core}/services/draw/index.d.ts +0 -0
- /package/{dist/core → core}/services/draw/labels/drawHint.d.ts +0 -0
- /package/{dist/core → core}/services/draw/labels/measurementCanvas.d.ts +0 -0
- /package/{dist/core → core}/services/draw/labels/measurementLabelFactory.d.ts +0 -0
- /package/{dist/core → core}/services/draw/measurementThemeResolver.d.ts +0 -0
- /package/{dist/core → core}/services/draw/types/drawState.d.ts +0 -0
- /package/{dist/core → core}/services/overlay/index.d.ts +0 -0
- /package/{dist/core → core}/services/toolbar/buttons/BaseButtonHandler.d.ts +0 -0
- /package/{dist/core → core}/services/toolbar/buttons/LayersButtonHandler.d.ts +0 -0
- /package/{dist/core → core}/services/toolbar/index.d.ts +0 -0
- /package/{dist/core → core}/services/toolbar/menus/BaseMenu.d.ts +0 -0
- /package/{dist/core → core}/services/toolbar/menus/MeasureMenu.d.ts +0 -0
- /package/{dist/geojson → geojson}/file-list.json +0 -0
- /package/{dist/geojson → geojson}//344/270/207/345/267/236_/344/272/224/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/211/344/272/232_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/211/346/230/216_/346/262/231/345/216/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/212/346/265/267_/346/265/246/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/212/346/265/267_/350/231/271/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/212/351/245/266_/344/270/211/346/270/205/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/224/346/234/253_/347/216/211/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/255/345/215/253_/346/262/231/345/235/241/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/264/346/261/276_/344/271/224/346/235/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/264/346/262/202_/346/262/255/345/237/240/345/262/255/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/264/346/262/247_/345/215/232/345/260/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/271/344/270/234_/346/265/252/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/270/275/346/261/237_/344/270/211/344/271/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/211/344/271/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/345/205/260/345/257/237/345/270/203_/351/233/206/345/256/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/345/205/260/346/265/251/347/211/271_/344/276/235/345/213/222/345/212/233/347/211/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/271/214/351/262/201/346/234/250/351/275/220_/345/234/260/347/252/235/345/240/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/272/214/350/277/236/346/265/251/347/211/271_/350/265/233/344/271/214/347/264/240/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/272/225/345/206/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/274/212/345/256/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/274/212/346/230/245_/346/236/227/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/275/263/346/234/250/346/226/257/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//344/277/235/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/205/213/346/213/211/347/216/233/344/276/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/205/260/345/267/236_/344/270/255/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/205/264/344/271/211_/344/270/207/345/263/260/346/236/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/212/240/346/240/274/350/276/276/345/245/207_/345/230/216/344/273/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/214/205/345/244/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/214/227/344/272/254_/351/246/226/351/203/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/214/227/346/265/267_/347/246/217/346/210/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/201/345/240/260_/346/255/246/345/275/223/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/344/272/254_/347/246/204/345/217/243/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/345/256/201_/345/220/264/345/234/251/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/346/230/214_/346/230/214/345/214/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/351/200/232_/345/205/264/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/227/351/230/263_/345/247/234/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/215/232/344/271/220_/351/230/277/346/213/211/345/261/261/345/217/243/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/216/246/351/227/250_/351/253/230/345/264/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/217/260/345/267/236_/350/267/257/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/220/210/350/202/245_/346/226/260/346/241/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/220/220/351/262/201/347/225/252_/344/272/244/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/221/274/344/274/246/350/264/235/345/260/224_/346/265/267/346/213/211/345/260/224/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/221/274/345/222/214/346/265/251/347/211/271_/347/231/275/345/241/224/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/222/214/347/224/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/223/210/345/260/224/346/273/250_/345/244/252/345/271/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/224/220/345/261/261_/344/270/211/345/245/263/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/226/200/344/273/200/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/230/211/345/263/252/345/205/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/233/272/345/216/237_/345/205/255/347/233/230/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/241/224/345/237/216/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/247/345/220/214_/344/272/221/345/206/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/247/345/272/206_/350/220/250/345/260/224/345/233/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/247/350/277/236_/345/221/250/346/260/264/345/255/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/251/346/264/245_/346/273/250/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/244/252/345/216/237_/346/255/246/345/256/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/201/346/263/242_/346/240/216/347/244/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/201/350/222/227_/346/263/270/346/262/275/346/271/226/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/211/345/272/206/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/234/345/256/276_/350/217/234/345/235/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/234/346/230/214_/344/270/211/345/263/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/256/234/346/230/245_/346/230/216/346/234/210/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/257/214/350/225/264_/345/217/257/345/217/257/346/211/230/346/265/267/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/267/264/345/275/246/346/267/226/345/260/224_/345/244/251/345/220/211/346/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/270/203/345/260/224/346/264/245_/345/226/200/347/272/263/346/226/257/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/270/270/345/267/236_/345/245/224/347/211/233/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/270/270/345/276/267_/346/241/203/350/212/261/346/272/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/271/277/345/205/203_/347/233/230/351/276/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/271/277/345/267/236_/347/231/275/344/272/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/272/206/351/230/263_/350/245/277/345/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/272/223/350/275/246_/351/276/237/345/205/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/272/267/345/256/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/273/266/345/220/211_/346/234/235/351/230/263/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/274/240/345/256/266/347/225/214_/350/215/267/350/212/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/274/240/346/216/226_/347/224/230/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/276/220/345/267/236_/350/247/202/351/237/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/276/267/345/256/217_/350/212/222/345/270/202/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//345/277/273/345/267/236_/344/272/224/345/217/260/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/200/200/345/214/226_/350/212/267/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/201/251/346/226/275_/350/256/270/345/256/266/345/235/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/210/220/351/203/275_/345/217/214/346/265/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/211/216/345/205/260/345/261/257_/346/210/220/345/220/211/346/200/235/346/261/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/211/254/345/267/236_/346/263/260/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/212/232/350/277/234_/344/270/234/346/236/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/217/255/351/230/263_/346/275/256/346/261/225/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/224/200/346/236/235/350/212/261_/344/277/235/345/256/211/350/220/245/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/225/246/347/205/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/226/260/346/272/220_/351/202/243/346/213/211/346/217/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/227/245/347/205/247_/345/261/261/345/255/227/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/230/206/346/230/216_/351/225/277/346/260/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/231/256/346/264/261_/346/200/235/350/214/205/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/231/257/345/276/267/351/225/207_/347/275/227/345/256/266/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/234/235/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/235/255/345/267/236_/350/220/247/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/236/234/346/264/233_/347/216/233/346/262/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/237/263/345/267/236_/347/231/275/350/216/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/241/202/346/236/227_/344/270/244/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/242/205/345/216/277_/351/225/277/345/262/227/345/262/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/242/247/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/246/206/346/236/227_/346/246/206/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/255/246/346/261/211_/345/244/251/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/260/270/345/267/236_/351/233/266/351/231/265/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/261/211/344/270/255_/345/237/216/345/233/272/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/261/240/345/267/236_/344/271/235/345/215/216/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/262/210/351/230/263_/346/241/203/344/273/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/262/263/346/261/240_/351/207/221/345/237/216/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/263/211/345/267/236_/346/231/213/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/264/233/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/216/345/215/227_/351/201/245/345/242/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/216/345/256/201_/346/233/262/351/230/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/267/345/217/243_/347/276/216/345/205/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/267/350/245/277_/345/276/267/344/273/244/345/223/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/265/267/350/245/277_/350/212/261/345/234/237/346/262/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/267/256/345/256/211_/346/266/237/346/260/264/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/267/261/345/234/263_/345/256/235/345/256/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/270/251/345/267/236_/351/276/231/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/271/233/346/261/237/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/273/241/346/264/262/351/207/214_/350/245/277/351/203/212/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/274/240/346/262/263_/345/217/244/350/216/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/275/215/345/235/212/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//346/276/234/346/262/247_/346/231/257/350/277/210/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/203/237/345/217/260_/350/223/254/350/216/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/211/241/344/270/271/346/261/237_/346/265/267/346/265/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/216/211/346/240/221_/345/267/264/345/241/230/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/217/240/346/265/267_/351/207/221/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/220/274/346/265/267_/345/215/232/351/263/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/224/230/345/215/227_/345/244/217/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/231/275/345/237/216_/351/225/277/345/256/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/231/275/345/261/261_/351/225/277/347/231/275/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/231/276/350/211/262_/345/267/264/351/251/254/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/237/263/345/256/266/345/272/204_/346/255/243/345/256/232/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/237/263/346/262/263/345/255/220_/350/212/261/345/233/255/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/245/236/345/206/234/346/236/266_/347/272/242/345/235/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/246/217/345/267/236_/351/225/277/344/271/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/247/246/347/232/207/345/262/233_/345/214/227/346/210/264/346/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//347/250/273/345/237/216_/344/272/232/344/270/201/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/205/276/345/206/262_/351/251/274/345/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/220/245/345/217/243_/345/205/260/346/227/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/241/241/351/230/263_/345/215/227/345/262/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/241/242/345/267/236/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/204/351/230/263_/345/210/230/351/233/206/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/345/217/214/347/211/210/347/272/263_/345/230/216/346/264/222/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/345/256/201_/346/233/271/345/256/266/345/240/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/345/256/211_/345/222/270/351/230/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/245/277/346/230/214_/351/235/222/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/264/265/351/230/263_/351/276/231/346/264/236/345/240/241/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/265/243/345/267/236_/351/273/204/351/207/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/265/244/345/263/260_/347/216/211/351/276/231/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/276/276/345/267/236_/346/262/263/345/270/202/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//350/277/236/344/272/221/346/270/257_/347/231/275/345/241/224/345/237/240/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/200/232/345/214/226_/344/270/211/346/272/220/346/265/246/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/203/221/345/267/236_/346/226/260/351/203/221/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/204/202/345/260/224/345/244/232/346/226/257_/344/274/212/351/207/221/351/234/215/346/264/233/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/207/215/345/272/206_/346/261/237/345/214/227/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/207/221/346/230/214_/351/207/221/345/267/235/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/223/234/344/273/201_/345/207/244/345/207/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/223/266/345/267/235_/346/262/263/344/270/234/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/224/241/346/236/227/346/265/251/347/211/271/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/224/246/345/267/236_/351/224/246/345/267/236/346/271/276/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/225/277/346/230/245_/351/276/231/345/230/211/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/225/277/346/262/231_/351/273/204/350/212/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/230/277/345/205/213/350/213/217_/346/270/251/345/256/277/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/230/277/345/213/222/346/263/260/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/230/277/345/260/224/345/261/261_/344/274/212/345/260/224/346/226/275/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/235/222/345/262/233_/346/265/201/344/272/255/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/236/215/345/261/261_/350/205/276/351/263/214/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/270/241/350/245/277_/345/205/264/345/207/257/346/271/226/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/204/345/261/261_/345/261/257/346/272/252/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/216/345/271/263/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/221/346/262/263_/347/221/267/347/217/262/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/273/224/346/261/237_/346/255/246/351/231/265/345/261/261/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/geojson → geojson}//351/275/220/351/275/220/345/223/210/345/260/224_/344/270/211/345/256/266/345/255/220/346/234/272/345/234/272.geojson" +0 -0
- /package/{dist/i18n → i18n}/index.d.ts +0 -0
- /package/{dist/libs → libs}/CesiumAutoRecover.d.ts +0 -0
- /package/{dist/libs → libs}/CesiumHeatmapLayer.d.ts +0 -0
- /package/{dist/libs → libs}/CesiumMapDraw.d.ts +0 -0
- /package/{dist/libs → libs}/CesiumMapModel.d.ts +0 -0
- /package/{dist/libs → libs}/CesiumOverlayService.d.ts +0 -0
- /package/{dist/libs → libs}/CesiumPointClusterLayer.d.ts +0 -0
- /package/{dist/libs → libs}/config/CesiumMapConfig.d.ts +0 -0
- /package/{dist/libs → libs}/drawHelper/DrawHint.d.ts +0 -0
- /package/{dist/libs → libs}/drawHelper/index.d.ts +0 -0
- /package/{dist/libs → libs}/toolBar/CesiumMapController.d.ts +0 -0
- /package/{dist/libs → libs}/toolBar/MapLayersService.d.ts +0 -0
- /package/{dist/libs → libs}/toolBar/MapSearchService.d.ts +0 -0
- /package/{dist/libs → libs}/toolBar/MeasurementService.d.ts +0 -0
- /package/{dist/libs → libs}/toolBar/NotFlyZonesService.d.ts +0 -0
- /package/{dist/style.css → style.css} +0 -0
- /package/{dist/styles → styles}/ComponentStyles.d.ts +0 -0
- /package/{dist/styles → styles}/StyleManager.d.ts +0 -0
- /package/{dist/styles → styles}/index.d.ts +0 -0
- /package/{dist/utils → utils}/PickGovernor.d.ts +0 -0
- /package/{dist/utils → utils}/calc.d.ts +0 -0
- /package/{dist/utils → utils}/common.d.ts +0 -0
- /package/{dist/utils → utils}/geojson.d.ts +0 -0
- /package/{dist/utils → utils}/selfIntersection.d.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Viewer, Entity, Cartesian3 } from '../../node_modules/cesium';
|
|
2
2
|
import { DrawMode, MeasurementTheme, MeasurementSummaryLabelStyle } from '../core/services/draw/DrawService';
|
|
3
|
+
import { CoordSystem, LngLat } from '../core/types';
|
|
3
4
|
import * as Cesium from 'cesium';
|
|
4
5
|
/**
|
|
5
6
|
* 旧版绘制回调接口(保持向后兼容)
|
|
@@ -11,6 +12,8 @@ export interface LegacyDrawCallbacks {
|
|
|
11
12
|
onMeasureComplete?: (result: {
|
|
12
13
|
type: 'line' | 'polygon' | 'rectangle' | 'circle';
|
|
13
14
|
positions: Cartesian3[];
|
|
15
|
+
geographicPositions?: LngLat[];
|
|
16
|
+
outputCoordSystem?: CoordSystem;
|
|
14
17
|
distance?: number;
|
|
15
18
|
areaKm2?: number;
|
|
16
19
|
}) => void;
|
|
@@ -22,6 +25,10 @@ export interface LegacyDrawOptions {
|
|
|
22
25
|
measurementTheme?: MeasurementTheme;
|
|
23
26
|
lineColor?: Cesium.Color | string;
|
|
24
27
|
lineWidth?: number;
|
|
28
|
+
strokeColor?: Cesium.Color | string;
|
|
29
|
+
strokeWidth?: number;
|
|
30
|
+
outlineColor?: Cesium.Color | string;
|
|
31
|
+
outlineWidth?: number;
|
|
25
32
|
fillColor?: Cesium.Color | string;
|
|
26
33
|
clampToGround?: boolean;
|
|
27
34
|
segmentDistanceLabelStyle?: MeasurementSummaryLabelStyle;
|
|
@@ -29,7 +36,11 @@ export interface LegacyDrawOptions {
|
|
|
29
36
|
previewAreaLabelStyle?: MeasurementSummaryLabelStyle;
|
|
30
37
|
totalAreaLabelStyle?: MeasurementSummaryLabelStyle;
|
|
31
38
|
hintBubbleStyle?: MeasurementSummaryLabelStyle;
|
|
39
|
+
selfIntersectionEnabled?: boolean;
|
|
40
|
+
selfIntersectionAllowTouch?: boolean;
|
|
41
|
+
selfIntersectionAllowContinue?: boolean;
|
|
32
42
|
onClick?: (entity: Entity, positions?: Cartesian3[]) => void;
|
|
43
|
+
outputCoordSystem?: CoordSystem;
|
|
33
44
|
}
|
|
34
45
|
/**
|
|
35
46
|
* 旧版绘制实体类型(保持向后兼容)
|
|
@@ -59,10 +70,6 @@ export declare class DrawHelperAdapter {
|
|
|
59
70
|
private drawService;
|
|
60
71
|
private callbacks;
|
|
61
72
|
constructor(viewer: Viewer);
|
|
62
|
-
/**
|
|
63
|
-
* 映射绘制模式到类型字符串
|
|
64
|
-
*/
|
|
65
|
-
private mapDrawModeToType;
|
|
66
73
|
/**
|
|
67
74
|
* 转换选项格式
|
|
68
75
|
*/
|
|
@@ -95,6 +102,16 @@ export declare class DrawHelperAdapter {
|
|
|
95
102
|
* 清除所有绘制
|
|
96
103
|
*/
|
|
97
104
|
clearAll(): void;
|
|
105
|
+
/**
|
|
106
|
+
* 兼容旧版完整清空方法。
|
|
107
|
+
* 旧实现会直接清空场景中的实体,这里保留同名 API。
|
|
108
|
+
*/
|
|
109
|
+
clearAllEntities(): void;
|
|
110
|
+
/**
|
|
111
|
+
* 兼容旧版点实体清空方法。
|
|
112
|
+
* 新版绘制服务不单独维护点池,这里退化为清空当前绘制结果。
|
|
113
|
+
*/
|
|
114
|
+
clearAllPoints(): void;
|
|
98
115
|
/**
|
|
99
116
|
* 删除指定实体
|
|
100
117
|
*/
|
|
@@ -107,6 +124,11 @@ export declare class DrawHelperAdapter {
|
|
|
107
124
|
* 检查是否正在绘制
|
|
108
125
|
*/
|
|
109
126
|
isDrawing(): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* 兼容旧版场景模式切换通知。
|
|
129
|
+
* 新绘制服务内部不依赖固定偏移,这里保留空实现以避免业务侧报错。
|
|
130
|
+
*/
|
|
131
|
+
handleSceneModeChanged(): void;
|
|
110
132
|
/**
|
|
111
133
|
* 获取当前绘制模式
|
|
112
134
|
*/
|
|
@@ -129,9 +151,12 @@ export declare class DrawHelperAdapter {
|
|
|
129
151
|
onMeasureComplete(callback: (result: {
|
|
130
152
|
type: 'line' | 'polygon' | 'rectangle' | 'circle';
|
|
131
153
|
positions: Cartesian3[];
|
|
154
|
+
geographicPositions?: LngLat[];
|
|
155
|
+
outputCoordSystem?: CoordSystem;
|
|
132
156
|
distance?: number;
|
|
133
157
|
areaKm2?: number;
|
|
134
158
|
}) => void): void;
|
|
159
|
+
getPositionLngLat(position: Cartesian3, outputCoordSystem?: CoordSystem): LngLat;
|
|
135
160
|
/**
|
|
136
161
|
* 销毁助手
|
|
137
162
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as CoreHeatmapLayer, HeatPoint, HeatmapAutoUpdateOptions, HeatmapGradient, HeatmapOptions } from '../libs/CesiumHeatmapLayer';
|
|
2
|
+
/**
|
|
3
|
+
* 兼容旧 0.x API 的热力图图层。
|
|
4
|
+
*
|
|
5
|
+
* 直接继承当前核心实现,保留旧业务依赖的方法签名与自动更新能力,
|
|
6
|
+
* 让 package 顶层导出继续可用而不强迫业务迁移到新的 core 命名。
|
|
7
|
+
*/
|
|
8
|
+
export declare class HeatmapLayer extends CoreHeatmapLayer {
|
|
9
|
+
}
|
|
10
|
+
export default HeatmapLayer;
|
|
11
|
+
export type { HeatPoint, HeatmapAutoUpdateOptions, HeatmapGradient, HeatmapOptions, };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Viewer } from '../../node_modules/cesium';
|
|
2
2
|
import { MapPlugin } from '../core/MapPlugin';
|
|
3
|
+
import { BaseMapConfig, MapAuthConfig } from '../core/types';
|
|
3
4
|
import * as Cesium from 'cesium';
|
|
4
5
|
export interface LegacyMapCenter {
|
|
5
6
|
latitude: number;
|
|
@@ -7,13 +8,27 @@ export interface LegacyMapCenter {
|
|
|
7
8
|
height: number;
|
|
8
9
|
pitch?: number;
|
|
9
10
|
heading?: number;
|
|
11
|
+
coordSystem?: 'WGS84' | 'GCJ02' | 'BD09';
|
|
10
12
|
}
|
|
11
13
|
export interface LegacyInitOptions {
|
|
12
14
|
viewerOptions?: Cesium.Viewer.ConstructorOptions;
|
|
13
15
|
mapType?: string;
|
|
14
16
|
tdtMapTypeId?: string;
|
|
15
17
|
token?: string;
|
|
18
|
+
TD_Token?: string;
|
|
19
|
+
sk?: string;
|
|
20
|
+
TD_SK?: string;
|
|
16
21
|
cesiumToken?: string;
|
|
22
|
+
terrainProvider?: Cesium.TerrainProvider | null;
|
|
23
|
+
requestRenderMode?: boolean;
|
|
24
|
+
maximumRenderTimeChange?: number;
|
|
25
|
+
showRenderLoopErrors?: boolean;
|
|
26
|
+
useBrowserRecommendedResolution?: boolean;
|
|
27
|
+
automaticallyTrackDataSourceClocks?: boolean;
|
|
28
|
+
contextOptions?: Cesium.ContextOptions;
|
|
29
|
+
resolutionScale?: number;
|
|
30
|
+
depthTestAgainstTerrain?: boolean;
|
|
31
|
+
fxaa?: boolean;
|
|
17
32
|
loadNoFlyZonesOnInit?: boolean;
|
|
18
33
|
mapCenter?: LegacyMapCenter;
|
|
19
34
|
isFly?: boolean;
|
|
@@ -30,6 +45,8 @@ export interface LegacyInitOptions {
|
|
|
30
45
|
sceneModePicker?: boolean;
|
|
31
46
|
baseLayerPicker?: boolean;
|
|
32
47
|
selectionIndicator?: boolean;
|
|
48
|
+
baseMap?: BaseMapConfig;
|
|
49
|
+
mapAuth?: MapAuthConfig;
|
|
33
50
|
[key: string]: unknown;
|
|
34
51
|
}
|
|
35
52
|
export interface LegacyInitResult {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MarkCallbacks, MarkDrawOptions, MarkDrawResult, MarkDrawType, MarkExportItem, MarkServiceOptions, MarkWorkAreaKind, MarkWorkAreaType } from '../core/services/mark';
|
|
2
|
+
import type * as Cesium from 'cesium';
|
|
3
|
+
export interface CesiumMapMarkOptions extends MarkServiceOptions {
|
|
4
|
+
callbacks?: MarkCallbacks;
|
|
5
|
+
}
|
|
6
|
+
export declare class MapMarkAdapter {
|
|
7
|
+
private readonly service;
|
|
8
|
+
constructor(viewer: Cesium.Viewer, options?: CesiumMapMarkOptions);
|
|
9
|
+
startDrawing(type: MarkDrawType, options?: MarkDrawOptions): void;
|
|
10
|
+
drawPoint(options?: MarkDrawOptions): void;
|
|
11
|
+
drawPolyline(options?: MarkDrawOptions): void;
|
|
12
|
+
drawPolygon(options?: MarkDrawOptions): void;
|
|
13
|
+
drawRectangle(options?: MarkDrawOptions): void;
|
|
14
|
+
drawCircle(options?: MarkDrawOptions): void;
|
|
15
|
+
startWorkAreaDraw(type: MarkWorkAreaType, kind?: MarkWorkAreaKind, options?: MarkDrawOptions): void;
|
|
16
|
+
stopDraw(): void;
|
|
17
|
+
cancelDrawing(): void;
|
|
18
|
+
clearAll(): void;
|
|
19
|
+
deleteEntity(entity: Cesium.Entity | string): void;
|
|
20
|
+
enableEdit(): void;
|
|
21
|
+
disableEdit(): MarkDrawResult | null;
|
|
22
|
+
startEdit(entity: Cesium.Entity | string): boolean;
|
|
23
|
+
stopEdit(): MarkDrawResult | null;
|
|
24
|
+
setColor(type: MarkDrawType, color: string): void;
|
|
25
|
+
getColor(type: MarkDrawType): string;
|
|
26
|
+
getEntities(): Cesium.Entity[];
|
|
27
|
+
exportData(): MarkExportItem[];
|
|
28
|
+
destroy(): void;
|
|
29
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Viewer, Entity } from '../../node_modules/cesium';
|
|
2
2
|
import { OverlayService, OverlayServiceOptions } from '../core/services/overlay/OverlayService';
|
|
3
|
-
import { MarkerOptions, LabelOptions, IconOptions, SvgOptions, InfoWindowOptions, PolylineOptions, PolygonOptions, RectangleOptions, CircleOptions, RingOptions, OverlayEntity } from '../core/entities';
|
|
3
|
+
import { MarkerOptions, LabelOptions, IconOptions, SvgOptions, InfoWindowOptions, PolylineOptions, PolygonOptions, RectangleOptions, CircleOptions, RingOptions, OverlayEntity, OverlayPosition } from '../core/entities';
|
|
4
4
|
/**
|
|
5
5
|
* 旧版覆盖物服务选项(保持向后兼容)
|
|
6
6
|
*/
|
|
@@ -9,6 +9,12 @@ export interface LegacyCesiumOverlayServiceOptions extends OverlayServiceOptions
|
|
|
9
9
|
enableHoverHandler?: boolean;
|
|
10
10
|
/** 点击节流间隔 */
|
|
11
11
|
clickPickMinIntervalMs?: number;
|
|
12
|
+
/** 兼容旧版编辑变化回调 */
|
|
13
|
+
onOverlayEditChange?: (entity: Entity & OverlayEntity) => void;
|
|
14
|
+
/** 兼容旧版编辑结束回调 */
|
|
15
|
+
onOverlayEditEnd?: (entity: Entity & OverlayEntity | null) => void;
|
|
16
|
+
/** 兼容旧版编辑参数 */
|
|
17
|
+
overlayEditOptions?: Record<string, any>;
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
14
20
|
* OverlayService 适配器
|
|
@@ -27,7 +33,12 @@ export interface LegacyCesiumOverlayServiceOptions extends OverlayServiceOptions
|
|
|
27
33
|
export declare class OverlayServiceAdapter {
|
|
28
34
|
private viewer;
|
|
29
35
|
private overlayService;
|
|
36
|
+
private hoverEnabled;
|
|
37
|
+
private bulkUpdateDepth;
|
|
38
|
+
private overlayEditOptions;
|
|
30
39
|
constructor(viewer: Viewer, options?: LegacyCesiumOverlayServiceOptions);
|
|
40
|
+
private resolveOverlayEntity;
|
|
41
|
+
private applyHoverState;
|
|
31
42
|
/**
|
|
32
43
|
* 添加 Marker
|
|
33
44
|
*/
|
|
@@ -72,6 +83,10 @@ export declare class OverlayServiceAdapter {
|
|
|
72
83
|
* 根据 ID 获取覆盖物
|
|
73
84
|
*/
|
|
74
85
|
getOverlay(id: string): Entity | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* 获取所有覆盖物实体。
|
|
88
|
+
*/
|
|
89
|
+
getAllOverlays(): Entity[];
|
|
75
90
|
/**
|
|
76
91
|
* 根据 ID 删除覆盖物
|
|
77
92
|
*/
|
|
@@ -84,12 +99,51 @@ export declare class OverlayServiceAdapter {
|
|
|
84
99
|
* 设置覆盖物可见性
|
|
85
100
|
*/
|
|
86
101
|
setOverlayVisible(id: string, visible: boolean): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* 更新覆盖物位置。
|
|
104
|
+
* 兼容旧版的单点位置更新 API。
|
|
105
|
+
*/
|
|
106
|
+
updateOverlayPosition(id: string, position: OverlayPosition): boolean;
|
|
87
107
|
/**
|
|
88
108
|
* 获取所有覆盖物 ID
|
|
89
109
|
*/
|
|
90
110
|
getAllOverlayIds(): string[];
|
|
91
|
-
toggleOverlayHighlight(entityOrId: OverlayEntity | Entity | string, reason?: 'click' | 'hover'): boolean;
|
|
92
|
-
setOverlayHighlight(entityOrId: OverlayEntity | Entity | string, enabled: boolean, reason?: 'click' | 'hover'): boolean;
|
|
111
|
+
toggleOverlayHighlight(entityOrId: OverlayEntity | Entity | string | number, reason?: 'click' | 'hover'): boolean;
|
|
112
|
+
setOverlayHighlight(entityOrId: OverlayEntity | Entity | string | number, enabled: boolean, reason?: 'click' | 'hover'): boolean;
|
|
113
|
+
/**
|
|
114
|
+
* 显式开启/关闭 hover 高亮处理。
|
|
115
|
+
*/
|
|
116
|
+
toggleOverlayHoverHighlight(enabled: boolean): void;
|
|
117
|
+
/**
|
|
118
|
+
* 开启/关闭覆盖物编辑模式。
|
|
119
|
+
* compat 层直接转发到底层 OverlayService。
|
|
120
|
+
*/
|
|
121
|
+
setOverlayEditMode(enabled: boolean, overlayEditOptions?: Record<string, any>): void;
|
|
122
|
+
/**
|
|
123
|
+
* 获取当前编辑模式开关。
|
|
124
|
+
*/
|
|
125
|
+
getOverlayEditModeEnabled(): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* 停止当前编辑目标,但不强制关闭全局编辑开关。
|
|
128
|
+
*/
|
|
129
|
+
stopOverlayEdit(): void;
|
|
130
|
+
/**
|
|
131
|
+
* 主动开始编辑某个覆盖物。
|
|
132
|
+
* compat 层会切换到编辑状态并抑制 hover,但不会真正渲染编辑控制点。
|
|
133
|
+
*/
|
|
134
|
+
startOverlayEdit(entityOrId: OverlayEntity | Entity | string | number, options?: Record<string, any>): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* 批量更新包裹器。
|
|
137
|
+
*/
|
|
138
|
+
beginBulkUpdate(): void;
|
|
139
|
+
/**
|
|
140
|
+
* 结束一次批量更新。
|
|
141
|
+
*/
|
|
142
|
+
endBulkUpdate(): void;
|
|
143
|
+
/**
|
|
144
|
+
* 批量更新包裹器(自动 begin/end)。
|
|
145
|
+
*/
|
|
146
|
+
bulkUpdate<T>(fn: () => T): T;
|
|
93
147
|
getCoreService(): OverlayService;
|
|
94
148
|
/**
|
|
95
149
|
* 销毁服务
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Viewer } from '../../node_modules/cesium';
|
|
2
|
-
import { CustomButtonConfig, MapType, MeasurementCallback, SearchCallback, ToolbarConfig, ZoomCallback } from '../core/types';
|
|
2
|
+
import { CustomButtonConfig, MapType, MapAuthConfig, MeasurementCallback, SearchCallback, ToolbarConfig, ZoomCallback } from '../core/types';
|
|
3
3
|
import { ToolbarService } from '../core/services/toolbar/ToolbarService';
|
|
4
|
+
import { LayersServiceBridge } from '../core/MapPlugin';
|
|
5
|
+
import { SearchService as LegacySearchService } from '../libs/toolBar/MapSearchService';
|
|
6
|
+
import { MeasurementService as LegacyMeasurementService } from '../libs/toolBar/MeasurementService';
|
|
4
7
|
interface LegacyInitialCenter {
|
|
5
8
|
longitude: number;
|
|
6
9
|
latitude: number;
|
|
@@ -13,6 +16,16 @@ export interface LegacyCesiumMapToolbarCallbacks {
|
|
|
13
16
|
fullscreen?: (isFullscreen: boolean) => void;
|
|
14
17
|
resetLocation?: () => void;
|
|
15
18
|
}
|
|
19
|
+
interface LegacyMapLayersBridge {
|
|
20
|
+
setMapType: (mapTypeId: string) => void;
|
|
21
|
+
setPlaceNameVisible: (isChecked: boolean) => void;
|
|
22
|
+
togglePlaceNameVisibility: () => void;
|
|
23
|
+
showNoFlyZones: () => Promise<void>;
|
|
24
|
+
hideNoFlyZones: () => void;
|
|
25
|
+
toggleNoFlyZoneVisibility: () => void;
|
|
26
|
+
toggleNoFlyZones: () => Promise<void>;
|
|
27
|
+
getNoFlyZoneVisible: () => boolean;
|
|
28
|
+
}
|
|
16
29
|
declare class ToolbarAdapterMapController {
|
|
17
30
|
private readonly viewer;
|
|
18
31
|
private initialCenter;
|
|
@@ -43,18 +56,39 @@ export declare class ToolbarAdapter {
|
|
|
43
56
|
private readonly drawHelper;
|
|
44
57
|
private readonly mapController;
|
|
45
58
|
private readonly i18nInstance;
|
|
59
|
+
private readonly mapPlugin;
|
|
60
|
+
private searchService;
|
|
61
|
+
private measurementService;
|
|
62
|
+
private layersServiceBridge;
|
|
46
63
|
private currentMapType;
|
|
64
|
+
private placeNameVisible;
|
|
65
|
+
private noFlyZoneVisible;
|
|
47
66
|
TD_Token: string;
|
|
67
|
+
TD_SK: string;
|
|
48
68
|
mapTypes: MapType[];
|
|
69
|
+
readonly measurement: {
|
|
70
|
+
getMeasureMode: () => "none" | "distance" | "area";
|
|
71
|
+
};
|
|
49
72
|
constructor(viewer: Viewer, container: HTMLElement, config?: ToolbarConfig, callbacks?: LegacyCesiumMapToolbarCallbacks, initialCenter?: LegacyInitialCenter);
|
|
50
|
-
private
|
|
73
|
+
private getLayersButtonCallback;
|
|
74
|
+
private emitLayersButtonCallback;
|
|
51
75
|
private syncLayersHandler;
|
|
76
|
+
private syncTdtAuthToMapPlugin;
|
|
77
|
+
private createLayersServiceBridge;
|
|
78
|
+
private applyMapTypeDirectly;
|
|
79
|
+
getSearchService(): LegacySearchService | null;
|
|
80
|
+
getMeasurementService(): LegacyMeasurementService | null;
|
|
81
|
+
getMapLayersService(): LegacyMapLayersBridge | LayersServiceBridge | null;
|
|
52
82
|
setMapType(mapTypeId: string): void;
|
|
53
83
|
getToolbarService(): ToolbarService;
|
|
54
84
|
getToolbarElement(): HTMLElement | null;
|
|
55
85
|
getCesiumMapCtrl(): ToolbarAdapterMapController;
|
|
56
86
|
setMapTypes(mapTypes: MapType[]): void;
|
|
57
87
|
setTDToken(token: string): void;
|
|
88
|
+
setTDSK(sk: string): void;
|
|
89
|
+
setTDTAuth(token: string, sk?: string): void;
|
|
90
|
+
setMapAuth(auth: MapAuthConfig): void;
|
|
91
|
+
setBaseMapProvider(provider: 'tdt' | 'gaode' | 'tencent' | 'baidu' | 'google' | 'custom', type?: string): void;
|
|
58
92
|
setInitialCenter(center: LegacyInitialCenter): void;
|
|
59
93
|
getInitialCenter(): LegacyInitialCenter;
|
|
60
94
|
resetToInitialLocation(): void;
|
|
@@ -65,6 +99,10 @@ export declare class ToolbarAdapter {
|
|
|
65
99
|
hideButton(buttonId: string): void;
|
|
66
100
|
enableButton(buttonId: string): void;
|
|
67
101
|
disableButton(buttonId: string): void;
|
|
102
|
+
showNoFlyZones(): Promise<void>;
|
|
103
|
+
hideNoFlyZones(): void;
|
|
104
|
+
toggleNoFlyZones(): Promise<void>;
|
|
105
|
+
getNoFlyZoneVisible(): boolean;
|
|
68
106
|
destroy(): void;
|
|
69
107
|
}
|
|
70
108
|
export declare function createToolbarAdapter(viewer: Viewer, container: HTMLElement, config?: ToolbarConfig, callbacks?: LegacyCesiumMapToolbarCallbacks, initialCenter?: LegacyInitialCenter): ToolbarAdapter;
|
|
@@ -11,8 +11,12 @@ export { initCesium } from './MapLoaderAdapter';
|
|
|
11
11
|
export type { LegacyInitOptions, LegacyInitResult, LegacyMapCenter } from './MapLoaderAdapter';
|
|
12
12
|
export { DrawHelperAdapter, createDrawHelperAdapter } from './DrawHelperAdapter';
|
|
13
13
|
export type { LegacyDrawCallbacks, LegacyDrawOptions, LegacyDrawEntity } from './DrawHelperAdapter';
|
|
14
|
+
export { HeatmapLayer } from './HeatmapLayerAdapter';
|
|
15
|
+
export type { HeatPoint, HeatmapAutoUpdateOptions, HeatmapGradient, HeatmapOptions, } from './HeatmapLayerAdapter';
|
|
14
16
|
export { OverlayServiceAdapter, createOverlayServiceAdapter } from './OverlayServiceAdapter';
|
|
15
17
|
export type { LegacyCesiumOverlayServiceOptions } from './OverlayServiceAdapter';
|
|
18
|
+
export { MapMarkAdapter } from './MapMarkAdapter';
|
|
19
|
+
export type { CesiumMapMarkOptions } from './MapMarkAdapter';
|
|
16
20
|
/**
|
|
17
21
|
* 适配器模块版本信息
|
|
18
22
|
*/
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { CameraConfig, DrawPluginOptions, LayersConfig, MapPluginOptions, OverlayPluginOptions, ToolbarConfig, ToolbarPluginOptions } from './types';
|
|
1
|
+
import { BaseMapConfig, MapAuthConfig, CameraConfig, DrawPluginOptions, LayersConfig, MapPluginOptions, OverlayPluginOptions, ToolbarConfig, ToolbarPluginOptions } from './types';
|
|
2
2
|
import { OverlayService } from './services/overlay/OverlayService';
|
|
3
3
|
import { DrawService } from './services/draw/DrawService';
|
|
4
4
|
import { ToolbarService } from './services/toolbar/ToolbarService';
|
|
5
5
|
import * as Cesium from 'cesium';
|
|
6
|
+
export interface LayersServiceBridge {
|
|
7
|
+
setMapType: (mapTypeId: string) => void;
|
|
8
|
+
setPlaceNameVisible: (isChecked: boolean) => void;
|
|
9
|
+
togglePlaceNameVisibility: () => void;
|
|
10
|
+
showNoFlyZones: () => Promise<void>;
|
|
11
|
+
hideNoFlyZones: () => void;
|
|
12
|
+
toggleNoFlyZoneVisibility: () => void;
|
|
13
|
+
toggleNoFlyZones: () => Promise<void>;
|
|
14
|
+
getNoFlyZoneVisible: () => boolean;
|
|
15
|
+
}
|
|
6
16
|
/**
|
|
7
17
|
* 地图插件核心类
|
|
8
18
|
* 负责整合所有地图功能,提供统一的 API 接口
|
|
@@ -13,6 +23,8 @@ export declare class MapPlugin {
|
|
|
13
23
|
private viewerOptions;
|
|
14
24
|
private cameraConfig;
|
|
15
25
|
private layersConfig;
|
|
26
|
+
private baseMapConfig;
|
|
27
|
+
private mapAuthConfig;
|
|
16
28
|
private cesiumToken;
|
|
17
29
|
private toolbarConfig;
|
|
18
30
|
private toolbarLayersMenuConfig;
|
|
@@ -23,11 +35,14 @@ export declare class MapPlugin {
|
|
|
23
35
|
private toolbarMapTypes;
|
|
24
36
|
private currentMapTypeId;
|
|
25
37
|
private placeNameVisible;
|
|
38
|
+
private nonForcedPlaceNameVisible;
|
|
26
39
|
private noFlyZoneVisible;
|
|
27
40
|
private noFlyZoneDataSource;
|
|
28
41
|
private noFlyZoneLoadPromise;
|
|
29
42
|
private currentGeoWTFS;
|
|
30
43
|
private sceneModeListenerDispose;
|
|
44
|
+
private offlineCleanup;
|
|
45
|
+
private layerRequestVersion;
|
|
31
46
|
private toolbarService;
|
|
32
47
|
private overlayService;
|
|
33
48
|
private drawService;
|
|
@@ -56,21 +71,32 @@ export declare class MapPlugin {
|
|
|
56
71
|
* 合并图层配置
|
|
57
72
|
*/
|
|
58
73
|
private mergeLayersConfig;
|
|
74
|
+
private resolveBaseMapConfig;
|
|
59
75
|
private resolveCurrentMapTypeId;
|
|
60
76
|
private resolvePlaceNameVisible;
|
|
61
77
|
private getToolbarMapTypes;
|
|
62
78
|
private getCurrentToolbarMapType;
|
|
63
79
|
private getLayerToken;
|
|
80
|
+
private getLayerSk;
|
|
81
|
+
private resetTerrainProvider;
|
|
82
|
+
private applyTerrainProvider;
|
|
64
83
|
private ensureNoFlyZoneDataSource;
|
|
65
84
|
private destroyGeoWTFS;
|
|
66
85
|
private syncGeoWTFS;
|
|
86
|
+
private refreshLayersAndGeoWTFS;
|
|
87
|
+
private syncCreditDisplay;
|
|
88
|
+
private clearOfflineConstraints;
|
|
89
|
+
private applyOfflineConstraints;
|
|
67
90
|
private updateToolbarLayerState;
|
|
68
91
|
private createLayersServiceBridge;
|
|
92
|
+
private syncOfflineToolbarState;
|
|
69
93
|
private setMapType;
|
|
70
94
|
private setPlaceNameVisible;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
95
|
+
showNoFlyZones(): Promise<void>;
|
|
96
|
+
hideNoFlyZones(): void;
|
|
97
|
+
toggleNoFlyZones(): Promise<void>;
|
|
98
|
+
getNoFlyZoneVisible(): boolean;
|
|
99
|
+
getLayersServiceBridge(): LayersServiceBridge;
|
|
74
100
|
/**
|
|
75
101
|
* 初始化地图
|
|
76
102
|
*/
|
|
@@ -119,6 +145,8 @@ export declare class MapPlugin {
|
|
|
119
145
|
* 更新图层配置
|
|
120
146
|
*/
|
|
121
147
|
updateLayers(config: Partial<LayersConfig>): void;
|
|
148
|
+
updateBaseMap(baseMap: Partial<BaseMapConfig>): void;
|
|
149
|
+
updateMapAuth(mapAuth: MapAuthConfig): void;
|
|
122
150
|
/**
|
|
123
151
|
* 创建 ToolbarService
|
|
124
152
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Viewer, Entity } from '../../../node_modules/cesium';
|
|
2
|
+
import { CoordSystem } from '../mapProviders/coordinates/types';
|
|
2
3
|
import * as Cesium from 'cesium';
|
|
3
4
|
/**
|
|
4
5
|
* 覆盖物位置类型
|
|
@@ -24,6 +25,8 @@ export interface BaseOverlayOptions {
|
|
|
24
25
|
metadata?: Record<string, any>;
|
|
25
26
|
/** 兼容旧版图层分组键 */
|
|
26
27
|
layerKey?: string;
|
|
28
|
+
/** 当前入参坐标系,默认 WGS84 */
|
|
29
|
+
coordSystem?: CoordSystem;
|
|
27
30
|
}
|
|
28
31
|
/** 点击高亮配置 */
|
|
29
32
|
export interface OverlayClickHighlightOptions {
|
|
@@ -128,6 +131,10 @@ export declare abstract class BaseOverlay {
|
|
|
128
131
|
* 获取覆盖物 ID
|
|
129
132
|
*/
|
|
130
133
|
getId(): string;
|
|
134
|
+
/**
|
|
135
|
+
* 兼容 0.x:外部常直接把覆盖物实例当作 Entity 用,读取 `id`。
|
|
136
|
+
*/
|
|
137
|
+
get id(): string;
|
|
131
138
|
/**
|
|
132
139
|
* 设置是否显示
|
|
133
140
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Viewer, Color, MaterialProperty, HeightReference } from '../../../node_modules/cesium';
|
|
1
|
+
import { Viewer, Entity, Color, MaterialProperty, HeightReference } from '../../../node_modules/cesium';
|
|
2
2
|
import { BaseOverlay, BaseOverlayOptions, OverlayPosition } from './BaseOverlay';
|
|
3
|
+
import * as Cesium from 'cesium';
|
|
3
4
|
/**
|
|
4
5
|
* Circle 配置选项
|
|
5
6
|
*/
|
|
@@ -48,9 +49,20 @@ export interface CircleOptions extends BaseOverlayOptions {
|
|
|
48
49
|
* ```
|
|
49
50
|
*/
|
|
50
51
|
export declare class Circle extends BaseOverlay {
|
|
52
|
+
private static primitiveManagers;
|
|
51
53
|
private circleOptions;
|
|
52
54
|
private innerEntity?;
|
|
55
|
+
private primitiveMode;
|
|
56
|
+
private primitiveManager;
|
|
53
57
|
constructor(viewer: Viewer, options: CircleOptions);
|
|
58
|
+
private static getPrimitiveManager;
|
|
59
|
+
private canUsePrimitive;
|
|
60
|
+
private resolveMaterialColor;
|
|
61
|
+
private getDefaultSegmentsForRadius;
|
|
62
|
+
private initPrimitiveCircle;
|
|
63
|
+
private updatePrimitiveGeometry;
|
|
64
|
+
private getPrimitiveRoot;
|
|
65
|
+
private getPrimitiveBatchColorFallback;
|
|
54
66
|
/**
|
|
55
67
|
* 创建粗边框圆形(环形)
|
|
56
68
|
*/
|
|
@@ -95,6 +107,10 @@ export declare class Circle extends BaseOverlay {
|
|
|
95
107
|
* 获取半径
|
|
96
108
|
*/
|
|
97
109
|
getRadius(): number;
|
|
110
|
+
setPrimitiveVisible(entity: Entity, visible: boolean): void;
|
|
111
|
+
applyPrimitiveHighlight(entity: Entity, hlColor: Cesium.Color, _fillAlpha: number): void;
|
|
112
|
+
restorePrimitiveHighlight(entity: Entity): void;
|
|
113
|
+
setVisible(show: boolean): void;
|
|
98
114
|
/**
|
|
99
115
|
* 从场景中移除圆形
|
|
100
116
|
*/
|
|
@@ -10,6 +10,8 @@ export interface PolylineOptions extends BaseOverlayOptions {
|
|
|
10
10
|
width?: number;
|
|
11
11
|
/** 材质(颜色、字符串或 MaterialProperty) */
|
|
12
12
|
material?: MaterialProperty | Color | string;
|
|
13
|
+
/** 兼容旧版颜色字段 */
|
|
14
|
+
color?: Color | string;
|
|
13
15
|
/** 是否贴地(默认 false) */
|
|
14
16
|
clampToGround?: boolean;
|
|
15
17
|
/** 贴地抬高量(米,clampToGround=true 时生效) */
|
|
@@ -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,15 @@
|
|
|
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
|
+
export declare class CirclePrimitiveLayerStack {
|
|
8
|
+
private viewer;
|
|
9
|
+
private fillsRoot;
|
|
10
|
+
private ringsRoot;
|
|
11
|
+
private layers;
|
|
12
|
+
constructor(viewer: Viewer);
|
|
13
|
+
getLayerCollections(layerKey: string): CirclePrimitiveLayerCollections;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { TDTLayerConfig } from '../types';
|
|
2
|
+
import { MapLayer } from './MapLayer';
|
|
3
|
+
import * as Cesium from 'cesium';
|
|
4
|
+
export declare function setTDTPlugin(plugin: unknown): void;
|
|
5
|
+
export declare function ensureTDT3DExtensionLoaded(): Promise<boolean>;
|
|
6
|
+
export declare const hasTDT3DExtension: (_CesiumNS: typeof Cesium) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* 天地图影像图层配置(带注记)
|
|
9
|
+
*/
|
|
10
|
+
export declare const createTDTImageryConfig: (token: string, sk?: string) => Cesium.ImageryProvider[];
|
|
11
|
+
/**
|
|
12
|
+
* 天地图矢量图层配置(带注记)
|
|
13
|
+
*/
|
|
14
|
+
export declare const createTDTVectorConfig: (token: string, sk?: string) => Cesium.ImageryProvider[];
|
|
15
|
+
/**
|
|
16
|
+
* 天地图地形图层配置(带注记)
|
|
17
|
+
*/
|
|
18
|
+
export declare const createTDTTerrainConfig: (token: string, sk?: string) => Cesium.ImageryProvider[];
|
|
19
|
+
/**
|
|
20
|
+
* 天地图三维影像图层配置(带注记)
|
|
21
|
+
*/
|
|
22
|
+
export declare const createTDT3DImageryConfig: (token: string, sk?: string) => Cesium.ImageryProvider[];
|
|
23
|
+
/**
|
|
24
|
+
* 天地图三维地形提供者配置
|
|
25
|
+
*/
|
|
26
|
+
export declare const createTDT3DTerrainProvider: (token: string, sk?: string) => Cesium.TerrainProvider | null;
|
|
27
|
+
export declare const createTDT3DGeoWTFS: (token: string, viewer: Cesium.Viewer, sk?: string) => any | null;
|
|
28
|
+
/**
|
|
29
|
+
* 天地图图层类
|
|
30
|
+
* 支持矢量、影像、地形、三维地图四种类型的天地图图层
|
|
31
|
+
*/
|
|
32
|
+
export declare class TDTMapLayer extends MapLayer {
|
|
33
|
+
private config;
|
|
34
|
+
/**
|
|
35
|
+
* 构造函数
|
|
36
|
+
* @param viewer Cesium Viewer 实例
|
|
37
|
+
* @param config 天地图图层配置
|
|
38
|
+
*/
|
|
39
|
+
constructor(viewer: Cesium.Viewer, config: TDTLayerConfig);
|
|
40
|
+
/**
|
|
41
|
+
* 获取影像提供者数组
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* 获取地图服务提供者数组
|
|
45
|
+
* @returns {Cesium.ImageryProvider[]} 返回符合配置的地图服务提供者数组
|
|
46
|
+
*/
|
|
47
|
+
protected getProviders(): Cesium.ImageryProvider[];
|
|
48
|
+
/**
|
|
49
|
+
* 添加图层到 Viewer
|
|
50
|
+
*/
|
|
51
|
+
addToViewer(): void;
|
|
52
|
+
/**
|
|
53
|
+
* 更新图层配置
|
|
54
|
+
* @param config 新的天地图图层配置
|
|
55
|
+
*/
|
|
56
|
+
updateConfig(config: Partial<TDTLayerConfig>): void;
|
|
57
|
+
/**
|
|
58
|
+
* 获取当前配置
|
|
59
|
+
*/
|
|
60
|
+
getConfig(): TDTLayerConfig;
|
|
61
|
+
}
|
|
@@ -9,6 +9,7 @@ export { GaodeMapLayer } from './GaodeMapLayer';
|
|
|
9
9
|
export { BaiduMapLayer } from './BaiduMapLayer';
|
|
10
10
|
export { OSMMapLayer } from './OSMMapLayer';
|
|
11
11
|
export { CustomMapLayer } from './CustomMapLayer';
|
|
12
|
+
export { setTDTPlugin, createTDTImageryConfig, createTDTVectorConfig, createTDTTerrainConfig, createTDT3DImageryConfig, createTDT3DTerrainProvider, createTDT3DGeoWTFS, hasTDT3DExtension, } from './TDTMapLayer';
|
|
12
13
|
export { HeatmapLayer } from './HeatmapLayer';
|
|
13
14
|
export type { HeatPoint, HeatmapGradient, HeatmapOptions } from './HeatmapLayer';
|
|
14
15
|
export { PointClusterLayer } from './PointClusterLayer';
|