@gis_victory/gismap 2.0.69 → 2.0.71
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 +69 -4
- 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
|
@@ -440,6 +440,47 @@ declare type __VLS_Props = {
|
|
|
440
440
|
showToggle?: boolean;
|
|
441
441
|
};
|
|
442
442
|
|
|
443
|
+
declare type __VLS_Props_2 = {
|
|
444
|
+
/**
|
|
445
|
+
* 导入图层的基础样式
|
|
446
|
+
*/
|
|
447
|
+
layerStyle?: {
|
|
448
|
+
/**
|
|
449
|
+
* 点样式
|
|
450
|
+
*/
|
|
451
|
+
point?: {
|
|
452
|
+
color?: string;
|
|
453
|
+
size?: number;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* 线样式
|
|
457
|
+
*/
|
|
458
|
+
line?: {
|
|
459
|
+
color?: string;
|
|
460
|
+
width?: number;
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* 面样式
|
|
464
|
+
*/
|
|
465
|
+
polygon?: {
|
|
466
|
+
fillColor?: string;
|
|
467
|
+
fillOpacity?: number;
|
|
468
|
+
strokeColor?: string;
|
|
469
|
+
strokeWidth?: number;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* 源坐标系(默认WGS84经纬度)
|
|
474
|
+
* 支持格式:EPSG:4326(WGS84经纬度), EPSG:3857(Web墨卡托), EPSG:4490(CGCS2000), EPSG:4528(CGCS2000 3度带)
|
|
475
|
+
* 也支持自定义投影字符串
|
|
476
|
+
*/
|
|
477
|
+
sourceCrs?: string;
|
|
478
|
+
/**
|
|
479
|
+
* 目标坐标系(默认WGS84经纬度)
|
|
480
|
+
*/
|
|
481
|
+
targetCrs?: string;
|
|
482
|
+
};
|
|
483
|
+
|
|
443
484
|
declare function __VLS_template(): {
|
|
444
485
|
attrs: Partial<{}>;
|
|
445
486
|
slots: {
|
|
@@ -1329,6 +1370,32 @@ export declare interface GISMapFactory {
|
|
|
1329
1370
|
getDefaultOptions(): GISMapOptions;
|
|
1330
1371
|
}
|
|
1331
1372
|
|
|
1373
|
+
export declare const GisMapFileImport: DefineComponent<__VLS_Props_2, {
|
|
1374
|
+
clearAll: () => void;
|
|
1375
|
+
importedLayerIds: Ref<string[], string[]>;
|
|
1376
|
+
importedSourceIds: Ref<string[], string[]>;
|
|
1377
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1378
|
+
clear: () => any;
|
|
1379
|
+
"import-success": (data: {
|
|
1380
|
+
geojson: GeoJSON.FeatureCollection;
|
|
1381
|
+
wkt: string[];
|
|
1382
|
+
fileName: string;
|
|
1383
|
+
fileType: string;
|
|
1384
|
+
}) => any;
|
|
1385
|
+
"import-error": (error: Error) => any;
|
|
1386
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
1387
|
+
onClear?: (() => any) | undefined;
|
|
1388
|
+
"onImport-success"?: ((data: {
|
|
1389
|
+
geojson: GeoJSON.FeatureCollection;
|
|
1390
|
+
wkt: string[];
|
|
1391
|
+
fileName: string;
|
|
1392
|
+
fileType: string;
|
|
1393
|
+
}) => any) | undefined;
|
|
1394
|
+
"onImport-error"?: ((error: Error) => any) | undefined;
|
|
1395
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1396
|
+
fileInput: HTMLInputElement;
|
|
1397
|
+
}, HTMLDivElement>;
|
|
1398
|
+
|
|
1332
1399
|
/**
|
|
1333
1400
|
* GISMap 完整配置
|
|
1334
1401
|
*/
|
|
@@ -2220,8 +2287,7 @@ children?: string | undefined;
|
|
|
2220
2287
|
label?: string | ((data: TreeNodeData, node: default_2) => string) | undefined;
|
|
2221
2288
|
disabled?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
2222
2289
|
isLeaf?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
2223
|
-
class
|
|
2224
|
-
/** @type { typeof __VLS_ctx.layerTabRef } */ ?: ((data: TreeNodeData, node: default_2) => string | {
|
|
2290
|
+
class?: ((data: TreeNodeData, node: default_2) => string | {
|
|
2225
2291
|
[key: string]: boolean;
|
|
2226
2292
|
}) | undefined;
|
|
2227
2293
|
};
|
|
@@ -3859,8 +3925,7 @@ children?: string | undefined;
|
|
|
3859
3925
|
label?: string | ((data: TreeNodeData, node: default_2) => string) | undefined;
|
|
3860
3926
|
disabled?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
3861
3927
|
isLeaf?: string | ((data: TreeNodeData, node: default_2) => boolean) | undefined;
|
|
3862
|
-
class
|
|
3863
|
-
/** @type { typeof __VLS_ctx.layerTabRef } */ ?: ((data: TreeNodeData, node: default_2) => string | {
|
|
3928
|
+
class?: ((data: TreeNodeData, node: default_2) => string | {
|
|
3864
3929
|
[key: string]: boolean;
|
|
3865
3930
|
}) | undefined;
|
|
3866
3931
|
};
|