@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
|
@@ -61,6 +61,7 @@ interface MapCenter {
|
|
|
61
61
|
height: number;
|
|
62
62
|
pitch?: number;
|
|
63
63
|
heading?: number;
|
|
64
|
+
coordSystem?: 'WGS84' | 'GCJ02' | 'BD09';
|
|
64
65
|
}
|
|
65
66
|
export declare const setCameraView: (viewer: CesiumViewer, center: MapCenter) => void;
|
|
66
67
|
export declare const setCameraFlyTo: (viewer: CesiumViewer, center: MapCenter, options: InitOptions) => void;
|
|
@@ -30,6 +30,7 @@ export declare class CesiumMapToolbar {
|
|
|
30
30
|
private currentGeoWTFS;
|
|
31
31
|
private measurementService;
|
|
32
32
|
private unsubscribeI18n?;
|
|
33
|
+
private sceneModeListenerDispose?;
|
|
33
34
|
private i18n;
|
|
34
35
|
private useI18n;
|
|
35
36
|
readonly measurement: {
|
|
@@ -212,6 +213,10 @@ export declare class CesiumMapToolbar {
|
|
|
212
213
|
* @deprecated 使用 NotFlyZonesService.getNoFlyZoneVisible 代替
|
|
213
214
|
*/
|
|
214
215
|
getNoFlyZoneVisible(): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* 同步 view2d3d 按钮显示当前场景模式
|
|
218
|
+
*/
|
|
219
|
+
private syncView2D3DButton;
|
|
215
220
|
/**
|
|
216
221
|
* 销毁工具栏
|
|
217
222
|
*/
|
package/package.json
CHANGED
|
@@ -1,62 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xingm/vmap-cesium-toolbar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A powerful Cesium map toolbar plugin with drawing, measurement, and interaction features",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
7
|
-
"module": "
|
|
8
|
-
"types": "
|
|
6
|
+
"main": "index.es.js",
|
|
7
|
+
"module": "index.es.js",
|
|
8
|
+
"types": "index.d.ts",
|
|
9
9
|
"files": [
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"adapters",
|
|
11
|
+
"components",
|
|
12
|
+
"core",
|
|
13
|
+
"geojson",
|
|
14
|
+
"i18n",
|
|
15
|
+
"index.d.ts",
|
|
16
|
+
"index.es.js",
|
|
17
|
+
"index.es.js.map",
|
|
18
|
+
"libs",
|
|
19
|
+
"README.md",
|
|
20
|
+
"style.css",
|
|
21
|
+
"styles",
|
|
22
|
+
"utils"
|
|
12
23
|
],
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
15
|
-
},
|
|
16
24
|
"exports": {
|
|
17
25
|
".": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"import": "./index.es.js",
|
|
28
|
+
"default": "./index.es.js"
|
|
20
29
|
},
|
|
21
|
-
"./style": "./
|
|
22
|
-
|
|
23
|
-
"scripts": {
|
|
24
|
-
"dev": "vite --force",
|
|
25
|
-
"build": "vite build --mode lib",
|
|
26
|
-
"dist": "vite build",
|
|
27
|
-
"build:dts": "vue-tsc -p tsconfig.dts.json",
|
|
28
|
-
"build:plugin": "node scripts/build-plugin.js",
|
|
29
|
-
"docs:dev": "vitepress dev doc",
|
|
30
|
-
"docs:build": "vitepress build doc",
|
|
31
|
-
"docs:preview": "vitepress preview doc",
|
|
32
|
-
"generate:file-list": "node scripts/generate-file-list.js",
|
|
33
|
-
"preview": "vite preview",
|
|
34
|
-
"type-check": "vue-tsc --noEmit"
|
|
30
|
+
"./style": "./style.css",
|
|
31
|
+
"./package.json": "./package.json"
|
|
35
32
|
},
|
|
36
33
|
"peerDependencies": {
|
|
37
34
|
"vue": "^3.0.0"
|
|
38
35
|
},
|
|
39
|
-
"peerDependenciesMeta": {
|
|
40
|
-
"tdt-terrain-cesium-plugin": {
|
|
41
|
-
"optional": true
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
36
|
"dependencies": {
|
|
45
37
|
"cesium": "^1.134.1",
|
|
46
38
|
"tdt-terrain-cesium-plugin": "^1.0.3",
|
|
47
39
|
"vue": "^3.0.0"
|
|
48
40
|
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@types/cesium": "^1.70.4",
|
|
51
|
-
"@vitejs/plugin-vue": "^6.0.1",
|
|
52
|
-
"rollup-plugin-dts": "^6.1.0",
|
|
53
|
-
"vite": "^7.1.2",
|
|
54
|
-
"vite-plugin-cesium": "^1.2.23",
|
|
55
|
-
"vite-plugin-dts": "^4.5.4",
|
|
56
|
-
"vite-plugin-static-copy": "^3.1.2",
|
|
57
|
-
"vitepress": "^1.6.4",
|
|
58
|
-
"vue-tsc": "^3.0.5"
|
|
59
|
-
},
|
|
60
41
|
"keywords": [
|
|
61
42
|
"cesium",
|
|
62
43
|
"map",
|
|
@@ -76,4 +57,4 @@
|
|
|
76
57
|
"url": "https://github.com/BenXueYou/vmap-cesium-tool/issues"
|
|
77
58
|
},
|
|
78
59
|
"homepage": "https://github.com/BenXueYou/vmap-cesium-tool#readme"
|
|
79
|
-
}
|
|
60
|
+
}
|
package/dist/README.md
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
# @xingm/vmap-cesium-toolbar
|
|
2
|
-
|
|
3
|
-
一个以 MapPlugin 为中心的 Cesium 地图工具库,重构后将 Viewer 生命周期、工具栏、覆盖物和绘制能力统一收敛到插件内核与服务层,并保留一层兼容适配器用于平滑迁移旧 API。
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @xingm/vmap-cesium-toolbar cesium
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 推荐入口
|
|
12
|
-
|
|
13
|
-
新项目只推荐使用 createMapPlugin、MapPlugin 和服务层 API。
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
import { createMapPlugin } from '@xingm/vmap-cesium-toolbar';
|
|
17
|
-
|
|
18
|
-
const mapPlugin = createMapPlugin('cesiumContainer', {
|
|
19
|
-
cesiumToken: 'your-cesium-ion-token',
|
|
20
|
-
camera: {
|
|
21
|
-
center: [116.3974, 39.9093, 1000],
|
|
22
|
-
pitch: -45,
|
|
23
|
-
heading: 0,
|
|
24
|
-
},
|
|
25
|
-
layers: {
|
|
26
|
-
type: 'tdt',
|
|
27
|
-
tdt: {
|
|
28
|
-
mapTypeId: 'img',
|
|
29
|
-
token: 'your-tianditu-token',
|
|
30
|
-
showLabel: true,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
viewerOptions: {
|
|
34
|
-
animation: false,
|
|
35
|
-
timeline: false,
|
|
36
|
-
navigationHelpButton: false,
|
|
37
|
-
},
|
|
38
|
-
services: {
|
|
39
|
-
overlay: true,
|
|
40
|
-
draw: true,
|
|
41
|
-
toolbar: {
|
|
42
|
-
enabled: true,
|
|
43
|
-
callbacks: {
|
|
44
|
-
onSearch: async () => [],
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
const viewer = await mapPlugin.initialize();
|
|
51
|
-
const toolbarService = mapPlugin.getToolbarService();
|
|
52
|
-
const overlayService = mapPlugin.getOverlayService();
|
|
53
|
-
const drawService = mapPlugin.getDrawService();
|
|
54
|
-
|
|
55
|
-
drawService.startDrawing('polygon');
|
|
56
|
-
|
|
57
|
-
mapPlugin.updateLayers({
|
|
58
|
-
type: 'tdt',
|
|
59
|
-
tdt: {
|
|
60
|
-
mapTypeId: 'vec',
|
|
61
|
-
token: 'your-tianditu-token',
|
|
62
|
-
showLabel: true,
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## 重构后的公开层次
|
|
68
|
-
|
|
69
|
-
### 1. 新 API
|
|
70
|
-
|
|
71
|
-
- createMapPlugin
|
|
72
|
-
- MapPlugin
|
|
73
|
-
- ToolbarService
|
|
74
|
-
- OverlayService
|
|
75
|
-
- DrawService
|
|
76
|
-
- Marker、Label、Icon、SVG、InfoWindow、Polyline、Polygon、Rectangle、Circle、Ring
|
|
77
|
-
- HeatmapLayer、PointClusterLayer
|
|
78
|
-
|
|
79
|
-
### 2. 类型与样式能力
|
|
80
|
-
|
|
81
|
-
- MapPluginOptions、ToolbarConfig、LayersConfig 等统一从顶层导出
|
|
82
|
-
- i18n 与样式系统继续保留顶层导出,供组件与业务侧接入
|
|
83
|
-
|
|
84
|
-
### 3. 兼容 API
|
|
85
|
-
|
|
86
|
-
以下导出仍保留,但定位是迁移适配层,不再是推荐入口:
|
|
87
|
-
|
|
88
|
-
- initCesium
|
|
89
|
-
- CesiumMapToolbar
|
|
90
|
-
- CesiumOverlayService
|
|
91
|
-
- DrawHelper
|
|
92
|
-
|
|
93
|
-
## 迁移建议
|
|
94
|
-
|
|
95
|
-
建议按下面顺序逐步迁移旧业务。
|
|
96
|
-
|
|
97
|
-
1. 用 createMapPlugin(...).initialize() 替代 initCesium(...)
|
|
98
|
-
2. 用 services.toolbar 或 mapPlugin.getToolbarService() 替代直接构造 CesiumMapToolbar
|
|
99
|
-
3. 用 mapPlugin.getOverlayService() 替代直接维护 CesiumOverlayService 生命周期
|
|
100
|
-
4. 用 mapPlugin.getDrawService() 替代 DrawHelper 的直接持有
|
|
101
|
-
5. 仅在过渡窗口内保留 compat 导出
|
|
102
|
-
|
|
103
|
-
### 旧写法
|
|
104
|
-
|
|
105
|
-
```ts
|
|
106
|
-
import { initCesium, CesiumMapToolbar } from '@xingm/vmap-cesium-toolbar';
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### 新写法
|
|
110
|
-
|
|
111
|
-
```ts
|
|
112
|
-
import { createMapPlugin } from '@xingm/vmap-cesium-toolbar';
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
## Vue 3 示例
|
|
116
|
-
|
|
117
|
-
```vue
|
|
118
|
-
<template>
|
|
119
|
-
<div id="cesiumContainer" style="width: 100%; height: 100vh"></div>
|
|
120
|
-
</template>
|
|
121
|
-
|
|
122
|
-
<script setup lang="ts">
|
|
123
|
-
import { onMounted, onBeforeUnmount } from 'vue';
|
|
124
|
-
import { createMapPlugin } from '@xingm/vmap-cesium-toolbar';
|
|
125
|
-
|
|
126
|
-
let mapPlugin: ReturnType<typeof createMapPlugin> | null = null;
|
|
127
|
-
|
|
128
|
-
onMounted(async () => {
|
|
129
|
-
mapPlugin = createMapPlugin('cesiumContainer', {
|
|
130
|
-
camera: {
|
|
131
|
-
center: [116.3974, 39.9093, 1000],
|
|
132
|
-
pitch: -45,
|
|
133
|
-
},
|
|
134
|
-
layers: {
|
|
135
|
-
type: 'tdt',
|
|
136
|
-
tdt: {
|
|
137
|
-
mapTypeId: 'img',
|
|
138
|
-
token: 'your-tianditu-token',
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
services: {
|
|
142
|
-
toolbar: { enabled: true },
|
|
143
|
-
overlay: true,
|
|
144
|
-
draw: true,
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
await mapPlugin.initialize();
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
onBeforeUnmount(() => {
|
|
152
|
-
mapPlugin?.destroy();
|
|
153
|
-
});
|
|
154
|
-
</script>
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
## 文档入口
|
|
158
|
-
|
|
159
|
-
- 架构说明:doc/guide/Architecture.md
|
|
160
|
-
- 迁移指南:doc/guide/Migration_Guide.md
|
|
161
|
-
- API 目录:doc/api/index.md
|
|
162
|
-
|
|
163
|
-
说明:当前文档站已优先切换为“新架构说明 + 兼容 API 参考”的组织方式,新的逐个 API 页面会继续补齐。
|
|
164
|
-
|
|
165
|
-
## 开发命令
|
|
166
|
-
|
|
167
|
-
```bash
|
|
168
|
-
pnpm run build:plugin
|
|
169
|
-
pnpm run type-check
|
|
170
|
-
pnpm run docs:dev
|
|
171
|
-
pnpm run docs:build
|
|
172
|
-
```
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Cartesian3, Entity } from '../../../../node_modules/cesium';
|
|
2
|
-
import { DrawMode, DrawOptions } from './types/drawTypes';
|
|
3
|
-
import { FinishedDrawRecord } from './types/drawState';
|
|
4
|
-
export declare class DrawSessionStore {
|
|
5
|
-
private state;
|
|
6
|
-
private finishedRecords;
|
|
7
|
-
start(mode: DrawMode, options: DrawOptions): void;
|
|
8
|
-
stop(): void;
|
|
9
|
-
resetTemp(): void;
|
|
10
|
-
setPreviewPosition(position: Cartesian3 | null): void;
|
|
11
|
-
pushTempPosition(position: Cartesian3): void;
|
|
12
|
-
popTempPosition(): Cartesian3 | undefined;
|
|
13
|
-
replaceTempEntities(entities: Entity[]): void;
|
|
14
|
-
setHintEntity(entity: Entity | null): void;
|
|
15
|
-
registerFinished(primary: Entity, auxiliary: Entity[]): void;
|
|
16
|
-
unregisterFinished(primary: Entity): FinishedDrawRecord | null;
|
|
17
|
-
clearFinished(): FinishedDrawRecord[];
|
|
18
|
-
getTempPositions(): Cartesian3[];
|
|
19
|
-
getSanitizedTempPositions(): Cartesian3[];
|
|
20
|
-
getTempEntities(): Entity[];
|
|
21
|
-
getFinishedEntities(): Entity[];
|
|
22
|
-
getFinishedAuxEntities(): Entity[];
|
|
23
|
-
getHintEntity(): Entity | null;
|
|
24
|
-
isDrawing(): boolean;
|
|
25
|
-
getMode(): DrawMode;
|
|
26
|
-
getOptions(): DrawOptions | null;
|
|
27
|
-
getPreviewPosition(): Cartesian3 | null;
|
|
28
|
-
}
|