@gis_victory/gismap 3.0.1 → 3.0.3

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/index.d.ts CHANGED
@@ -7558,6 +7558,9 @@ export declare interface RasterSource {
7558
7558
  bounds?: [number, number, number, number];
7559
7559
  }
7560
7560
 
7561
+ /** 切换指定地图的底图,可在地图就绪后直接调用。 */
7562
+ export declare function selectBaseLayer(context: MapContext, item: SwitchLayerPayload): boolean;
7563
+
7561
7564
  /** 选中回调 */
7562
7565
  declare type SelectCallback = (feature: DrawFeature | null) => void;
7563
7566
 
@@ -7721,6 +7724,8 @@ export declare interface SwitchLayerPayload {
7721
7724
  label?: string;
7722
7725
  /** 是否选中 */
7723
7726
  checked?: boolean;
7727
+ /** 初始样式中组成该底图的渲染层 ID。用于注册整套矢量瓦片底图。 */
7728
+ layerIds?: readonly string[];
7724
7729
  /** 自定义 source 配置(可选) */
7725
7730
  source?: any;
7726
7731
  /** 风格选项列表(可选,点击后显示风格选择弹窗) */
@@ -8041,6 +8046,12 @@ export declare class TypedEventEmitter {
8041
8046
  /** 取消订阅函数 */
8042
8047
  declare type Unsubscribe = () => void;
8043
8048
 
8049
+ export declare function useBaseLayer(): {
8050
+ curLayer: ComputedRef<string>;
8051
+ select: (item: SwitchLayerPayload) => boolean;
8052
+ toggleExtension: (type: string, item: SwitchLayerPayload, notifyBuiltIn: boolean) => void;
8053
+ };
8054
+
8044
8055
  /**
8045
8056
  * 获取配置管理器
8046
8057
  */