@xingm/vmap-cesium-toolbar 1.0.1 → 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 +28 -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/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 +47 -10
- package/{dist/i18n → i18n}/en-US.d.ts +6 -0
- package/{dist/i18n → i18n}/zh-CN.d.ts +6 -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 +23 -42
- package/dist/README.md +0 -172
- package/dist/core/services/draw/DrawSessionStore.d.ts +0 -28
- package/dist/index.es.js +0 -8098
- package/dist/index.es.js.map +0 -1
- package/dist/package.json +0 -60
- /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}/layers/TDTMapLayer.d.ts +0 -0
- /package/{dist/core → core}/layers/index.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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as Cesium from 'cesium';
|
|
2
|
+
export type BaseMapProviderId = 'tdt' | 'gaode' | 'tencent' | 'baidu' | 'google' | 'custom';
|
|
3
|
+
export interface BaseMapRectangle {
|
|
4
|
+
west: number;
|
|
5
|
+
south: number;
|
|
6
|
+
east: number;
|
|
7
|
+
north: number;
|
|
8
|
+
}
|
|
9
|
+
export interface OfflineCameraBoundsConfig {
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
clamp?: boolean;
|
|
12
|
+
enableTilt?: boolean;
|
|
13
|
+
minimumZoomDistance?: number;
|
|
14
|
+
maximumZoomDistance?: number;
|
|
15
|
+
initialFlyTo?: boolean;
|
|
16
|
+
initialHeight?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface BaseMapConfig {
|
|
19
|
+
provider: BaseMapProviderId;
|
|
20
|
+
type?: string;
|
|
21
|
+
key?: string;
|
|
22
|
+
token?: string;
|
|
23
|
+
ak?: string;
|
|
24
|
+
sk?: string;
|
|
25
|
+
style?: string;
|
|
26
|
+
subdomains?: string[];
|
|
27
|
+
customUrl?: string;
|
|
28
|
+
urlTemplate?: string;
|
|
29
|
+
rectangle?: BaseMapRectangle;
|
|
30
|
+
minimumLevel?: number;
|
|
31
|
+
maximumLevel?: number;
|
|
32
|
+
credit?: string;
|
|
33
|
+
cameraBounds?: OfflineCameraBoundsConfig;
|
|
34
|
+
mode?: 'online' | 'offline';
|
|
35
|
+
showLabel?: boolean;
|
|
36
|
+
providers?: Cesium.ImageryProvider[];
|
|
37
|
+
wmtsLayer?: string;
|
|
38
|
+
wmtsStyle?: string;
|
|
39
|
+
wmtsFormat?: string;
|
|
40
|
+
tileMatrixSetId?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface MapAuthConfig {
|
|
43
|
+
tdt?: {
|
|
44
|
+
token?: string;
|
|
45
|
+
sk?: string;
|
|
46
|
+
};
|
|
47
|
+
gaode?: {
|
|
48
|
+
key?: string;
|
|
49
|
+
};
|
|
50
|
+
tencent?: {
|
|
51
|
+
key?: string;
|
|
52
|
+
};
|
|
53
|
+
baidu?: {
|
|
54
|
+
ak?: string;
|
|
55
|
+
};
|
|
56
|
+
google?: {
|
|
57
|
+
apiKey?: string;
|
|
58
|
+
mapId?: string;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface MapProviderContext {
|
|
62
|
+
viewer?: Cesium.Viewer;
|
|
63
|
+
baseMap: BaseMapConfig;
|
|
64
|
+
auth?: MapAuthConfig;
|
|
65
|
+
}
|
|
@@ -13,6 +13,11 @@ export declare class DrawService {
|
|
|
13
13
|
private readonly i18n;
|
|
14
14
|
private readonly useI18n;
|
|
15
15
|
private callbacks;
|
|
16
|
+
/**
|
|
17
|
+
* 构造函数,初始化绘图服务实例
|
|
18
|
+
* @param viewer - Viewer视图实例,用于显示和交互
|
|
19
|
+
* @param options - DrawServiceOptions类型的配置对象,包含可选的国际化等配置
|
|
20
|
+
*/
|
|
16
21
|
constructor(viewer: Viewer, options?: DrawServiceOptions);
|
|
17
22
|
private t;
|
|
18
23
|
startDrawing(mode: DrawMode, options?: DrawOptions): void;
|
|
@@ -35,4 +40,6 @@ export declare class DrawService {
|
|
|
35
40
|
private renderPreview;
|
|
36
41
|
private resetCurrentSession;
|
|
37
42
|
private emitDrawEnd;
|
|
43
|
+
private getOutputPositions;
|
|
44
|
+
private resolveCircleMetrics;
|
|
38
45
|
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { Cartesian3, Entity } from '../../../../node_modules/cesium';
|
|
2
|
+
import { DrawMode, DrawOptions } from './types/drawTypes';
|
|
3
|
+
import { FinishedDrawRecord } from './types/drawState';
|
|
4
|
+
/**
|
|
5
|
+
* DrawSessionStore 类用于管理和维护绘图会话的状态
|
|
6
|
+
* 它跟踪绘图过程中的临时实体、已完成实体、提示实体等数据
|
|
7
|
+
*/
|
|
8
|
+
export declare class DrawSessionStore {
|
|
9
|
+
/**
|
|
10
|
+
* 私有属性,存储绘图会话的当前状态
|
|
11
|
+
* 包含是否正在绘图、绘图模式、选项、临时位置、临时实体等数据
|
|
12
|
+
*/
|
|
13
|
+
private state;
|
|
14
|
+
/**
|
|
15
|
+
* 私有属性,存储已完成的绘图记录数组
|
|
16
|
+
* 每条记录包含一个主实体和多个辅助实体
|
|
17
|
+
*/
|
|
18
|
+
private finishedRecords;
|
|
19
|
+
/**
|
|
20
|
+
* 开始一个新的绘图会话
|
|
21
|
+
* @param mode 绘图模式
|
|
22
|
+
* @param options 绘图选项
|
|
23
|
+
*/
|
|
24
|
+
start(mode: DrawMode, options: DrawOptions): void;
|
|
25
|
+
/**
|
|
26
|
+
* 停止当前的绘图会话
|
|
27
|
+
* 重置所有与绘图相关的状态
|
|
28
|
+
*/
|
|
29
|
+
stop(): void;
|
|
30
|
+
/**
|
|
31
|
+
* 重置临时数据
|
|
32
|
+
* 清空临时位置、临时实体、提示实体和预览位置
|
|
33
|
+
*/
|
|
34
|
+
resetTemp(): void;
|
|
35
|
+
/**
|
|
36
|
+
* 设置预览位置
|
|
37
|
+
* @param position 预览位置坐标,可为null
|
|
38
|
+
*/
|
|
39
|
+
setPreviewPosition(position: Cartesian3 | null): void;
|
|
40
|
+
/**
|
|
41
|
+
* 添加临时位置
|
|
42
|
+
* @param position 要添加的位置坐标
|
|
43
|
+
*/
|
|
44
|
+
pushTempPosition(position: Cartesian3): void;
|
|
45
|
+
/**
|
|
46
|
+
* 弹出最后一个临时位置
|
|
47
|
+
* @returns 被弹出的位置坐标,如果没有则返回undefined
|
|
48
|
+
*/
|
|
49
|
+
popTempPosition(): Cartesian3 | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* 替换临时实体
|
|
52
|
+
* @param entities 要设置的临时实体数组
|
|
53
|
+
*/
|
|
54
|
+
replaceTempEntities(entities: Entity[]): void;
|
|
55
|
+
/**
|
|
56
|
+
* 设置提示实体
|
|
57
|
+
* @param entity 提示实体,可为null
|
|
58
|
+
*/
|
|
59
|
+
setHintEntity(entity: Entity | null): void;
|
|
60
|
+
/**
|
|
61
|
+
* 注册一个已完成的绘图
|
|
62
|
+
* @param primary 主实体
|
|
63
|
+
* @param auxiliary 辅助实体数组
|
|
64
|
+
*/
|
|
65
|
+
registerFinished(primary: Entity, auxiliary: Entity[]): void;
|
|
66
|
+
/**
|
|
67
|
+
* 注销一个已完成的绘图
|
|
68
|
+
* @param primary 要注销的主实体
|
|
69
|
+
* @returns 被注销的记录,如果找不到则返回null
|
|
70
|
+
*/
|
|
71
|
+
unregisterFinished(primary: Entity): FinishedDrawRecord | null;
|
|
72
|
+
/**
|
|
73
|
+
* 清空所有已完成的绘图
|
|
74
|
+
* @returns 被清空的记录数组
|
|
75
|
+
*/
|
|
76
|
+
clearFinished(): FinishedDrawRecord[];
|
|
77
|
+
/**
|
|
78
|
+
* 获取临时位置的副本
|
|
79
|
+
* @returns 临时位置数组的副本
|
|
80
|
+
*/
|
|
81
|
+
getTempPositions(): Cartesian3[];
|
|
82
|
+
/**
|
|
83
|
+
* 获取经过处理的临时位置
|
|
84
|
+
* @returns 经过处理的临时位置数组
|
|
85
|
+
*/
|
|
86
|
+
getSanitizedTempPositions(): Cartesian3[];
|
|
87
|
+
/**
|
|
88
|
+
* 获取临时实体的副本
|
|
89
|
+
* @returns 临时实体数组的副本
|
|
90
|
+
*/
|
|
91
|
+
getTempEntities(): Entity[];
|
|
92
|
+
/**
|
|
93
|
+
* 获取已完成实体的副本
|
|
94
|
+
* @returns 已完成实体数组的副本
|
|
95
|
+
*/
|
|
96
|
+
getFinishedEntities(): Entity[];
|
|
97
|
+
/**
|
|
98
|
+
* 获取已完成辅助实体的副本
|
|
99
|
+
* @returns 已完成辅助实体数组的副本
|
|
100
|
+
*/
|
|
101
|
+
getFinishedAuxEntities(): Entity[];
|
|
102
|
+
/**
|
|
103
|
+
* 获取提示实体
|
|
104
|
+
* @returns 提示实体,如果没有则返回null
|
|
105
|
+
*/
|
|
106
|
+
getHintEntity(): Entity | null;
|
|
107
|
+
/**
|
|
108
|
+
* 检查是否正在绘图
|
|
109
|
+
* @returns 如果正在绘图则返回true,否则返回false
|
|
110
|
+
*/
|
|
111
|
+
isDrawing(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* 获取当前绘图模式
|
|
114
|
+
* @returns 当前绘图模式
|
|
115
|
+
*/
|
|
116
|
+
getMode(): DrawMode;
|
|
117
|
+
/**
|
|
118
|
+
* 获取当前绘图选项
|
|
119
|
+
* @returns 当前绘图选项,如果没有则返回null
|
|
120
|
+
*/
|
|
121
|
+
getOptions(): DrawOptions | null;
|
|
122
|
+
/**
|
|
123
|
+
* 获取预览位置的副本
|
|
124
|
+
* @returns 预览位置的副本,如果没有则返回null
|
|
125
|
+
*/
|
|
126
|
+
getPreviewPosition(): Cartesian3 | null;
|
|
127
|
+
}
|
|
@@ -12,4 +12,5 @@ export declare class DrawPreviewFactory {
|
|
|
12
12
|
createPreviewCircle(center: Cartesian3, edge: Cartesian3, theme: ResolvedMeasurementTheme): Entity[];
|
|
13
13
|
createPolylineEntity(positions: Cartesian3[], color: Cesium.Color, width: number, clampToGround: boolean, closeLoop: boolean): Entity;
|
|
14
14
|
createPolygonFillEntity(positions: Cartesian3[], fill: Cesium.Color, clampToGround: boolean): Entity;
|
|
15
|
+
createRectangleEntity(start: Cartesian3, end: Cartesian3, theme: ResolvedMeasurementTheme): Entity;
|
|
15
16
|
}
|
|
@@ -4,6 +4,7 @@ import * as Cesium from 'cesium';
|
|
|
4
4
|
export declare function calculateDistance(cart1: Cesium.Cartographic, cart2: Cesium.Cartographic): number;
|
|
5
5
|
export declare function calculateTotalDistance(positions: Cartesian3[]): number;
|
|
6
6
|
export declare function calculatePolygonArea(positions: Cartesian3[]): number;
|
|
7
|
+
export declare function calculateRectangleArea(positions: Cartesian3[]): number;
|
|
7
8
|
export declare function getRectangleCornerPositions(start: Cartesian3, end: Cartesian3): Cartesian3[];
|
|
8
9
|
export declare function generateCirclePositions(center: Cesium.Cartographic, radius: number, segments?: number): Cartesian3[];
|
|
9
10
|
export declare function formatDistance(distance: number): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Cartesian3, Entity } from '../../../../../node_modules/cesium';
|
|
2
2
|
import { I18nLike } from '../../../../i18n';
|
|
3
|
+
import { CoordSystem, LngLat } from '../../../mapProviders/coordinates/types';
|
|
3
4
|
import * as Cesium from 'cesium';
|
|
4
5
|
export type DrawMode = 'point' | 'line' | 'polygon' | 'rectangle' | 'circle' | null;
|
|
5
6
|
export interface MeasurementLabelOffset {
|
|
@@ -43,6 +44,10 @@ export interface DrawOptions {
|
|
|
43
44
|
lineColor?: Cesium.Color | string;
|
|
44
45
|
lineWidth?: number;
|
|
45
46
|
fillColor?: Cesium.Color | string;
|
|
47
|
+
strokeColor?: Cesium.Color | string;
|
|
48
|
+
strokeWidth?: number;
|
|
49
|
+
outlineColor?: Cesium.Color | string;
|
|
50
|
+
outlineWidth?: number;
|
|
46
51
|
clampToGround?: boolean;
|
|
47
52
|
segmentDistanceLabelStyle?: MeasurementSummaryLabelStyle;
|
|
48
53
|
totalDistanceLabelStyle?: MeasurementSummaryLabelStyle;
|
|
@@ -50,6 +55,10 @@ export interface DrawOptions {
|
|
|
50
55
|
totalAreaLabelStyle?: MeasurementSummaryLabelStyle;
|
|
51
56
|
hintBubbleStyle?: MeasurementSummaryLabelStyle;
|
|
52
57
|
onClick?: (entity: Entity, positions?: Cartesian3[]) => void;
|
|
58
|
+
selfIntersectionEnabled?: boolean;
|
|
59
|
+
selfIntersectionAllowTouch?: boolean;
|
|
60
|
+
selfIntersectionAllowContinue?: boolean;
|
|
61
|
+
outputCoordSystem?: CoordSystem;
|
|
53
62
|
}
|
|
54
63
|
export interface DrawServiceOptions {
|
|
55
64
|
i18n?: I18nLike;
|
|
@@ -57,7 +66,13 @@ export interface DrawServiceOptions {
|
|
|
57
66
|
}
|
|
58
67
|
export interface DrawResult {
|
|
59
68
|
entity: Entity;
|
|
69
|
+
type: Exclude<DrawMode, null>;
|
|
60
70
|
positions: Cartesian3[];
|
|
71
|
+
geographicPositions: LngLat[];
|
|
72
|
+
outputCoordSystem: CoordSystem;
|
|
73
|
+
distance?: number;
|
|
74
|
+
area?: number;
|
|
75
|
+
radius?: number;
|
|
61
76
|
}
|
|
62
77
|
export interface DrawArtifacts {
|
|
63
78
|
primary: Entity;
|
|
@@ -8,3 +8,4 @@ export type { OverlayServiceOptions } from './overlay/OverlayService';
|
|
|
8
8
|
export { DrawService } from './draw';
|
|
9
9
|
export type { DrawMode, DrawOptions, DrawResult, DrawServiceOptions, MeasurementFillStyle, MeasurementLabelOffset, MeasurementStrokeStyle, MeasurementSummaryLabelStyle, MeasurementTheme, MeasurementVertexStyle } from './draw';
|
|
10
10
|
export * from './toolbar/index';
|
|
11
|
+
export * from './mark';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DrawService } from '../draw/DrawService';
|
|
2
|
+
import { OverlayService } from '../overlay/OverlayService';
|
|
3
|
+
import { MarkDrawOptions, MarkDrawResult, MarkDrawType, MarkEditOptions, MarkExportItem, MarkServiceOptions, MarkWorkAreaKind, MarkWorkAreaType } from './markTypes';
|
|
4
|
+
import * as Cesium from 'cesium';
|
|
5
|
+
export declare class MarkService {
|
|
6
|
+
private readonly viewer;
|
|
7
|
+
private readonly drawService;
|
|
8
|
+
private readonly overlayService;
|
|
9
|
+
private readonly pointController;
|
|
10
|
+
private readonly entities;
|
|
11
|
+
private readonly colors;
|
|
12
|
+
private readonly toolbar;
|
|
13
|
+
private readonly callbacks;
|
|
14
|
+
private activeDrawContext;
|
|
15
|
+
private editEnabled;
|
|
16
|
+
private editState;
|
|
17
|
+
private readonly continuous;
|
|
18
|
+
constructor(viewer: Cesium.Viewer, options?: MarkServiceOptions, drawService?: DrawService, overlayService?: OverlayService);
|
|
19
|
+
startDrawing(type: MarkDrawType, options?: MarkDrawOptions): void;
|
|
20
|
+
drawPoint(options?: MarkDrawOptions): void;
|
|
21
|
+
drawPolyline(options?: MarkDrawOptions): void;
|
|
22
|
+
drawPolygon(options?: MarkDrawOptions): void;
|
|
23
|
+
drawRectangle(options?: MarkDrawOptions): void;
|
|
24
|
+
drawCircle(options?: MarkDrawOptions): void;
|
|
25
|
+
startWorkAreaDraw(type: MarkWorkAreaType, kind?: MarkWorkAreaKind, options?: MarkDrawOptions): void;
|
|
26
|
+
stopDraw(): void;
|
|
27
|
+
cancelDrawing(): void;
|
|
28
|
+
clearAll(): void;
|
|
29
|
+
deleteEntity(entityOrId: Cesium.Entity | string): void;
|
|
30
|
+
enableEdit(options?: MarkEditOptions): void;
|
|
31
|
+
disableEdit(): MarkDrawResult | null;
|
|
32
|
+
startEdit(entityOrId: Cesium.Entity | string, options?: MarkEditOptions): boolean;
|
|
33
|
+
stopEdit(): MarkDrawResult | null;
|
|
34
|
+
setColor(type: MarkDrawType, color: string): void;
|
|
35
|
+
getColor(type: MarkDrawType): string;
|
|
36
|
+
getEntities(): Cesium.Entity[];
|
|
37
|
+
exportData(outputCoordSystem?: 'WGS84' | 'GCJ02' | 'BD09'): MarkExportItem[];
|
|
38
|
+
destroy(): void;
|
|
39
|
+
private stripAuxiliary;
|
|
40
|
+
private attachMetadata;
|
|
41
|
+
private getMetadata;
|
|
42
|
+
private applyStyle;
|
|
43
|
+
private updateEntityGeometry;
|
|
44
|
+
private syncEditHandlePositions;
|
|
45
|
+
private pickPosition;
|
|
46
|
+
private calculateCircleRadius;
|
|
47
|
+
private circleRadiusHandlePosition;
|
|
48
|
+
private getRectanglePositions;
|
|
49
|
+
private positionsToRectangle;
|
|
50
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MarkDrawType, MarkServiceOptions } from './markTypes';
|
|
2
|
+
export declare class MarkToolbar {
|
|
3
|
+
private readonly container;
|
|
4
|
+
private readonly options;
|
|
5
|
+
private readonly onSelect;
|
|
6
|
+
private element;
|
|
7
|
+
private readonly buttonTypes;
|
|
8
|
+
constructor(container: HTMLElement, options: MarkServiceOptions, onSelect: (type: MarkDrawType) => void);
|
|
9
|
+
mount(): void;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MarkService } from './MarkService';
|
|
2
|
+
export { MarkToolbar } from './MarkToolbar';
|
|
3
|
+
export type { MarkCallbacks, MarkDrawOptions, MarkDrawResult, MarkDrawType, MarkEditOptions, MarkExportItem, MarkServiceOptions, MarkWorkAreaKind, MarkWorkAreaType, } from './markTypes';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CoordSystem } from '../../mapProviders/coordinates/types';
|
|
2
|
+
import { MarkDrawResult, MarkExportItem } from './markTypes';
|
|
3
|
+
import * as Cesium from 'cesium';
|
|
4
|
+
export declare function buildMarkDrawResult(entity: Cesium.Entity, outputCoordSystem?: CoordSystem): MarkDrawResult | null;
|
|
5
|
+
export declare function exportMarkEntity(entity: Cesium.Entity, outputCoordSystem?: CoordSystem): MarkExportItem | null;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { CoordSystem, LngLat } from '../../mapProviders/coordinates/types';
|
|
2
|
+
import type * as Cesium from 'cesium';
|
|
3
|
+
export type MarkDrawType = 'point' | 'polyline' | 'polygon' | 'rectangle' | 'circle';
|
|
4
|
+
export type MarkWorkAreaType = 'polygon' | 'circle' | 'rectangle';
|
|
5
|
+
export type MarkWorkAreaKind = 'work' | 'noFly';
|
|
6
|
+
export interface MarkCallbacks {
|
|
7
|
+
onDrawStart?: (type: MarkDrawType) => void;
|
|
8
|
+
onDrawEnd?: (result: MarkDrawResult | null) => void;
|
|
9
|
+
onWorkAreaDrawEnd?: (result: MarkDrawResult | null) => void;
|
|
10
|
+
onEditChange?: (result: MarkDrawResult | null) => void;
|
|
11
|
+
onEditEnd?: (result: MarkDrawResult | null) => void;
|
|
12
|
+
onColorChange?: (color: string, drawType?: MarkDrawType) => void;
|
|
13
|
+
onDelete?: (entity: Cesium.Entity) => void;
|
|
14
|
+
onClear?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface MarkDrawOptions {
|
|
17
|
+
color?: string;
|
|
18
|
+
coordSystem?: CoordSystem;
|
|
19
|
+
outputCoordSystem?: CoordSystem;
|
|
20
|
+
clampToGround?: boolean;
|
|
21
|
+
workAreaKind?: MarkWorkAreaKind;
|
|
22
|
+
onComplete?: (result: MarkDrawResult | null) => void;
|
|
23
|
+
}
|
|
24
|
+
export interface MarkEditOptions {
|
|
25
|
+
outputCoordSystem?: CoordSystem;
|
|
26
|
+
}
|
|
27
|
+
export interface MarkExportItem {
|
|
28
|
+
id: string;
|
|
29
|
+
type: MarkDrawType;
|
|
30
|
+
position?: LngLat;
|
|
31
|
+
positions: LngLat[];
|
|
32
|
+
cartesian3Positions?: Cesium.Cartesian3[];
|
|
33
|
+
length?: number;
|
|
34
|
+
area?: number;
|
|
35
|
+
radius?: number;
|
|
36
|
+
color?: string;
|
|
37
|
+
kind?: MarkWorkAreaKind;
|
|
38
|
+
}
|
|
39
|
+
export interface MarkDrawResult {
|
|
40
|
+
id: string;
|
|
41
|
+
type: MarkDrawType;
|
|
42
|
+
entity: Cesium.Entity;
|
|
43
|
+
position?: LngLat;
|
|
44
|
+
positions: LngLat[];
|
|
45
|
+
cartesian3Positions: Cesium.Cartesian3[];
|
|
46
|
+
length?: number;
|
|
47
|
+
area?: number;
|
|
48
|
+
radius?: number;
|
|
49
|
+
color?: string;
|
|
50
|
+
outputCoordSystem: CoordSystem;
|
|
51
|
+
kind?: MarkWorkAreaKind;
|
|
52
|
+
}
|
|
53
|
+
export interface MarkServiceOptions {
|
|
54
|
+
showToolbar?: boolean;
|
|
55
|
+
toolbarPosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
56
|
+
buttonSize?: number;
|
|
57
|
+
buttonSpacing?: number;
|
|
58
|
+
zIndex?: number;
|
|
59
|
+
buttons?: MarkDrawType[];
|
|
60
|
+
continuous?: boolean;
|
|
61
|
+
defaultColor?: string;
|
|
62
|
+
colors?: Partial<Record<MarkDrawType, string>>;
|
|
63
|
+
callbacks?: MarkCallbacks;
|
|
64
|
+
}
|
|
65
|
+
export interface MarkEntityMetadata {
|
|
66
|
+
type: MarkDrawType;
|
|
67
|
+
controlPoints: Cesium.Cartesian3[];
|
|
68
|
+
radius?: number;
|
|
69
|
+
color?: string;
|
|
70
|
+
kind?: MarkWorkAreaKind;
|
|
71
|
+
}
|
|
@@ -19,6 +19,10 @@ export interface OverlayServiceOptions {
|
|
|
19
19
|
enableHoverHandler?: boolean;
|
|
20
20
|
/** 点击节流间隔(毫秒,默认 120) */
|
|
21
21
|
clickPickMinIntervalMs?: number;
|
|
22
|
+
/** 覆盖物编辑变化回调 */
|
|
23
|
+
onOverlayEditChange?: (entity: Entity) => void;
|
|
24
|
+
/** 覆盖物编辑结束回调 */
|
|
25
|
+
onOverlayEditEnd?: (entity: Entity | null) => void;
|
|
22
26
|
}
|
|
23
27
|
/**
|
|
24
28
|
* 覆盖物服务类
|
|
@@ -55,6 +59,7 @@ export declare class OverlayService {
|
|
|
55
59
|
private overlays;
|
|
56
60
|
private entityOverlayMap;
|
|
57
61
|
private options;
|
|
62
|
+
private hoverEnabled;
|
|
58
63
|
private nextId;
|
|
59
64
|
private clickHandler;
|
|
60
65
|
private hoverHandler;
|
|
@@ -64,6 +69,9 @@ export declare class OverlayService {
|
|
|
64
69
|
private pendingHoverRaf;
|
|
65
70
|
private pendingHoverPosition;
|
|
66
71
|
private readonly highlightCache;
|
|
72
|
+
private overlayEditEnabled;
|
|
73
|
+
private overlayEditOptions;
|
|
74
|
+
private overlayEditState;
|
|
67
75
|
private markerFactory;
|
|
68
76
|
private labelFactory;
|
|
69
77
|
private iconFactory;
|
|
@@ -155,6 +163,50 @@ export declare class OverlayService {
|
|
|
155
163
|
* 显式设置覆盖物高亮状态。
|
|
156
164
|
*/
|
|
157
165
|
setOverlayHighlight(entityOrId: OverlayEntity | Entity | string, enabled: boolean, reason?: 'click' | 'hover'): boolean;
|
|
166
|
+
/**
|
|
167
|
+
* 动态开启/关闭 hover 高亮处理器。
|
|
168
|
+
* 兼容旧版 overlayService 的运行时切换行为。
|
|
169
|
+
*/
|
|
170
|
+
setHoverEnabled(enabled: boolean): void;
|
|
171
|
+
/**
|
|
172
|
+
* 获取当前 hover 高亮开关状态。
|
|
173
|
+
*/
|
|
174
|
+
isHoverEnabled(): boolean;
|
|
175
|
+
setOverlayEditMode(enabled: boolean, overlayEditOptions?: Record<string, any>): void;
|
|
176
|
+
getOverlayEditModeEnabled(): boolean;
|
|
177
|
+
startOverlayEdit(entityOrId: OverlayEntity | Entity | string | number, overlayEditOptions?: Record<string, any>): boolean;
|
|
178
|
+
stopOverlayEdit(): Entity | null;
|
|
179
|
+
private suspendCameraControls;
|
|
180
|
+
private restoreCameraControls;
|
|
181
|
+
private releaseEditDrag;
|
|
182
|
+
private resolveEditableOverlay;
|
|
183
|
+
private detectEditableKind;
|
|
184
|
+
private resolveEditableControlPoints;
|
|
185
|
+
private createEditHandles;
|
|
186
|
+
private resolveHandleStyle;
|
|
187
|
+
private resolveHandleColor;
|
|
188
|
+
private resolvePickedEditHandle;
|
|
189
|
+
private pickEditPosition;
|
|
190
|
+
private applyDragForHandle;
|
|
191
|
+
private syncEditHandles;
|
|
192
|
+
private emitOverlayEditChange;
|
|
193
|
+
private emitOverlayEditEnd;
|
|
194
|
+
private applyPointPosition;
|
|
195
|
+
private applyPolylinePositions;
|
|
196
|
+
private applyPolygonPositions;
|
|
197
|
+
private applyRectangleCoordinates;
|
|
198
|
+
private applyCircle;
|
|
199
|
+
private getEntityPosition;
|
|
200
|
+
private getPolylinePositions;
|
|
201
|
+
private getPolygonPositions;
|
|
202
|
+
private getRectangleCoordinates;
|
|
203
|
+
private getRectangleHeight;
|
|
204
|
+
private resolveCircleRadius;
|
|
205
|
+
private getCircleInfo;
|
|
206
|
+
private calculateCircleRadiusMeters;
|
|
207
|
+
private circleRadiusHandlePosition;
|
|
208
|
+
private rectangleToPositions;
|
|
209
|
+
private positionsToRectangle;
|
|
158
210
|
/**
|
|
159
211
|
* 安装 Hover 处理器
|
|
160
212
|
*/
|
|
@@ -169,6 +221,7 @@ export declare class OverlayService {
|
|
|
169
221
|
private pickOverlayEntity;
|
|
170
222
|
private safeDrillPick;
|
|
171
223
|
private resolvePickedOverlayEntity;
|
|
224
|
+
private resolveOverlayByPickId;
|
|
172
225
|
private resolveOverlayEntity;
|
|
173
226
|
private getHighlightTargets;
|
|
174
227
|
private setHighlightTargets;
|
|
@@ -144,6 +144,18 @@ export declare class ToolbarService {
|
|
|
144
144
|
* @param service 图层服务实例
|
|
145
145
|
*/
|
|
146
146
|
setLayersService(service: any): void;
|
|
147
|
+
/**
|
|
148
|
+
* 获取搜索服务
|
|
149
|
+
*/
|
|
150
|
+
getSearchService(): any;
|
|
151
|
+
/**
|
|
152
|
+
* 获取测量服务
|
|
153
|
+
*/
|
|
154
|
+
getMeasurementService(): any;
|
|
155
|
+
/**
|
|
156
|
+
* 获取图层服务
|
|
157
|
+
*/
|
|
158
|
+
getLayersService(): any;
|
|
147
159
|
/**
|
|
148
160
|
* 设置地图控制器
|
|
149
161
|
* @param controller 地图控制器
|
|
@@ -23,6 +23,11 @@ export interface MeasureButtonHandlerOptions {
|
|
|
23
23
|
onAreaComplete?: (positions: any[], area: number) => void;
|
|
24
24
|
/** 清除测量回调 */
|
|
25
25
|
onClear?: () => void;
|
|
26
|
+
onMeasurementComplete?: (result: {
|
|
27
|
+
type: 'distance' | 'area';
|
|
28
|
+
positions: any[];
|
|
29
|
+
value: number;
|
|
30
|
+
}) => void;
|
|
26
31
|
}
|
|
27
32
|
/**
|
|
28
33
|
* 测量按钮处理器类
|
|
@@ -36,6 +36,7 @@ export declare class SimpleButtonHandler extends BaseButtonHandler {
|
|
|
36
36
|
readonly id: string;
|
|
37
37
|
private config;
|
|
38
38
|
private mapController?;
|
|
39
|
+
private sceneModeListenerDispose;
|
|
39
40
|
/**
|
|
40
41
|
* 构造函数
|
|
41
42
|
* @param config 按钮配置
|
|
@@ -63,6 +64,8 @@ export declare class SimpleButtonHandler extends BaseButtonHandler {
|
|
|
63
64
|
* @param controller 地图控制器
|
|
64
65
|
*/
|
|
65
66
|
setMapController(controller: MapControllerLike): void;
|
|
67
|
+
private attachSceneModeListener;
|
|
68
|
+
private syncView2D3DButton;
|
|
66
69
|
/**
|
|
67
70
|
* 切换激活状态
|
|
68
71
|
*/
|
|
@@ -4,4 +4,5 @@ export declare const DEFAULT_BUTTON_SORTS: Record<string, number>;
|
|
|
4
4
|
export declare const DEFAULT_BUTTON_CONFIGS: CustomButtonConfig[];
|
|
5
5
|
export declare const DEFAULT_MEASURE_ITEMS: MeasureMenuItem[];
|
|
6
6
|
export declare const DEFAULT_TOOLBAR_STYLE: ToolbarConfig;
|
|
7
|
+
export declare function withDefaultMapTypeThumbnails(mapTypes: MapType[]): MapType[];
|
|
7
8
|
export declare const DEFAULT_MAP_TYPES: MapType[];
|
|
@@ -71,6 +71,11 @@ export interface ToolbarCallbacks {
|
|
|
71
71
|
getAreaDrawOptions?: () => any;
|
|
72
72
|
onDistanceComplete?: (positions: any[], distance: number) => void;
|
|
73
73
|
onAreaComplete?: (positions: any[], area: number) => void;
|
|
74
|
+
onMeasurementComplete?: (result: {
|
|
75
|
+
type: 'distance' | 'area';
|
|
76
|
+
positions: any[];
|
|
77
|
+
value: number;
|
|
78
|
+
}) => void;
|
|
74
79
|
onClear?: () => void;
|
|
75
80
|
/** 缩放回调 */
|
|
76
81
|
onZoomIn?: (beforeHeight: number, afterHeight: number) => void;
|
|
@@ -89,6 +94,7 @@ export interface SearchResult {
|
|
|
89
94
|
longitude: number;
|
|
90
95
|
latitude: number;
|
|
91
96
|
height?: number;
|
|
97
|
+
coordSystem?: 'WGS84' | 'GCJ02' | 'BD09';
|
|
92
98
|
}
|
|
93
99
|
/**
|
|
94
100
|
* 搜索服务配置
|
|
@@ -102,6 +108,7 @@ export interface SearchServiceConfig {
|
|
|
102
108
|
export interface MeasurementCompleteEvent {
|
|
103
109
|
type: 'distance' | 'area';
|
|
104
110
|
positions: any[];
|
|
111
|
+
geographicPositions?: any[];
|
|
105
112
|
value: number;
|
|
106
113
|
}
|
|
107
114
|
export interface MeasurementServiceLike {
|