@gis_victory/gismap 2.0.0 → 2.0.2
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/README.md +68 -0
- package/dist/assets/icons//347/251/272/347/275/256/345/216/202/346/210/277.png +0 -0
- package/dist/assets/icons//351/227/262/347/275/256/345/234/260/345/235/227.png +0 -0
- package/dist/gismap.css +1 -1
- package/dist/index.d.ts +252 -39
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +3 -1
- package/dist/assets/icons/arrow.png +0 -1
- package/dist/assets/icons/fh_bz.png +0 -0
- package/dist/assets/icons/fh_df.png +0 -0
- package/dist/assets/icons/fh_ht.png +0 -0
- package/dist/assets/icons/fh_sk.png +0 -0
- package/dist/assets/icons/fh_st.png +0 -0
- package/dist/assets/icons/fh_sz.png +0 -0
- package/dist/assets/icons/fh_yq.png +0 -0
- package/dist/assets/icons/fy_bfg.png +0 -0
- package/dist/assets/icons/fy_dwyld.png +0 -0
- package/dist/assets/icons/fy_dxkj.png +0 -0
- package/dist/assets/icons/fy_dzzhyhd_czd.png +0 -0
- package/dist/assets/icons/fy_dzzhyhd_yb.png +0 -0
- package/dist/assets/icons/fy_dzzhyhd_zd.png +0 -0
- package/dist/assets/icons/fy_jzgd.png +0 -0
- package/dist/assets/icons/fy_lyjq.png +0 -0
- package/dist/assets/icons/fy_shzhyfq_dw.png +0 -0
- package/dist/assets/icons/fy_shzhyfq_gw.png +0 -0
- package/dist/assets/icons/fy_shzhyfq_jd.png +0 -0
- package/dist/assets/icons/fy_whqy.png +0 -0
- package/dist/assets/icons/fy_wjf_c.png +0 -0
- package/dist/assets/icons/fy_wjf_d.png +0 -0
- package/dist/assets/icons/fy_xcsljq.png +0 -0
- package/dist/assets/icons/fy_xx.png +0 -0
- package/dist/assets/icons/fy_yly.png +0 -0
- package/dist/assets/icons/fy_yy.png +0 -0
- package/dist/assets/icons/fy_zrc.png +0 -0
- package/dist/assets/icons/jc_dzzhjcsb.png +0 -0
- package/dist/assets/icons/jc_jsjcsb.png +0 -0
- package/dist/assets/icons/jc_qxz.png +0 -0
- package/dist/assets/icons/jc_spjk.png +0 -0
- package/dist/assets/icons/jc_swcz.png +0 -0
- package/dist/assets/icons/jc_xdyjsb.png +0 -0
- package/dist/assets/icons/point.png +0 -0
- package/dist/assets/icons/xzq.png +0 -0
- package/dist/assets/icons/xzq_cwh_bzd.png +0 -0
- package/dist/assets/icons/xzq_cwh_bzd_wzck.png +0 -0
- package/dist/assets/icons/xzq_cwh_wzck.png +0 -0
- package/dist/assets/icons/xzq_cwh_yfxc.png +0 -0
- package/dist/assets/icons/xzq_sf.png +0 -0
- package/dist/assets/icons/xzq_shengzf.png +0 -0
- package/dist/assets/icons/xzq_szf.png +0 -0
- package/dist/assets/icons/xzq_xzf.png +0 -0
- package/dist/assets/icons/xzq_xzqh.png +0 -0
- package/dist/assets/icons/xzq_zrc.png +0 -0
- package/dist/assets/icons/xzqh.png +0 -0
- package/dist/assets/icons/yj_bzazcs.png +0 -0
- package/dist/assets/icons/yj_hkjyd.png +0 -0
- package/dist/assets/icons/yj_shjydw.png +0 -0
- package/dist/assets/icons/yj_yjjydw.png +0 -0
- package/dist/assets/icons/yj_yjwzck.png +0 -0
- package/dist/assets/legend/xzq_zrc.png +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -146,12 +146,12 @@ removeAll: () => void;
|
|
|
146
146
|
readonly markers: {
|
|
147
147
|
initialize: () => void;
|
|
148
148
|
dispose: () => void;
|
|
149
|
-
addMarker: (config:
|
|
149
|
+
addMarker: (config: MarkerConfig_2) => MarkerEntity;
|
|
150
150
|
removeMarker: (markerId: EntityId) => boolean;
|
|
151
151
|
getMarker: (markerId: EntityId) => MarkerEntity | undefined;
|
|
152
152
|
getMarkers: () => MarkerEntity[];
|
|
153
153
|
hasMarker: (markerId: EntityId) => boolean;
|
|
154
|
-
updateMarker: (markerId: EntityId, updates: Partial<
|
|
154
|
+
updateMarker: (markerId: EntityId, updates: Partial<MarkerConfig_2>) => MarkerEntity;
|
|
155
155
|
setPosition: (markerId: EntityId, position: [number, number]) => void;
|
|
156
156
|
moveMarker: (markerId: EntityId, position: [number, number], _animate?: boolean) => void;
|
|
157
157
|
showMarker: (markerId: EntityId) => void;
|
|
@@ -587,6 +587,7 @@ declare interface CoreMapEvents extends EventMap {
|
|
|
587
587
|
};
|
|
588
588
|
'layer:click': LayerClickPayload;
|
|
589
589
|
'layer:hover': LayerHoverPayload;
|
|
590
|
+
'layer:queryClick': LayerQueryClickPayload;
|
|
590
591
|
'marker:add': {
|
|
591
592
|
markerId: string;
|
|
592
593
|
position: [number, number];
|
|
@@ -1172,6 +1173,19 @@ readonly [Symbol.species]: ArrayConstructor;
|
|
|
1172
1173
|
};
|
|
1173
1174
|
default: () => never[];
|
|
1174
1175
|
};
|
|
1176
|
+
prefix: {
|
|
1177
|
+
type: StringConstructor;
|
|
1178
|
+
default: string;
|
|
1179
|
+
};
|
|
1180
|
+
activeTab: {
|
|
1181
|
+
type: () => "layers" | "selected" | "favorites" | "recent";
|
|
1182
|
+
default: string;
|
|
1183
|
+
};
|
|
1184
|
+
toggleFavorite: {
|
|
1185
|
+
required: true;
|
|
1186
|
+
type: FunctionConstructor;
|
|
1187
|
+
default: undefined;
|
|
1188
|
+
};
|
|
1175
1189
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1176
1190
|
title: {
|
|
1177
1191
|
type: StringConstructor;
|
|
@@ -1198,11 +1212,105 @@ readonly [Symbol.species]: ArrayConstructor;
|
|
|
1198
1212
|
};
|
|
1199
1213
|
default: () => never[];
|
|
1200
1214
|
};
|
|
1215
|
+
prefix: {
|
|
1216
|
+
type: StringConstructor;
|
|
1217
|
+
default: string;
|
|
1218
|
+
};
|
|
1219
|
+
activeTab: {
|
|
1220
|
+
type: () => "layers" | "selected" | "favorites" | "recent";
|
|
1221
|
+
default: string;
|
|
1222
|
+
};
|
|
1223
|
+
toggleFavorite: {
|
|
1224
|
+
required: true;
|
|
1225
|
+
type: FunctionConstructor;
|
|
1226
|
+
default: undefined;
|
|
1227
|
+
};
|
|
1201
1228
|
}>> & Readonly<{}>, {
|
|
1202
1229
|
data: any[];
|
|
1203
1230
|
title: string;
|
|
1231
|
+
prefix: string;
|
|
1232
|
+
toggleFavorite: Function;
|
|
1204
1233
|
maxHeight: number;
|
|
1234
|
+
activeTab: "layers" | "selected" | "favorites" | "recent";
|
|
1205
1235
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1236
|
+
layerTabRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
1237
|
+
prefix: {
|
|
1238
|
+
type: StringConstructor;
|
|
1239
|
+
default: string;
|
|
1240
|
+
};
|
|
1241
|
+
data: {
|
|
1242
|
+
type: {
|
|
1243
|
+
(arrayLength: number): any[];
|
|
1244
|
+
(...items: any[]): any[];
|
|
1245
|
+
new (arrayLength: number): any[];
|
|
1246
|
+
new (...items: any[]): any[];
|
|
1247
|
+
isArray(arg: any): arg is any[];
|
|
1248
|
+
readonly prototype: any[];
|
|
1249
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
1250
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
1251
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
1252
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
1253
|
+
of<T>(...items: T[]): T[];
|
|
1254
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
1255
|
+
};
|
|
1256
|
+
default: () => never[];
|
|
1257
|
+
};
|
|
1258
|
+
expandKeys: {
|
|
1259
|
+
type: {
|
|
1260
|
+
(arrayLength: number): string[];
|
|
1261
|
+
(...items: string[]): string[];
|
|
1262
|
+
new (arrayLength: number): string[];
|
|
1263
|
+
new (...items: string[]): string[];
|
|
1264
|
+
isArray(arg: any): arg is any[];
|
|
1265
|
+
readonly prototype: any[];
|
|
1266
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
1267
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
1268
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
1269
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
1270
|
+
of<T>(...items: T[]): T[];
|
|
1271
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
1272
|
+
};
|
|
1273
|
+
default: () => never[];
|
|
1274
|
+
};
|
|
1275
|
+
checkedKeys: {
|
|
1276
|
+
type: {
|
|
1277
|
+
(arrayLength: number): string[];
|
|
1278
|
+
(...items: string[]): string[];
|
|
1279
|
+
new (arrayLength: number): string[];
|
|
1280
|
+
new (...items: string[]): string[];
|
|
1281
|
+
isArray(arg: any): arg is any[];
|
|
1282
|
+
readonly prototype: any[];
|
|
1283
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
1284
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
1285
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
1286
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
1287
|
+
of<T>(...items: T[]): T[];
|
|
1288
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
1289
|
+
};
|
|
1290
|
+
default: () => never[];
|
|
1291
|
+
};
|
|
1292
|
+
filterText: {
|
|
1293
|
+
type: StringConstructor;
|
|
1294
|
+
default: string;
|
|
1295
|
+
};
|
|
1296
|
+
}>> & Readonly<{
|
|
1297
|
+
onCheck?: ((...args: any[]) => any) | undefined;
|
|
1298
|
+
onToggleFavorite?: ((...args: any[]) => any) | undefined;
|
|
1299
|
+
onDeleteCustomLayer?: ((...args: any[]) => any) | undefined;
|
|
1300
|
+
}>, {
|
|
1301
|
+
filter: (value: string) => void;
|
|
1302
|
+
setCheckedKeys: (keys: string[]) => void;
|
|
1303
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1304
|
+
check: (...args: any[]) => void;
|
|
1305
|
+
toggleFavorite: (...args: any[]) => void;
|
|
1306
|
+
deleteCustomLayer: (...args: any[]) => void;
|
|
1307
|
+
}, PublicProps, {
|
|
1308
|
+
data: any[];
|
|
1309
|
+
prefix: string;
|
|
1310
|
+
expandKeys: string[];
|
|
1311
|
+
checkedKeys: string[];
|
|
1312
|
+
filterText: string;
|
|
1313
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1206
1314
|
treeRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
1207
1315
|
readonly data: EpPropFinalized<(new (...args: any[]) => TreeData) | (() => TreeData) | (((new (...args: any[]) => TreeData) | (() => TreeData)) | null)[], unknown, unknown, () => never[], boolean>;
|
|
1208
1316
|
readonly emptyText: {
|
|
@@ -1735,7 +1843,8 @@ updateLeafState: () => void;
|
|
|
1735
1843
|
setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
1736
1844
|
getChildren: (forceInit?: boolean) => TreeNodeData | TreeNodeData[] | null;
|
|
1737
1845
|
updateChildren: () => void;
|
|
1738
|
-
loadData: (callback: (data
|
|
1846
|
+
loadData: (callback: (data
|
|
1847
|
+
/** @type { [typeof __VLS_components.Search, ] } */ ? /** @type { [typeof __VLS_components.Search, ] } */: TreeNodeData[]) => void, defaultProps?: TreeNodeLoadedDefaultProps) => void;
|
|
1739
1848
|
eachNode: (callback: (node: Node_2) => void) => void;
|
|
1740
1849
|
reInitChecked: () => void;
|
|
1741
1850
|
} | null, Node_2 | {
|
|
@@ -2941,7 +3050,8 @@ updateLeafState: () => void;
|
|
|
2941
3050
|
setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
2942
3051
|
getChildren: (forceInit?: boolean) => TreeNodeData | TreeNodeData[] | null;
|
|
2943
3052
|
updateChildren: () => void;
|
|
2944
|
-
loadData: (callback: (data
|
|
3053
|
+
loadData: (callback: (data
|
|
3054
|
+
/** @type { [typeof __VLS_components.Search, ] } */ ? /** @type { [typeof __VLS_components.Search, ] } */: TreeNodeData[]) => void, defaultProps?: TreeNodeLoadedDefaultProps) => void;
|
|
2945
3055
|
eachNode: (callback: (node: Node_2) => void) => void;
|
|
2946
3056
|
reInitChecked: () => void;
|
|
2947
3057
|
} | null, Node_2 | {
|
|
@@ -3239,6 +3349,87 @@ readonly autoExpandParent: EpPropMergeType<BooleanConstructor, unknown, unknown>
|
|
|
3239
3349
|
readonly checkDescendants: boolean;
|
|
3240
3350
|
readonly highlightCurrent: boolean;
|
|
3241
3351
|
}> | null;
|
|
3352
|
+
}, any, ComponentProvideOptions, {
|
|
3353
|
+
P: {};
|
|
3354
|
+
B: {};
|
|
3355
|
+
D: {};
|
|
3356
|
+
C: {};
|
|
3357
|
+
M: {};
|
|
3358
|
+
Defaults: {};
|
|
3359
|
+
}, Readonly<ExtractPropTypes< {
|
|
3360
|
+
prefix: {
|
|
3361
|
+
type: StringConstructor;
|
|
3362
|
+
default: string;
|
|
3363
|
+
};
|
|
3364
|
+
data: {
|
|
3365
|
+
type: {
|
|
3366
|
+
(arrayLength: number): any[];
|
|
3367
|
+
(...items: any[]): any[];
|
|
3368
|
+
new (arrayLength: number): any[];
|
|
3369
|
+
new (...items: any[]): any[];
|
|
3370
|
+
isArray(arg: any): arg is any[];
|
|
3371
|
+
readonly prototype: any[];
|
|
3372
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3373
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3374
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3375
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3376
|
+
of<T>(...items: T[]): T[];
|
|
3377
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
3378
|
+
};
|
|
3379
|
+
default: () => never[];
|
|
3380
|
+
};
|
|
3381
|
+
expandKeys: {
|
|
3382
|
+
type: {
|
|
3383
|
+
(arrayLength: number): string[];
|
|
3384
|
+
(...items: string[]): string[];
|
|
3385
|
+
new (arrayLength: number): string[];
|
|
3386
|
+
new (...items: string[]): string[];
|
|
3387
|
+
isArray(arg: any): arg is any[];
|
|
3388
|
+
readonly prototype: any[];
|
|
3389
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3390
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3391
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3392
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3393
|
+
of<T>(...items: T[]): T[];
|
|
3394
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
3395
|
+
};
|
|
3396
|
+
default: () => never[];
|
|
3397
|
+
};
|
|
3398
|
+
checkedKeys: {
|
|
3399
|
+
type: {
|
|
3400
|
+
(arrayLength: number): string[];
|
|
3401
|
+
(...items: string[]): string[];
|
|
3402
|
+
new (arrayLength: number): string[];
|
|
3403
|
+
new (...items: string[]): string[];
|
|
3404
|
+
isArray(arg: any): arg is any[];
|
|
3405
|
+
readonly prototype: any[];
|
|
3406
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3407
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3408
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3409
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3410
|
+
of<T>(...items: T[]): T[];
|
|
3411
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
3412
|
+
};
|
|
3413
|
+
default: () => never[];
|
|
3414
|
+
};
|
|
3415
|
+
filterText: {
|
|
3416
|
+
type: StringConstructor;
|
|
3417
|
+
default: string;
|
|
3418
|
+
};
|
|
3419
|
+
}>> & Readonly<{
|
|
3420
|
+
onCheck?: ((...args: any[]) => any) | undefined;
|
|
3421
|
+
onToggleFavorite?: ((...args: any[]) => any) | undefined;
|
|
3422
|
+
onDeleteCustomLayer?: ((...args: any[]) => any) | undefined;
|
|
3423
|
+
}>, {
|
|
3424
|
+
filter: (value: string) => void;
|
|
3425
|
+
setCheckedKeys: (keys: string[]) => void;
|
|
3426
|
+
}, {}, {}, {}, {
|
|
3427
|
+
data: any[];
|
|
3428
|
+
prefix: string;
|
|
3429
|
+
expandKeys: string[];
|
|
3430
|
+
checkedKeys: string[];
|
|
3431
|
+
filterText: string;
|
|
3432
|
+
}> | null;
|
|
3242
3433
|
}, HTMLDivElement>;
|
|
3243
3434
|
|
|
3244
3435
|
export declare const GisMapLegend: DefineComponent<ExtractPropTypes< {
|
|
@@ -3306,6 +3497,10 @@ float: string;
|
|
|
3306
3497
|
}>;
|
|
3307
3498
|
|
|
3308
3499
|
export declare const GisMapPopupBarItem: __VLS_WithTemplateSlots_4<DefineComponent<ExtractPropTypes< {
|
|
3500
|
+
text: {
|
|
3501
|
+
type: StringConstructor;
|
|
3502
|
+
default: string;
|
|
3503
|
+
};
|
|
3309
3504
|
iconName: {
|
|
3310
3505
|
type: StringConstructor;
|
|
3311
3506
|
default: string;
|
|
@@ -3327,6 +3522,10 @@ type: NumberConstructor;
|
|
|
3327
3522
|
default: number;
|
|
3328
3523
|
};
|
|
3329
3524
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3525
|
+
text: {
|
|
3526
|
+
type: StringConstructor;
|
|
3527
|
+
default: string;
|
|
3528
|
+
};
|
|
3330
3529
|
iconName: {
|
|
3331
3530
|
type: StringConstructor;
|
|
3332
3531
|
default: string;
|
|
@@ -3350,9 +3549,10 @@ default: number;
|
|
|
3350
3549
|
}>> & Readonly<{}>, {
|
|
3351
3550
|
visible: boolean;
|
|
3352
3551
|
iconName: string;
|
|
3552
|
+
text: string;
|
|
3353
3553
|
width: number;
|
|
3354
|
-
trigger: string;
|
|
3355
3554
|
placement: string;
|
|
3555
|
+
trigger: string;
|
|
3356
3556
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
3357
3557
|
btn?(_: {}): any;
|
|
3358
3558
|
default?(_: {}): any;
|
|
@@ -3916,7 +4116,7 @@ export declare interface LayerAddEvent extends LayerEvent {
|
|
|
3916
4116
|
}
|
|
3917
4117
|
|
|
3918
4118
|
/** 图层添加载荷 */
|
|
3919
|
-
declare interface LayerAddPayload {
|
|
4119
|
+
export declare interface LayerAddPayload {
|
|
3920
4120
|
layerId: string;
|
|
3921
4121
|
type: string;
|
|
3922
4122
|
source?: any;
|
|
@@ -3931,7 +4131,7 @@ export declare interface LayerClickEvent extends LayerEvent {
|
|
|
3931
4131
|
}
|
|
3932
4132
|
|
|
3933
4133
|
/** 图层点击载荷 */
|
|
3934
|
-
declare interface LayerClickPayload {
|
|
4134
|
+
export declare interface LayerClickPayload {
|
|
3935
4135
|
layerId: string;
|
|
3936
4136
|
feature: any;
|
|
3937
4137
|
coordinates: [number, number];
|
|
@@ -4043,7 +4243,7 @@ export declare interface LayerHoverEvent extends LayerEvent {
|
|
|
4043
4243
|
}
|
|
4044
4244
|
|
|
4045
4245
|
/** 图层悬停载荷 */
|
|
4046
|
-
declare interface LayerHoverPayload {
|
|
4246
|
+
export declare interface LayerHoverPayload {
|
|
4047
4247
|
layerId: string;
|
|
4048
4248
|
feature: any | null;
|
|
4049
4249
|
coordinates: [number, number] | null;
|
|
@@ -4068,6 +4268,7 @@ export declare interface LayerLayout {
|
|
|
4068
4268
|
*/
|
|
4069
4269
|
export declare class LayerManager extends BaseManager {
|
|
4070
4270
|
private adapter;
|
|
4271
|
+
private eventBus?;
|
|
4071
4272
|
private checkedParentLayers;
|
|
4072
4273
|
private checkedLayers;
|
|
4073
4274
|
queryLayerIds: string[];
|
|
@@ -4075,7 +4276,7 @@ export declare class LayerManager extends BaseManager {
|
|
|
4075
4276
|
private pointLayerIds;
|
|
4076
4277
|
private lineLayerIds;
|
|
4077
4278
|
private polygonLayerIds;
|
|
4078
|
-
constructor(adapter: VectorTileAdapter);
|
|
4279
|
+
constructor(adapter: VectorTileAdapter, eventBus?: IEventBus<CoreMapEvents>);
|
|
4079
4280
|
/**
|
|
4080
4281
|
* 初始化管理器
|
|
4081
4282
|
*/
|
|
@@ -4126,6 +4327,16 @@ export declare interface LayerPaint {
|
|
|
4126
4327
|
'text-halo-width'?: number;
|
|
4127
4328
|
}
|
|
4128
4329
|
|
|
4330
|
+
/** 图层查询点击载荷 */
|
|
4331
|
+
export declare interface LayerQueryClickPayload {
|
|
4332
|
+
layerId: string;
|
|
4333
|
+
templateId: string;
|
|
4334
|
+
center: [number, number];
|
|
4335
|
+
feature: any;
|
|
4336
|
+
features: any[];
|
|
4337
|
+
dataExtension: any;
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4129
4340
|
export declare interface LayerRemoveEvent extends LayerEvent {
|
|
4130
4341
|
}
|
|
4131
4342
|
|
|
@@ -4484,7 +4695,7 @@ declare interface MapClickEvent {
|
|
|
4484
4695
|
/** 地图上下文
|
|
4485
4696
|
* 协调地图所有子系统,提供对地图能力的统一访问入口
|
|
4486
4697
|
*/
|
|
4487
|
-
declare class MapContext {
|
|
4698
|
+
export declare class MapContext {
|
|
4488
4699
|
readonly adapter: MapAdapter;
|
|
4489
4700
|
readonly events: IEventBus<CoreMapEvents>;
|
|
4490
4701
|
readonly state: IStateStore_2<MapState_2>;
|
|
@@ -4614,7 +4825,7 @@ declare class MapContext {
|
|
|
4614
4825
|
}
|
|
4615
4826
|
|
|
4616
4827
|
/** 地图上下文配置 */
|
|
4617
|
-
declare interface MapContextConfig {
|
|
4828
|
+
export declare interface MapContextConfig {
|
|
4618
4829
|
/** 地图适配器 */
|
|
4619
4830
|
adapter: MapAdapter;
|
|
4620
4831
|
/** 事件总线 */
|
|
@@ -4827,22 +5038,8 @@ export declare interface MarkerConfig {
|
|
|
4827
5038
|
popup?: PopupConfig;
|
|
4828
5039
|
}
|
|
4829
5040
|
|
|
4830
|
-
/**
|
|
4831
|
-
* 标记图层配置
|
|
4832
|
-
*/
|
|
4833
|
-
declare interface MarkerConfig_2 {
|
|
4834
|
-
/** 标记ID */
|
|
4835
|
-
id: string;
|
|
4836
|
-
/** 标记位置 [lng, lat] */
|
|
4837
|
-
lngLat: LngLatLike;
|
|
4838
|
-
/** 标记选项 */
|
|
4839
|
-
options?: MarkerOptions;
|
|
4840
|
-
/** 自定义DOM元素 */
|
|
4841
|
-
element?: HTMLElement;
|
|
4842
|
-
}
|
|
4843
|
-
|
|
4844
5041
|
/** 标记配置 */
|
|
4845
|
-
declare interface
|
|
5042
|
+
declare interface MarkerConfig_2 {
|
|
4846
5043
|
id?: EntityId;
|
|
4847
5044
|
position: GeoCoordinate | [number, number] | LngLat;
|
|
4848
5045
|
element?: HTMLElement;
|
|
@@ -4862,8 +5059,22 @@ declare interface MarkerConfig_3 {
|
|
|
4862
5059
|
metadata?: Record<string, any>;
|
|
4863
5060
|
}
|
|
4864
5061
|
|
|
5062
|
+
/**
|
|
5063
|
+
* 标记图层配置
|
|
5064
|
+
*/
|
|
5065
|
+
declare interface MarkerConfig_3 {
|
|
5066
|
+
/** 标记ID */
|
|
5067
|
+
id: string;
|
|
5068
|
+
/** 标记位置 [lng, lat] */
|
|
5069
|
+
lngLat: LngLatLike;
|
|
5070
|
+
/** 标记选项 */
|
|
5071
|
+
options?: MarkerOptions;
|
|
5072
|
+
/** 自定义DOM元素 */
|
|
5073
|
+
element?: HTMLElement;
|
|
5074
|
+
}
|
|
5075
|
+
|
|
4865
5076
|
/** 标记实体 */
|
|
4866
|
-
declare class MarkerEntity implements IEntity, IVisible, IConfigurable<
|
|
5077
|
+
declare class MarkerEntity implements IEntity, IVisible, IConfigurable<MarkerConfig_2> {
|
|
4867
5078
|
readonly id: EntityId;
|
|
4868
5079
|
private _position;
|
|
4869
5080
|
private _visible;
|
|
@@ -4873,7 +5084,7 @@ declare class MarkerEntity implements IEntity, IVisible, IConfigurable<MarkerCon
|
|
|
4873
5084
|
private _popup?;
|
|
4874
5085
|
private _popupVisible;
|
|
4875
5086
|
private _metadata;
|
|
4876
|
-
constructor(config:
|
|
5087
|
+
constructor(config: MarkerConfig_2);
|
|
4877
5088
|
get position(): GeoCoordinate;
|
|
4878
5089
|
setPosition(position: GeoCoordinate | [number, number] | LngLat): void;
|
|
4879
5090
|
get lngLat(): [number, number];
|
|
@@ -4892,8 +5103,8 @@ declare class MarkerEntity implements IEntity, IVisible, IConfigurable<MarkerCon
|
|
|
4892
5103
|
openPopup(): void;
|
|
4893
5104
|
closePopup(): void;
|
|
4894
5105
|
togglePopup(): boolean;
|
|
4895
|
-
get config():
|
|
4896
|
-
updateConfig(updates: Partial<
|
|
5106
|
+
get config(): MarkerConfig_2;
|
|
5107
|
+
updateConfig(updates: Partial<MarkerConfig_2>): void;
|
|
4897
5108
|
setMetadata(key: string, value: any): void;
|
|
4898
5109
|
getMetadata(key: string): any;
|
|
4899
5110
|
toJSON(): Record<string, any>;
|
|
@@ -4935,7 +5146,7 @@ export declare class MarkerLayer {
|
|
|
4935
5146
|
* 添加单个标记
|
|
4936
5147
|
* @param config 标记配置
|
|
4937
5148
|
*/
|
|
4938
|
-
add(config:
|
|
5149
|
+
add(config: MarkerConfig_3): void;
|
|
4939
5150
|
/**
|
|
4940
5151
|
* 批量添加标记
|
|
4941
5152
|
* @param config 标记组配置
|
|
@@ -5010,7 +5221,7 @@ declare class MarkerService implements IDomainService {
|
|
|
5010
5221
|
/**
|
|
5011
5222
|
* 添加标记
|
|
5012
5223
|
*/
|
|
5013
|
-
addMarker(config:
|
|
5224
|
+
addMarker(config: MarkerConfig_2): MarkerEntity;
|
|
5014
5225
|
/**
|
|
5015
5226
|
* 移除标记
|
|
5016
5227
|
*/
|
|
@@ -5030,7 +5241,7 @@ declare class MarkerService implements IDomainService {
|
|
|
5030
5241
|
/**
|
|
5031
5242
|
* 更新标记
|
|
5032
5243
|
*/
|
|
5033
|
-
updateMarker(markerId: EntityId, updates: Partial<
|
|
5244
|
+
updateMarker(markerId: EntityId, updates: Partial<MarkerConfig_2>): MarkerEntity;
|
|
5034
5245
|
/**
|
|
5035
5246
|
* 设置标记位置
|
|
5036
5247
|
*/
|
|
@@ -5680,7 +5891,7 @@ export declare class StateStore implements IStateStore {
|
|
|
5680
5891
|
export declare type StateSubscriber = (mutation: StateMutation, state: MapState) => void;
|
|
5681
5892
|
|
|
5682
5893
|
/** 叠加图层切换载荷 */
|
|
5683
|
-
declare interface SwitchClickPayload {
|
|
5894
|
+
export declare interface SwitchClickPayload {
|
|
5684
5895
|
/** 是否选中 */
|
|
5685
5896
|
checked: boolean;
|
|
5686
5897
|
/** 原始数据 */
|
|
@@ -5688,7 +5899,7 @@ declare interface SwitchClickPayload {
|
|
|
5688
5899
|
}
|
|
5689
5900
|
|
|
5690
5901
|
/** 底图图层切换载荷(MapSwitch / MobileBaseLayerSwitch 触发) */
|
|
5691
|
-
declare interface SwitchLayerPayload {
|
|
5902
|
+
export declare interface SwitchLayerPayload {
|
|
5692
5903
|
/** 图层名称标识 */
|
|
5693
5904
|
name: string;
|
|
5694
5905
|
/** 图层标签 */
|
|
@@ -5741,7 +5952,7 @@ export declare interface TemplateConfig {
|
|
|
5741
5952
|
}
|
|
5742
5953
|
|
|
5743
5954
|
/** 模板查询载荷(MapSearch 触发,业务层监听后调用 callback 回填配置) */
|
|
5744
|
-
declare interface TemplateGetPayload {
|
|
5955
|
+
export declare interface TemplateGetPayload {
|
|
5745
5956
|
/** 模板 ID */
|
|
5746
5957
|
templateId: string;
|
|
5747
5958
|
/** 回调:业务层取到配置后调用此函数将配置传回 */
|
|
@@ -5918,6 +6129,8 @@ export declare function useControl(): {
|
|
|
5918
6129
|
terrain: Ref<TerrainManager | null, TerrainManager | null>;
|
|
5919
6130
|
/** 占位符管理器 */
|
|
5920
6131
|
placeholder: Ref<PlaceholderManager | null, PlaceholderManager | null>;
|
|
6132
|
+
/** 图层管理器 */
|
|
6133
|
+
layer: Ref<LayerManager | null, LayerManager | null>;
|
|
5921
6134
|
/** 原始地图上下文 Ref */
|
|
5922
6135
|
context: Ref<MapContext | null, MapContext | null>;
|
|
5923
6136
|
};
|
|
@@ -6066,7 +6279,7 @@ export declare function useMarker(markerId: MaybeRefOrGetter<EntityId>): {
|
|
|
6066
6279
|
};
|
|
6067
6280
|
|
|
6068
6281
|
/** 创建并管理标记 */
|
|
6069
|
-
export declare function useMarkerManager(config: MaybeRefOrGetter<
|
|
6282
|
+
export declare function useMarkerManager(config: MaybeRefOrGetter<MarkerConfig_2>, options?: UseMarkerOptions): {
|
|
6070
6283
|
markerId: Readonly<Ref<string | null, string | null>>;
|
|
6071
6284
|
isAdded: Readonly<Ref<boolean, boolean>>;
|
|
6072
6285
|
marker: ComputedRef<MarkerEntity | undefined>;
|
|
@@ -6092,7 +6305,7 @@ export declare function useMarkers(): {
|
|
|
6092
6305
|
markerStates: any;
|
|
6093
6306
|
visibleMarkers: ComputedRef<any>;
|
|
6094
6307
|
count: ComputedRef<any>;
|
|
6095
|
-
addMarker: (config:
|
|
6308
|
+
addMarker: (config: MarkerConfig_2) => any;
|
|
6096
6309
|
removeMarker: (markerId: EntityId) => any;
|
|
6097
6310
|
removeAll: () => void;
|
|
6098
6311
|
showAll: () => void;
|
|
@@ -6241,7 +6454,7 @@ export declare interface ViewChangeEvent {
|
|
|
6241
6454
|
}
|
|
6242
6455
|
|
|
6243
6456
|
/** 视图变化载荷 */
|
|
6244
|
-
declare interface ViewChangePayload {
|
|
6457
|
+
export declare interface ViewChangePayload {
|
|
6245
6458
|
center: [number, number];
|
|
6246
6459
|
zoom: number;
|
|
6247
6460
|
pitch: number;
|