import type { Scene } from '@antv/l7'; import type { MapSchema } from '../specs'; import BaseStore from './base-store'; export type MapState = { /** * 场景实例 */ sceneInstance?: Scene; /** * 地图配置项 */ mapConfig: MapSchema; /** * hover 中的数据 * @deprecated 暂无用途 */ hoverFeature?: Record; /** * 单选中的数据 * @deprecated 暂无用途 */ selectFeatures: Record[]; /** * 绘制工具选中的数据 * @deprecated 暂无用途 */ geometrySelectionFeatures: Record[]; }; /** * 地图状态管理 */ declare class MapStore extends BaseStore { state: MapState; constructor(initialState?: MapState); initMapConfigState(mapConfig: MapSchema): void; setMapViewState(viewState: MapState['mapConfig']['config']): void; getMapConfig(): MapSchema; setScene(scene: Scene): void; getScene(): Scene | undefined; } export default MapStore;