@gis_victory/gismap 2.0.54 → 2.0.56

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
@@ -294,8 +294,10 @@ reset: () => void;
294
294
  } | undefined;
295
295
  readonly queryLayerManager: {
296
296
  bringToTop: () => void;
297
- setFeatures: (features: GeoJSON.Feature[]) => void;
298
- addFeatures: (features: GeoJSON.Feature[]) => void;
297
+ setFeatures: (features: any[], wktField?: string) => void;
298
+ addFeatures: (features: any[], wktField?: string) => void;
299
+ getFeatures: () => GeoJSON.Feature[];
300
+ getWktStrings: () => string[];
299
301
  clear: () => void;
300
302
  getPointLayerId: () => string;
301
303
  getLineLayerId: () => string;
@@ -1411,6 +1413,22 @@ required: true;
1411
1413
  type: FunctionConstructor;
1412
1414
  default: undefined;
1413
1415
  };
1416
+ /**
1417
+ * 是否根据图层设置的 checked 属性联动打开
1418
+ * 默认 true,若为 false,则所有设置打开的图层都默认关闭
1419
+ */
1420
+ checkedLinkage: {
1421
+ type: BooleanConstructor;
1422
+ default: boolean;
1423
+ };
1424
+ /**
1425
+ * 默认打开的图层 id 数组
1426
+ * 如果设置了,将优先使用这些 id 来决定哪些图层默认打开
1427
+ */
1428
+ defaultCheckedIds: {
1429
+ type: () => string[];
1430
+ default: () => never[];
1431
+ };
1414
1432
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1415
1433
  title: {
1416
1434
  type: StringConstructor;
@@ -1450,6 +1468,22 @@ required: true;
1450
1468
  type: FunctionConstructor;
1451
1469
  default: undefined;
1452
1470
  };
1471
+ /**
1472
+ * 是否根据图层设置的 checked 属性联动打开
1473
+ * 默认 true,若为 false,则所有设置打开的图层都默认关闭
1474
+ */
1475
+ checkedLinkage: {
1476
+ type: BooleanConstructor;
1477
+ default: boolean;
1478
+ };
1479
+ /**
1480
+ * 默认打开的图层 id 数组
1481
+ * 如果设置了,将优先使用这些 id 来决定哪些图层默认打开
1482
+ */
1483
+ defaultCheckedIds: {
1484
+ type: () => string[];
1485
+ default: () => never[];
1486
+ };
1453
1487
  }>> & Readonly<{}>, {
1454
1488
  data: any[];
1455
1489
  title: string;
@@ -1457,6 +1491,8 @@ prefix: string;
1457
1491
  toggleFavorite: Function;
1458
1492
  maxHeight: number;
1459
1493
  activeTab: "layers" | "selected" | "favorites" | "recent";
1494
+ checkedLinkage: boolean;
1495
+ defaultCheckedIds: string[];
1460
1496
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
1461
1497
  layerTabRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1462
1498
  prefix: {
@@ -3952,6 +3988,22 @@ showSearch: {
3952
3988
  type: BooleanConstructor;
3953
3989
  default: boolean;
3954
3990
  };
3991
+ /**
3992
+ * 是否根据图层设置的 checked 属性联动打开
3993
+ * 默认 true,若为 false,则所有设置打开的图层都默认关闭
3994
+ */
3995
+ checkedLinkage: {
3996
+ type: BooleanConstructor;
3997
+ default: boolean;
3998
+ };
3999
+ /**
4000
+ * 默认打开的图层 id 数组
4001
+ * 如果设置了,将优先使用这些 id 来决定哪些图层默认打开
4002
+ */
4003
+ defaultCheckedIds: {
4004
+ type: () => string[];
4005
+ default: () => never[];
4006
+ };
3955
4007
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3956
4008
  close: (...args: any[]) => void;
3957
4009
  "layer-toggle": (...args: any[]) => void;
@@ -3981,12 +4033,30 @@ showSearch: {
3981
4033
  type: BooleanConstructor;
3982
4034
  default: boolean;
3983
4035
  };
4036
+ /**
4037
+ * 是否根据图层设置的 checked 属性联动打开
4038
+ * 默认 true,若为 false,则所有设置打开的图层都默认关闭
4039
+ */
4040
+ checkedLinkage: {
4041
+ type: BooleanConstructor;
4042
+ default: boolean;
4043
+ };
4044
+ /**
4045
+ * 默认打开的图层 id 数组
4046
+ * 如果设置了,将优先使用这些 id 来决定哪些图层默认打开
4047
+ */
4048
+ defaultCheckedIds: {
4049
+ type: () => string[];
4050
+ default: () => never[];
4051
+ };
3984
4052
  }>> & Readonly<{
3985
4053
  onClose?: ((...args: any[]) => any) | undefined;
3986
4054
  "onLayer-toggle"?: ((...args: any[]) => any) | undefined;
3987
4055
  }>, {
3988
4056
  data: any[];
3989
4057
  title: string;
4058
+ checkedLinkage: boolean;
4059
+ defaultCheckedIds: string[];
3990
4060
  showSearch: boolean;
3991
4061
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
3992
4062
 
@@ -4261,8 +4331,8 @@ default: () => {};
4261
4331
  }>> & Readonly<{}>, {
4262
4332
  data: MapSearchItem[];
4263
4333
  round: boolean;
4264
- func: Function;
4265
4334
  tianditu: TiandituQuery;
4335
+ func: Function;
4266
4336
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
4267
4337
 
4268
4338
  /**
@@ -6493,8 +6563,10 @@ export declare class QueryLayerManager extends BaseManager {
6493
6563
  private setupAutoBringToTop;
6494
6564
  private onOtherLayerAdded;
6495
6565
  bringToTop(): void;
6496
- setFeatures(features: GeoJSON.Feature[]): void;
6497
- addFeatures(features: GeoJSON.Feature[]): void;
6566
+ setFeatures(features: any[], wktField?: string): void;
6567
+ addFeatures(features: any[], wktField?: string): void;
6568
+ getFeatures(): GeoJSON.Feature[];
6569
+ getWktStrings(): string[];
6498
6570
  clear(): void;
6499
6571
  getPointLayerId(): string;
6500
6572
  getLineLayerId(): string;