@gis_victory/gismap 2.0.71 → 2.0.73
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 +76 -143
- 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;
|
|
@@ -441,44 +437,24 @@ declare type __VLS_Props = {
|
|
|
441
437
|
};
|
|
442
438
|
|
|
443
439
|
declare type __VLS_Props_2 = {
|
|
444
|
-
/**
|
|
445
|
-
* 导入图层的基础样式
|
|
446
|
-
*/
|
|
447
440
|
layerStyle?: {
|
|
448
|
-
/**
|
|
449
|
-
* 点样式
|
|
450
|
-
*/
|
|
451
441
|
point?: {
|
|
452
442
|
color?: string;
|
|
453
443
|
size?: number;
|
|
454
444
|
};
|
|
455
|
-
/**
|
|
456
|
-
* 线样式
|
|
457
|
-
*/
|
|
458
445
|
line?: {
|
|
459
446
|
color?: string;
|
|
460
447
|
width?: number;
|
|
461
448
|
};
|
|
462
|
-
/**
|
|
463
|
-
* 面样式
|
|
464
|
-
*/
|
|
465
449
|
polygon?: {
|
|
466
450
|
fillColor?: string;
|
|
467
451
|
fillOpacity?: number;
|
|
468
|
-
strokeColor?: string;
|
|
469
|
-
strokeWidth?: number;
|
|
470
452
|
};
|
|
471
453
|
};
|
|
472
454
|
/**
|
|
473
|
-
*
|
|
474
|
-
* 支持格式:EPSG:4326(WGS84经纬度), EPSG:3857(Web墨卡托), EPSG:4490(CGCS2000), EPSG:4528(CGCS2000 3度带)
|
|
475
|
-
* 也支持自定义投影字符串
|
|
476
|
-
*/
|
|
477
|
-
sourceCrs?: string;
|
|
478
|
-
/**
|
|
479
|
-
* 目标坐标系(默认WGS84经纬度)
|
|
455
|
+
* 是否在导入后直接绘制到地图上,默认绘制
|
|
480
456
|
*/
|
|
481
|
-
|
|
457
|
+
draw?: boolean;
|
|
482
458
|
};
|
|
483
459
|
|
|
484
460
|
declare function __VLS_template(): {
|
|
@@ -648,6 +624,38 @@ declare interface ClassProvider<T> {
|
|
|
648
624
|
singleton?: boolean;
|
|
649
625
|
}
|
|
650
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
|
+
|
|
651
659
|
/**
|
|
652
660
|
* 配置管理器
|
|
653
661
|
*/
|
|
@@ -1216,92 +1224,6 @@ export declare const getEndpoint: (key: string) => string;
|
|
|
1216
1224
|
*/
|
|
1217
1225
|
export declare const getFullUrl: (key: string) => string;
|
|
1218
1226
|
|
|
1219
|
-
export declare const GisMapCompareFrame: DefineComponent<ExtractPropTypes< {
|
|
1220
|
-
direction: {
|
|
1221
|
-
type: () => "horizontal" | "vertical";
|
|
1222
|
-
default: string;
|
|
1223
|
-
};
|
|
1224
|
-
initialPercent: {
|
|
1225
|
-
type: NumberConstructor;
|
|
1226
|
-
default: number;
|
|
1227
|
-
};
|
|
1228
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1229
|
-
cancel: () => any;
|
|
1230
|
-
change: (payload: {
|
|
1231
|
-
direction: "horizontal" | "vertical";
|
|
1232
|
-
percent: number;
|
|
1233
|
-
}) => any;
|
|
1234
|
-
confirm: (payload: {
|
|
1235
|
-
direction: "horizontal" | "vertical";
|
|
1236
|
-
percent: number;
|
|
1237
|
-
}) => any;
|
|
1238
|
-
"update:direction": (value: "horizontal" | "vertical") => any;
|
|
1239
|
-
"update:percent": (value: number) => any;
|
|
1240
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1241
|
-
direction: {
|
|
1242
|
-
type: () => "horizontal" | "vertical";
|
|
1243
|
-
default: string;
|
|
1244
|
-
};
|
|
1245
|
-
initialPercent: {
|
|
1246
|
-
type: NumberConstructor;
|
|
1247
|
-
default: number;
|
|
1248
|
-
};
|
|
1249
|
-
}>> & Readonly<{
|
|
1250
|
-
onCancel?: (() => any) | undefined;
|
|
1251
|
-
onChange?: ((payload: {
|
|
1252
|
-
direction: "horizontal" | "vertical";
|
|
1253
|
-
percent: number;
|
|
1254
|
-
}) => any) | undefined;
|
|
1255
|
-
onConfirm?: ((payload: {
|
|
1256
|
-
direction: "horizontal" | "vertical";
|
|
1257
|
-
percent: number;
|
|
1258
|
-
}) => any) | undefined;
|
|
1259
|
-
"onUpdate:direction"?: ((value: "horizontal" | "vertical") => any) | undefined;
|
|
1260
|
-
"onUpdate:percent"?: ((value: number) => any) | undefined;
|
|
1261
|
-
}>, {
|
|
1262
|
-
direction: "horizontal" | "vertical";
|
|
1263
|
-
initialPercent: number;
|
|
1264
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1265
|
-
|
|
1266
|
-
export declare const GisMapCompareSplit: DefineComponent<ExtractPropTypes< {
|
|
1267
|
-
active: {
|
|
1268
|
-
type: BooleanConstructor;
|
|
1269
|
-
default: boolean;
|
|
1270
|
-
};
|
|
1271
|
-
direction: {
|
|
1272
|
-
type: () => "horizontal" | "vertical";
|
|
1273
|
-
default: string;
|
|
1274
|
-
};
|
|
1275
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1276
|
-
change: (payload: {
|
|
1277
|
-
active: boolean;
|
|
1278
|
-
direction: "horizontal" | "vertical";
|
|
1279
|
-
}) => any;
|
|
1280
|
-
toggle: () => any;
|
|
1281
|
-
"update:active": (value: boolean) => any;
|
|
1282
|
-
"update:direction": (value: "horizontal" | "vertical") => any;
|
|
1283
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1284
|
-
active: {
|
|
1285
|
-
type: BooleanConstructor;
|
|
1286
|
-
default: boolean;
|
|
1287
|
-
};
|
|
1288
|
-
direction: {
|
|
1289
|
-
type: () => "horizontal" | "vertical";
|
|
1290
|
-
default: string;
|
|
1291
|
-
};
|
|
1292
|
-
}>> & Readonly<{
|
|
1293
|
-
onChange?: ((payload: {
|
|
1294
|
-
active: boolean;
|
|
1295
|
-
direction: "horizontal" | "vertical";
|
|
1296
|
-
}) => any) | undefined;
|
|
1297
|
-
onToggle?: (() => any) | undefined;
|
|
1298
|
-
"onUpdate:active"?: ((value: boolean) => any) | undefined;
|
|
1299
|
-
"onUpdate:direction"?: ((value: "horizontal" | "vertical") => any) | undefined;
|
|
1300
|
-
}>, {
|
|
1301
|
-
active: boolean;
|
|
1302
|
-
direction: "horizontal" | "vertical";
|
|
1303
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1304
|
-
|
|
1305
1227
|
export declare const GisMapCompass: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1306
1228
|
|
|
1307
1229
|
export declare const GisMapContainer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1370,29 +1292,25 @@ export declare interface GISMapFactory {
|
|
|
1370
1292
|
getDefaultOptions(): GISMapOptions;
|
|
1371
1293
|
}
|
|
1372
1294
|
|
|
1373
|
-
export declare const GisMapFileImport: DefineComponent<__VLS_Props_2, {
|
|
1374
|
-
|
|
1375
|
-
importedLayerIds: Ref<string[], string[]>;
|
|
1376
|
-
importedSourceIds: Ref<string[], string[]>;
|
|
1377
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1295
|
+
export declare const GisMapFileImport: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1296
|
+
error: (error: Error) => any;
|
|
1378
1297
|
clear: () => any;
|
|
1379
|
-
|
|
1298
|
+
success: (data: {
|
|
1380
1299
|
geojson: GeoJSON.FeatureCollection;
|
|
1381
|
-
wkt: string[];
|
|
1382
1300
|
fileName: string;
|
|
1383
|
-
|
|
1301
|
+
featureCount: number;
|
|
1384
1302
|
}) => any;
|
|
1385
|
-
"import-error": (error: Error) => any;
|
|
1386
1303
|
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
1304
|
+
onError?: ((error: Error) => any) | undefined;
|
|
1387
1305
|
onClear?: (() => any) | undefined;
|
|
1388
|
-
|
|
1306
|
+
onSuccess?: ((data: {
|
|
1389
1307
|
geojson: GeoJSON.FeatureCollection;
|
|
1390
|
-
wkt: string[];
|
|
1391
1308
|
fileName: string;
|
|
1392
|
-
|
|
1309
|
+
featureCount: number;
|
|
1393
1310
|
}) => any) | undefined;
|
|
1394
|
-
|
|
1395
|
-
|
|
1311
|
+
}>, {
|
|
1312
|
+
draw: boolean;
|
|
1313
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1396
1314
|
fileInput: HTMLInputElement;
|
|
1397
1315
|
}, HTMLDivElement>;
|
|
1398
1316
|
|
|
@@ -1505,6 +1423,14 @@ defaultCheckedIds: {
|
|
|
1505
1423
|
type: () => string[];
|
|
1506
1424
|
default: () => never[];
|
|
1507
1425
|
};
|
|
1426
|
+
/**
|
|
1427
|
+
* 简易模式
|
|
1428
|
+
* 默认为 false,为 true 时隐藏工具栏、标签页和搜索框
|
|
1429
|
+
*/
|
|
1430
|
+
simple: {
|
|
1431
|
+
type: BooleanConstructor;
|
|
1432
|
+
default: boolean;
|
|
1433
|
+
};
|
|
1508
1434
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1509
1435
|
title: {
|
|
1510
1436
|
type: StringConstructor;
|
|
@@ -1564,6 +1490,14 @@ defaultCheckedIds: {
|
|
|
1564
1490
|
type: () => string[];
|
|
1565
1491
|
default: () => never[];
|
|
1566
1492
|
};
|
|
1493
|
+
/**
|
|
1494
|
+
* 简易模式
|
|
1495
|
+
* 默认为 false,为 true 时隐藏工具栏、标签页和搜索框
|
|
1496
|
+
*/
|
|
1497
|
+
simple: {
|
|
1498
|
+
type: BooleanConstructor;
|
|
1499
|
+
default: boolean;
|
|
1500
|
+
};
|
|
1567
1501
|
}>> & Readonly<{}>, {
|
|
1568
1502
|
data: any[];
|
|
1569
1503
|
title: string;
|
|
@@ -1574,6 +1508,7 @@ maxHeight: number;
|
|
|
1574
1508
|
activeTab: "layers" | "selected" | "favorites" | "recent";
|
|
1575
1509
|
checkedLinkage: boolean;
|
|
1576
1510
|
defaultCheckedIds: string[];
|
|
1511
|
+
simple: boolean;
|
|
1577
1512
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1578
1513
|
layerTabRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
1579
1514
|
prefix: {
|
|
@@ -6079,7 +6014,8 @@ export declare class LayerManager extends BaseManager {
|
|
|
6079
6014
|
* @param type 操作类型
|
|
6080
6015
|
* @returns 各类型区域的位置信息
|
|
6081
6016
|
*/
|
|
6082
|
-
getTargetLayerId(layerId: string, type: string):
|
|
6017
|
+
getTargetLayerId(layerId: string, type: string): any;
|
|
6018
|
+
getLayerIdsInSlot(slotId: string): any;
|
|
6083
6019
|
}
|
|
6084
6020
|
|
|
6085
6021
|
/**
|
|
@@ -7426,16 +7362,18 @@ declare type MeasureType = 'point' | 'line' | 'polygon' | 'none';
|
|
|
7426
7362
|
|
|
7427
7363
|
/** 占位符图层 ID 常量(供外部引用) */
|
|
7428
7364
|
declare class PlaceholderManager {
|
|
7365
|
+
/** 背景图层名称 */
|
|
7366
|
+
static readonly BasemapLayerId = "basemap";
|
|
7429
7367
|
/** 符号图层(Symbol)占位符 ID */
|
|
7430
|
-
static readonly
|
|
7368
|
+
static readonly symbolSlotId = "symbol";
|
|
7431
7369
|
/** 点图层(Circle)占位符 ID */
|
|
7432
|
-
static readonly
|
|
7370
|
+
static readonly layerPointSlotId = "top";
|
|
7433
7371
|
/** 线图层(Line)占位符 ID */
|
|
7434
|
-
static readonly
|
|
7372
|
+
static readonly layerLineSlotId = "middle";
|
|
7435
7373
|
/** 面图层(Fill)占位符 ID */
|
|
7436
|
-
static readonly
|
|
7374
|
+
static readonly layerPolygonSlotId = "bottom";
|
|
7437
7375
|
/** 遮罩图层(Mask)占位符 ID */
|
|
7438
|
-
static readonly
|
|
7376
|
+
static readonly maskSlotId = "mask";
|
|
7439
7377
|
private adapter;
|
|
7440
7378
|
/** 占位符专用空 GeoJSON Source ID */
|
|
7441
7379
|
private readonly sourceId;
|
|
@@ -7444,12 +7382,7 @@ declare class PlaceholderManager {
|
|
|
7444
7382
|
* 初始化所有占位符图层(点、线、面、符号、遮罩)。
|
|
7445
7383
|
* 应在地图加载完成后、业务图层添加之前调用一次。
|
|
7446
7384
|
*/
|
|
7447
|
-
addLayer(
|
|
7448
|
-
beforeLayerPointId?: string;
|
|
7449
|
-
beforeLayerLineId?: string;
|
|
7450
|
-
beforeLayerFillId?: string;
|
|
7451
|
-
beforeMaskLayerId?: string;
|
|
7452
|
-
}): void;
|
|
7385
|
+
addLayer(): void;
|
|
7453
7386
|
}
|
|
7454
7387
|
|
|
7455
7388
|
/**
|
|
@@ -7898,7 +7831,7 @@ declare class TDTManager {
|
|
|
7898
7831
|
addVecLayer(sourceConfig?: any, beforeId?: string): void;
|
|
7899
7832
|
removeVecLayer(): void;
|
|
7900
7833
|
/** 添加天地图注记图层 */
|
|
7901
|
-
addCiaLayer(sourceConfig?: any,
|
|
7834
|
+
addCiaLayer(sourceConfig?: any, slotId?: string): void;
|
|
7902
7835
|
removeCiaLayer(): void;
|
|
7903
7836
|
/** 移除所有天地图图层 */
|
|
7904
7837
|
clear(): void;
|