@gis_victory/gismap 2.0.85 → 2.0.87

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
@@ -270,7 +270,7 @@ destroy: () => void;
270
270
  } | undefined;
271
271
  readonly layerManager: {
272
272
  queryLayerIds: string[];
273
- addSource: (source: any) => void;
273
+ addSource: (source: any, layerConfig?: any) => void;
274
274
  addLayer: (layerConfig: any, beforeLayerId?: string) => LayerManager;
275
275
  addGroupLayer: (layer: any) => void;
276
276
  removeLayer: (layer: any) => void;
@@ -1893,20 +1893,12 @@ readonly nextSibling: any | null;
1893
1893
  readonly previousSibling: any | null;
1894
1894
  contains: (target: default_2, deep?: boolean) => boolean;
1895
1895
  remove: () => void;
1896
- insertChild: (child?: FakeNode | default_2, index?: number, batch
1897
- /**
1898
- * 是否根据图层设置的 checked 属性联动打开
1899
- * 默认 true,若为 false,则所有设置打开的图层都默认关闭
1900
- */
1901
- ?: boolean) => void;
1896
+ insertChild: (child?: FakeNode | default_2, index?: number, batch?: boolean) => void;
1902
1897
  insertBefore: (child: FakeNode | default_2, ref: default_2) => void;
1903
1898
  insertAfter: (child: FakeNode | default_2, ref: default_2) => void;
1904
1899
  removeChild: (child: default_2) => void;
1905
1900
  removeChildByData: (data: TreeNodeData | null) => void;
1906
- expand: (callback?: (() => void) | null, expandParent? /**
1907
- * 简易模式
1908
- * 默认为 false,为 true 时隐藏工具栏、标签页和搜索框
1909
- */: boolean) => void;
1901
+ expand: (callback?: (() => void) | null, expandParent?: boolean) => void;
1910
1902
  doCreateChildren: (array: TreeNodeData[], defaultProps?: TreeNodeLoadedDefaultProps) => void;
1911
1903
  collapse: () => void;
1912
1904
  shouldLoadData: () => boolean;
@@ -2036,12 +2028,7 @@ lazy: boolean;
2036
2028
  load?: LoadFunction | undefined;
2037
2029
  filterNodeMethod?: FilterNodeMethodFunction | undefined;
2038
2030
  key: TreeKey;
2039
- defaultCheckedKeys
2040
- /**
2041
- * 切换收藏状态
2042
- * @param data 图层数据
2043
- */
2044
- ?: TreeKey[] | undefined;
2031
+ defaultCheckedKeys?: TreeKey[] | undefined;
2045
2032
  checkStrictly: boolean;
2046
2033
  defaultExpandedKeys?: TreeKey[] | undefined;
2047
2034
  autoExpandParent: boolean;
@@ -3544,20 +3531,12 @@ readonly nextSibling: any | null;
3544
3531
  readonly previousSibling: any | null;
3545
3532
  contains: (target: default_2, deep?: boolean) => boolean;
3546
3533
  remove: () => void;
3547
- insertChild: (child?: FakeNode | default_2, index?: number, batch
3548
- /**
3549
- * 是否根据图层设置的 checked 属性联动打开
3550
- * 默认 true,若为 false,则所有设置打开的图层都默认关闭
3551
- */
3552
- ?: boolean) => void;
3534
+ insertChild: (child?: FakeNode | default_2, index?: number, batch?: boolean) => void;
3553
3535
  insertBefore: (child: FakeNode | default_2, ref: default_2) => void;
3554
3536
  insertAfter: (child: FakeNode | default_2, ref: default_2) => void;
3555
3537
  removeChild: (child: default_2) => void;
3556
3538
  removeChildByData: (data: TreeNodeData | null) => void;
3557
- expand: (callback?: (() => void) | null, expandParent? /**
3558
- * 简易模式
3559
- * 默认为 false,为 true 时隐藏工具栏、标签页和搜索框
3560
- */: boolean) => void;
3539
+ expand: (callback?: (() => void) | null, expandParent?: boolean) => void;
3561
3540
  doCreateChildren: (array: TreeNodeData[], defaultProps?: TreeNodeLoadedDefaultProps) => void;
3562
3541
  collapse: () => void;
3563
3542
  shouldLoadData: () => boolean;
@@ -3687,12 +3666,7 @@ lazy: boolean;
3687
3666
  load?: LoadFunction | undefined;
3688
3667
  filterNodeMethod?: FilterNodeMethodFunction | undefined;
3689
3668
  key: TreeKey;
3690
- defaultCheckedKeys
3691
- /**
3692
- * 切换收藏状态
3693
- * @param data 图层数据
3694
- */
3695
- ?: TreeKey[] | undefined;
3669
+ defaultCheckedKeys?: TreeKey[] | undefined;
3696
3670
  checkStrictly: boolean;
3697
3671
  defaultExpandedKeys?: TreeKey[] | undefined;
3698
3672
  autoExpandParent: boolean;
@@ -5990,8 +5964,9 @@ export declare class LayerManager extends BaseManager {
5990
5964
  /**
5991
5965
  * 添加指定数据源
5992
5966
  * @param source 数据源
5967
+ * @param layerConfig 图层配置
5993
5968
  */
5994
- addSource(source: any): void;
5969
+ addSource(source: any, layerConfig?: any): void;
5995
5970
  /**
5996
5971
  * 添加指定图层
5997
5972
  * @param layerConfig 图层配置