@gis_victory/gismap 2.0.72 → 2.0.74
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/gismap.css +1 -1
- package/dist/index.d.ts +66 -111
- package/dist/index.es.js +12 -12
- package/dist/index.umd.js +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -193,7 +193,7 @@ addImgLayer: (sourceConfig?: any, beforeId?: string) => void;
|
|
|
193
193
|
removeImgLayer: () => void;
|
|
194
194
|
addVecLayer: (sourceConfig?: any, beforeId?: string) => void;
|
|
195
195
|
removeVecLayer: () => void;
|
|
196
|
-
addCiaLayer: (sourceConfig?: any,
|
|
196
|
+
addCiaLayer: (sourceConfig?: any, slotId?: string) => void;
|
|
197
197
|
removeCiaLayer: () => void;
|
|
198
198
|
clear: () => void;
|
|
199
199
|
show: () => void;
|
|
@@ -231,12 +231,7 @@ readonly iconManager: {
|
|
|
231
231
|
load: (icons: IconConfig_2[]) => Promise<void>;
|
|
232
232
|
} | undefined;
|
|
233
233
|
readonly placeholderManager: {
|
|
234
|
-
addLayer: (
|
|
235
|
-
beforeLayerPointId?: string;
|
|
236
|
-
beforeLayerLineId?: string;
|
|
237
|
-
beforeLayerFillId?: string;
|
|
238
|
-
beforeMaskLayerId?: string;
|
|
239
|
-
}) => void;
|
|
234
|
+
addLayer: () => void;
|
|
240
235
|
} | undefined;
|
|
241
236
|
readonly drawManager: {
|
|
242
237
|
startDraw: (type: DrawType, callback?: DrawCallback) => void;
|
|
@@ -287,7 +282,8 @@ moveLayerUp: (layerId: string) => void;
|
|
|
287
282
|
moveLayerDown: (layerId: string) => void;
|
|
288
283
|
moveLayerToTop: (layerId: string) => void;
|
|
289
284
|
moveLayerToBottom: (layerId: string) => void;
|
|
290
|
-
getTargetLayerId: (layerId: string, type: string) =>
|
|
285
|
+
getTargetLayerId: (layerId: string, type: string) => any;
|
|
286
|
+
getLayerIdsInSlot: (slotId: string) => any;
|
|
291
287
|
readonly name: string;
|
|
292
288
|
readonly isInitialized: boolean;
|
|
293
289
|
readonly isEnabled: boolean;
|
|
@@ -628,6 +624,38 @@ declare interface ClassProvider<T> {
|
|
|
628
624
|
singleton?: boolean;
|
|
629
625
|
}
|
|
630
626
|
|
|
627
|
+
export declare const ComparePage: DefineComponent< {
|
|
628
|
+
/** �分割方向 */
|
|
629
|
+
defaultDirection?: "vertical" | "horizontal";
|
|
630
|
+
mapOptions?: any;
|
|
631
|
+
initIcons?: Array<any>;
|
|
632
|
+
initData?: any;
|
|
633
|
+
leftData?: {
|
|
634
|
+
type: Array<any> | undefined;
|
|
635
|
+
default: () => [];
|
|
636
|
+
};
|
|
637
|
+
rightData?: {
|
|
638
|
+
type: Array<any> | undefined;
|
|
639
|
+
default: () => [];
|
|
640
|
+
};
|
|
641
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
642
|
+
/** �分割方向 */
|
|
643
|
+
defaultDirection?: "vertical" | "horizontal";
|
|
644
|
+
mapOptions?: any;
|
|
645
|
+
initIcons?: Array<any>;
|
|
646
|
+
initData?: any;
|
|
647
|
+
leftData?: {
|
|
648
|
+
type: Array<any> | undefined;
|
|
649
|
+
default: () => [];
|
|
650
|
+
};
|
|
651
|
+
rightData?: {
|
|
652
|
+
type: Array<any> | undefined;
|
|
653
|
+
default: () => [];
|
|
654
|
+
};
|
|
655
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
656
|
+
comparePageContainer: HTMLDivElement;
|
|
657
|
+
}, HTMLDivElement>;
|
|
658
|
+
|
|
631
659
|
/**
|
|
632
660
|
* 配置管理器
|
|
633
661
|
*/
|
|
@@ -1196,92 +1224,6 @@ export declare const getEndpoint: (key: string) => string;
|
|
|
1196
1224
|
*/
|
|
1197
1225
|
export declare const getFullUrl: (key: string) => string;
|
|
1198
1226
|
|
|
1199
|
-
export declare const GisMapCompareFrame: DefineComponent<ExtractPropTypes< {
|
|
1200
|
-
direction: {
|
|
1201
|
-
type: () => "horizontal" | "vertical";
|
|
1202
|
-
default: string;
|
|
1203
|
-
};
|
|
1204
|
-
initialPercent: {
|
|
1205
|
-
type: NumberConstructor;
|
|
1206
|
-
default: number;
|
|
1207
|
-
};
|
|
1208
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1209
|
-
cancel: () => any;
|
|
1210
|
-
change: (payload: {
|
|
1211
|
-
direction: "horizontal" | "vertical";
|
|
1212
|
-
percent: number;
|
|
1213
|
-
}) => any;
|
|
1214
|
-
confirm: (payload: {
|
|
1215
|
-
direction: "horizontal" | "vertical";
|
|
1216
|
-
percent: number;
|
|
1217
|
-
}) => any;
|
|
1218
|
-
"update:direction": (value: "horizontal" | "vertical") => any;
|
|
1219
|
-
"update:percent": (value: number) => any;
|
|
1220
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1221
|
-
direction: {
|
|
1222
|
-
type: () => "horizontal" | "vertical";
|
|
1223
|
-
default: string;
|
|
1224
|
-
};
|
|
1225
|
-
initialPercent: {
|
|
1226
|
-
type: NumberConstructor;
|
|
1227
|
-
default: number;
|
|
1228
|
-
};
|
|
1229
|
-
}>> & Readonly<{
|
|
1230
|
-
onCancel?: (() => any) | undefined;
|
|
1231
|
-
onChange?: ((payload: {
|
|
1232
|
-
direction: "horizontal" | "vertical";
|
|
1233
|
-
percent: number;
|
|
1234
|
-
}) => any) | undefined;
|
|
1235
|
-
onConfirm?: ((payload: {
|
|
1236
|
-
direction: "horizontal" | "vertical";
|
|
1237
|
-
percent: number;
|
|
1238
|
-
}) => any) | undefined;
|
|
1239
|
-
"onUpdate:direction"?: ((value: "horizontal" | "vertical") => any) | undefined;
|
|
1240
|
-
"onUpdate:percent"?: ((value: number) => any) | undefined;
|
|
1241
|
-
}>, {
|
|
1242
|
-
direction: "horizontal" | "vertical";
|
|
1243
|
-
initialPercent: number;
|
|
1244
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1245
|
-
|
|
1246
|
-
export declare const GisMapCompareSplit: DefineComponent<ExtractPropTypes< {
|
|
1247
|
-
active: {
|
|
1248
|
-
type: BooleanConstructor;
|
|
1249
|
-
default: boolean;
|
|
1250
|
-
};
|
|
1251
|
-
direction: {
|
|
1252
|
-
type: () => "horizontal" | "vertical";
|
|
1253
|
-
default: string;
|
|
1254
|
-
};
|
|
1255
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1256
|
-
change: (payload: {
|
|
1257
|
-
active: boolean;
|
|
1258
|
-
direction: "horizontal" | "vertical";
|
|
1259
|
-
}) => any;
|
|
1260
|
-
toggle: () => any;
|
|
1261
|
-
"update:active": (value: boolean) => any;
|
|
1262
|
-
"update:direction": (value: "horizontal" | "vertical") => any;
|
|
1263
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1264
|
-
active: {
|
|
1265
|
-
type: BooleanConstructor;
|
|
1266
|
-
default: boolean;
|
|
1267
|
-
};
|
|
1268
|
-
direction: {
|
|
1269
|
-
type: () => "horizontal" | "vertical";
|
|
1270
|
-
default: string;
|
|
1271
|
-
};
|
|
1272
|
-
}>> & Readonly<{
|
|
1273
|
-
onChange?: ((payload: {
|
|
1274
|
-
active: boolean;
|
|
1275
|
-
direction: "horizontal" | "vertical";
|
|
1276
|
-
}) => any) | undefined;
|
|
1277
|
-
onToggle?: (() => any) | undefined;
|
|
1278
|
-
"onUpdate:active"?: ((value: boolean) => any) | undefined;
|
|
1279
|
-
"onUpdate:direction"?: ((value: "horizontal" | "vertical") => any) | undefined;
|
|
1280
|
-
}>, {
|
|
1281
|
-
active: boolean;
|
|
1282
|
-
direction: "horizontal" | "vertical";
|
|
1283
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1284
|
-
|
|
1285
1227
|
export declare const GisMapCompass: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1286
1228
|
|
|
1287
1229
|
export declare const GisMapContainer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1481,6 +1423,14 @@ defaultCheckedIds: {
|
|
|
1481
1423
|
type: () => string[];
|
|
1482
1424
|
default: () => never[];
|
|
1483
1425
|
};
|
|
1426
|
+
/**
|
|
1427
|
+
* 简易模式
|
|
1428
|
+
* 默认为 false,为 true 时隐藏工具栏、标签页和搜索框
|
|
1429
|
+
*/
|
|
1430
|
+
simple: {
|
|
1431
|
+
type: BooleanConstructor;
|
|
1432
|
+
default: boolean;
|
|
1433
|
+
};
|
|
1484
1434
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1485
1435
|
title: {
|
|
1486
1436
|
type: StringConstructor;
|
|
@@ -1540,6 +1490,14 @@ defaultCheckedIds: {
|
|
|
1540
1490
|
type: () => string[];
|
|
1541
1491
|
default: () => never[];
|
|
1542
1492
|
};
|
|
1493
|
+
/**
|
|
1494
|
+
* 简易模式
|
|
1495
|
+
* 默认为 false,为 true 时隐藏工具栏、标签页和搜索框
|
|
1496
|
+
*/
|
|
1497
|
+
simple: {
|
|
1498
|
+
type: BooleanConstructor;
|
|
1499
|
+
default: boolean;
|
|
1500
|
+
};
|
|
1543
1501
|
}>> & Readonly<{}>, {
|
|
1544
1502
|
data: any[];
|
|
1545
1503
|
title: string;
|
|
@@ -1550,6 +1508,7 @@ maxHeight: number;
|
|
|
1550
1508
|
activeTab: "layers" | "selected" | "favorites" | "recent";
|
|
1551
1509
|
checkedLinkage: boolean;
|
|
1552
1510
|
defaultCheckedIds: string[];
|
|
1511
|
+
simple: boolean;
|
|
1553
1512
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1554
1513
|
layerTabRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
1555
1514
|
prefix: {
|
|
@@ -2263,8 +2222,7 @@ children?: string | undefined;
|
|
|
2263
2222
|
label?: string | ((data: TreeNodeData, node: default_2) => string) | undefined;
|
|
2264
2223
|
disabled?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
2265
2224
|
isLeaf?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
2266
|
-
class
|
|
2267
|
-
/** @type { typeof __VLS_ctx.layerTabRef } */ ?: ((data: TreeNodeData, node: default_2) => string | {
|
|
2225
|
+
class?: ((data: TreeNodeData, node: default_2) => string | {
|
|
2268
2226
|
[key: string]: boolean;
|
|
2269
2227
|
}) | undefined;
|
|
2270
2228
|
};
|
|
@@ -3902,8 +3860,7 @@ children?: string | undefined;
|
|
|
3902
3860
|
label?: string | ((data: TreeNodeData, node: default_2) => string) | undefined;
|
|
3903
3861
|
disabled?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
3904
3862
|
isLeaf?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
3905
|
-
class
|
|
3906
|
-
/** @type { typeof __VLS_ctx.layerTabRef } */ ?: ((data: TreeNodeData, node: default_2) => string | {
|
|
3863
|
+
class?: ((data: TreeNodeData, node: default_2) => string | {
|
|
3907
3864
|
[key: string]: boolean;
|
|
3908
3865
|
}) | undefined;
|
|
3909
3866
|
};
|
|
@@ -6057,7 +6014,8 @@ export declare class LayerManager extends BaseManager {
|
|
|
6057
6014
|
* @param type 操作类型
|
|
6058
6015
|
* @returns 各类型区域的位置信息
|
|
6059
6016
|
*/
|
|
6060
|
-
getTargetLayerId(layerId: string, type: string):
|
|
6017
|
+
getTargetLayerId(layerId: string, type: string): any;
|
|
6018
|
+
getLayerIdsInSlot(slotId: string): any;
|
|
6061
6019
|
}
|
|
6062
6020
|
|
|
6063
6021
|
/**
|
|
@@ -7404,16 +7362,18 @@ declare type MeasureType = 'point' | 'line' | 'polygon' | 'none';
|
|
|
7404
7362
|
|
|
7405
7363
|
/** 占位符图层 ID 常量(供外部引用) */
|
|
7406
7364
|
declare class PlaceholderManager {
|
|
7365
|
+
/** 背景图层名称 */
|
|
7366
|
+
static readonly BasemapLayerId = "basemap";
|
|
7407
7367
|
/** 符号图层(Symbol)占位符 ID */
|
|
7408
|
-
static readonly
|
|
7368
|
+
static readonly symbolSlotId = "symbol";
|
|
7409
7369
|
/** 点图层(Circle)占位符 ID */
|
|
7410
|
-
static readonly
|
|
7370
|
+
static readonly layerPointSlotId = "top";
|
|
7411
7371
|
/** 线图层(Line)占位符 ID */
|
|
7412
|
-
static readonly
|
|
7372
|
+
static readonly layerLineSlotId = "middle";
|
|
7413
7373
|
/** 面图层(Fill)占位符 ID */
|
|
7414
|
-
static readonly
|
|
7374
|
+
static readonly layerPolygonSlotId = "bottom";
|
|
7415
7375
|
/** 遮罩图层(Mask)占位符 ID */
|
|
7416
|
-
static readonly
|
|
7376
|
+
static readonly maskSlotId = "mask";
|
|
7417
7377
|
private adapter;
|
|
7418
7378
|
/** 占位符专用空 GeoJSON Source ID */
|
|
7419
7379
|
private readonly sourceId;
|
|
@@ -7422,12 +7382,7 @@ declare class PlaceholderManager {
|
|
|
7422
7382
|
* 初始化所有占位符图层(点、线、面、符号、遮罩)。
|
|
7423
7383
|
* 应在地图加载完成后、业务图层添加之前调用一次。
|
|
7424
7384
|
*/
|
|
7425
|
-
addLayer(
|
|
7426
|
-
beforeLayerPointId?: string;
|
|
7427
|
-
beforeLayerLineId?: string;
|
|
7428
|
-
beforeLayerFillId?: string;
|
|
7429
|
-
beforeMaskLayerId?: string;
|
|
7430
|
-
}): void;
|
|
7385
|
+
addLayer(): void;
|
|
7431
7386
|
}
|
|
7432
7387
|
|
|
7433
7388
|
/**
|
|
@@ -7876,7 +7831,7 @@ declare class TDTManager {
|
|
|
7876
7831
|
addVecLayer(sourceConfig?: any, beforeId?: string): void;
|
|
7877
7832
|
removeVecLayer(): void;
|
|
7878
7833
|
/** 添加天地图注记图层 */
|
|
7879
|
-
addCiaLayer(sourceConfig?: any,
|
|
7834
|
+
addCiaLayer(sourceConfig?: any, slotId?: string): void;
|
|
7880
7835
|
removeCiaLayer(): void;
|
|
7881
7836
|
/** 移除所有天地图图层 */
|
|
7882
7837
|
clear(): void;
|