@gis_victory/gismap 2.0.40 → 2.0.41
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 +602 -125
- package/dist/index.es.js +12 -1
- package/dist/index.umd.js +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ import { Node as Node_2 } from 'element-plus/es/components/tree/src/model/node.m
|
|
|
38
38
|
import { NodeDropType } from 'element-plus';
|
|
39
39
|
import { Nullable } from 'element-plus';
|
|
40
40
|
import { ObjectPlugin } from 'vue';
|
|
41
|
+
import { PopupPosition } from 'vant';
|
|
41
42
|
import { PropType } from 'vue';
|
|
42
43
|
import { PublicProps } from 'vue';
|
|
43
44
|
import { Ref } from 'vue';
|
|
@@ -61,12 +62,18 @@ declare const __VLS_component: DefineComponent<Props, {
|
|
|
61
62
|
context: () => {
|
|
62
63
|
readonly adapter: {
|
|
63
64
|
getMap: () => any;
|
|
65
|
+
getIsMobile: () => boolean;
|
|
64
66
|
initialize: (container: HTMLElement, options: MapInitOptions) => Promise<void>;
|
|
65
67
|
dispose: () => void;
|
|
66
68
|
setView: (center: [number, number], zoom: number, options?: ViewOptions) => void;
|
|
67
69
|
flyTo: (center: [number, number], options?: FlyToOptions) => void;
|
|
68
70
|
fitBounds: (bounds: [[number, number], [number, number]], options?: FitBoundsOptions) => void;
|
|
69
71
|
getViewState: () => MapViewState;
|
|
72
|
+
getZoom: () => number;
|
|
73
|
+
setZoom: (zoom: number) => void;
|
|
74
|
+
zoomTo: (zoom: number) => void;
|
|
75
|
+
zoomIn: () => void;
|
|
76
|
+
zoomOut: () => void;
|
|
70
77
|
addMarker: (id: string, options: MarkerOptions) => any;
|
|
71
78
|
removeMarker: (id: string) => void;
|
|
72
79
|
updateMarkerPosition: (id: string, position: [number, number]) => void;
|
|
@@ -125,6 +132,7 @@ mercatorDecimal?: number | undefined;
|
|
|
125
132
|
distanceUnit?: DistanceUnit | undefined;
|
|
126
133
|
areaUnit?: AreaUnit | undefined;
|
|
127
134
|
} | undefined;
|
|
135
|
+
readonly isMobile: boolean;
|
|
128
136
|
readonly layers: {
|
|
129
137
|
initialize: () => void;
|
|
130
138
|
dispose: () => void;
|
|
@@ -284,6 +292,24 @@ enable: () => void;
|
|
|
284
292
|
disable: () => void;
|
|
285
293
|
reset: () => void;
|
|
286
294
|
} | undefined;
|
|
295
|
+
readonly queryLayerManager: {
|
|
296
|
+
bringToTop: () => void;
|
|
297
|
+
setFeatures: (features: GeoJSON.Feature[]) => void;
|
|
298
|
+
addFeatures: (features: GeoJSON.Feature[]) => void;
|
|
299
|
+
clear: () => void;
|
|
300
|
+
getPointLayerId: () => string;
|
|
301
|
+
getLineLayerId: () => string;
|
|
302
|
+
getPolygonLayerId: () => string;
|
|
303
|
+
getSourceId: () => string;
|
|
304
|
+
readonly name: string;
|
|
305
|
+
readonly isInitialized: boolean;
|
|
306
|
+
readonly isEnabled: boolean;
|
|
307
|
+
initialize: () => void;
|
|
308
|
+
dispose: () => void;
|
|
309
|
+
enable: () => void;
|
|
310
|
+
disable: () => void;
|
|
311
|
+
reset: () => void;
|
|
312
|
+
} | undefined;
|
|
287
313
|
readonly templateManager: {
|
|
288
314
|
initialize: (templateItems: TemplateItem[]) => void;
|
|
289
315
|
getTemplate: (templateId: string) => TemplateItem | undefined;
|
|
@@ -332,6 +358,12 @@ fitBounds: (bounds: [[number, number], [number, number]], options?: {
|
|
|
332
358
|
padding?: number;
|
|
333
359
|
}) => void;
|
|
334
360
|
getViewState: () => ViewState_2;
|
|
361
|
+
getZoom: () => number;
|
|
362
|
+
setZoom: (zoom: number) => void;
|
|
363
|
+
zoomTo: (zoom: number) => void;
|
|
364
|
+
zoomIn: () => void;
|
|
365
|
+
zoomOut: () => void;
|
|
366
|
+
getInitialViewState: () => ViewState_2 | null;
|
|
335
367
|
readonly isReady: boolean;
|
|
336
368
|
on: <K extends keyof CoreMapEvents>(event: K, handler: (payload: CoreMapEvents[K]) => void) => () => void;
|
|
337
369
|
once: <K extends keyof CoreMapEvents>(event: K, handler: (payload: CoreMapEvents[K]) => void) => () => void;
|
|
@@ -395,6 +427,12 @@ default: undefined;
|
|
|
395
427
|
downloadUrl: Function;
|
|
396
428
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
397
429
|
|
|
430
|
+
declare type __VLS_Props = {
|
|
431
|
+
data?: ToolGroup[];
|
|
432
|
+
defaultCollapsed?: boolean;
|
|
433
|
+
showToggle?: boolean;
|
|
434
|
+
};
|
|
435
|
+
|
|
398
436
|
declare function __VLS_template(): {
|
|
399
437
|
attrs: Partial<{}>;
|
|
400
438
|
slots: {
|
|
@@ -430,6 +468,12 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
430
468
|
};
|
|
431
469
|
};
|
|
432
470
|
|
|
471
|
+
declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
472
|
+
new (): {
|
|
473
|
+
$slots: S;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
|
|
433
477
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
434
478
|
new (): {
|
|
435
479
|
$slots: S;
|
|
@@ -466,6 +510,18 @@ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
|
466
510
|
};
|
|
467
511
|
};
|
|
468
512
|
|
|
513
|
+
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
514
|
+
new (): {
|
|
515
|
+
$slots: S;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
520
|
+
new (): {
|
|
521
|
+
$slots: S;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
|
|
469
525
|
export declare const API_CONFIG: ApiConfig;
|
|
470
526
|
|
|
471
527
|
declare interface ApiConfig {
|
|
@@ -3618,6 +3674,416 @@ title: string;
|
|
|
3618
3674
|
|
|
3619
3675
|
export declare const GisMapMeasure: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
3620
3676
|
|
|
3677
|
+
export declare const GisMapMobileBarFloatPanelItem: __VLS_WithTemplateSlots_8<DefineComponent<ExtractPropTypes< {
|
|
3678
|
+
text: {
|
|
3679
|
+
type: StringConstructor;
|
|
3680
|
+
default: string;
|
|
3681
|
+
};
|
|
3682
|
+
iconName: {
|
|
3683
|
+
type: StringConstructor;
|
|
3684
|
+
default: string;
|
|
3685
|
+
};
|
|
3686
|
+
height: {
|
|
3687
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
3688
|
+
default: number;
|
|
3689
|
+
};
|
|
3690
|
+
anchors: {
|
|
3691
|
+
type: {
|
|
3692
|
+
(arrayLength: number): number[];
|
|
3693
|
+
(...items: number[]): number[];
|
|
3694
|
+
new (arrayLength: number): number[];
|
|
3695
|
+
new (...items: number[]): number[];
|
|
3696
|
+
isArray(arg: any): arg is any[];
|
|
3697
|
+
readonly prototype: any[];
|
|
3698
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3699
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3700
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3701
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3702
|
+
of<T>(...items: T[]): T[];
|
|
3703
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
3704
|
+
};
|
|
3705
|
+
default: () => number[];
|
|
3706
|
+
};
|
|
3707
|
+
visible: {
|
|
3708
|
+
type: BooleanConstructor;
|
|
3709
|
+
default: boolean;
|
|
3710
|
+
};
|
|
3711
|
+
contentDraggable: {
|
|
3712
|
+
type: BooleanConstructor;
|
|
3713
|
+
default: boolean;
|
|
3714
|
+
};
|
|
3715
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3716
|
+
text: {
|
|
3717
|
+
type: StringConstructor;
|
|
3718
|
+
default: string;
|
|
3719
|
+
};
|
|
3720
|
+
iconName: {
|
|
3721
|
+
type: StringConstructor;
|
|
3722
|
+
default: string;
|
|
3723
|
+
};
|
|
3724
|
+
height: {
|
|
3725
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
3726
|
+
default: number;
|
|
3727
|
+
};
|
|
3728
|
+
anchors: {
|
|
3729
|
+
type: {
|
|
3730
|
+
(arrayLength: number): number[];
|
|
3731
|
+
(...items: number[]): number[];
|
|
3732
|
+
new (arrayLength: number): number[];
|
|
3733
|
+
new (...items: number[]): number[];
|
|
3734
|
+
isArray(arg: any): arg is any[];
|
|
3735
|
+
readonly prototype: any[];
|
|
3736
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3737
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3738
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3739
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3740
|
+
of<T>(...items: T[]): T[];
|
|
3741
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
3742
|
+
};
|
|
3743
|
+
default: () => number[];
|
|
3744
|
+
};
|
|
3745
|
+
visible: {
|
|
3746
|
+
type: BooleanConstructor;
|
|
3747
|
+
default: boolean;
|
|
3748
|
+
};
|
|
3749
|
+
contentDraggable: {
|
|
3750
|
+
type: BooleanConstructor;
|
|
3751
|
+
default: boolean;
|
|
3752
|
+
};
|
|
3753
|
+
}>> & Readonly<{}>, {
|
|
3754
|
+
visible: boolean;
|
|
3755
|
+
iconName: string;
|
|
3756
|
+
text: string;
|
|
3757
|
+
height: string | number;
|
|
3758
|
+
anchors: number[];
|
|
3759
|
+
contentDraggable: boolean;
|
|
3760
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
3761
|
+
default?(_: {}): any;
|
|
3762
|
+
}>;
|
|
3763
|
+
|
|
3764
|
+
export declare const GisMapMobileBarGroup: __VLS_WithTemplateSlots_6<DefineComponent<ExtractPropTypes< {
|
|
3765
|
+
float: {
|
|
3766
|
+
type: StringConstructor;
|
|
3767
|
+
default: string;
|
|
3768
|
+
};
|
|
3769
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3770
|
+
float: {
|
|
3771
|
+
type: StringConstructor;
|
|
3772
|
+
default: string;
|
|
3773
|
+
};
|
|
3774
|
+
}>> & Readonly<{}>, {
|
|
3775
|
+
float: string;
|
|
3776
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
3777
|
+
default?(_: {}): any;
|
|
3778
|
+
}>;
|
|
3779
|
+
|
|
3780
|
+
export declare const GisMapMobileBarPopupItem: __VLS_WithTemplateSlots_7<DefineComponent<ExtractPropTypes< {
|
|
3781
|
+
text: {
|
|
3782
|
+
type: StringConstructor;
|
|
3783
|
+
default: string;
|
|
3784
|
+
};
|
|
3785
|
+
iconName: {
|
|
3786
|
+
type: StringConstructor;
|
|
3787
|
+
default: string;
|
|
3788
|
+
};
|
|
3789
|
+
position: {
|
|
3790
|
+
type: () => PopupPosition;
|
|
3791
|
+
default: string;
|
|
3792
|
+
};
|
|
3793
|
+
visible: {
|
|
3794
|
+
type: BooleanConstructor;
|
|
3795
|
+
default: boolean;
|
|
3796
|
+
};
|
|
3797
|
+
trigger: {
|
|
3798
|
+
type: StringConstructor;
|
|
3799
|
+
default: undefined;
|
|
3800
|
+
};
|
|
3801
|
+
width: {
|
|
3802
|
+
type: StringConstructor;
|
|
3803
|
+
default: string;
|
|
3804
|
+
};
|
|
3805
|
+
height: {
|
|
3806
|
+
type: StringConstructor;
|
|
3807
|
+
default: string;
|
|
3808
|
+
};
|
|
3809
|
+
overlay: {
|
|
3810
|
+
type: BooleanConstructor;
|
|
3811
|
+
default: boolean;
|
|
3812
|
+
};
|
|
3813
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3814
|
+
text: {
|
|
3815
|
+
type: StringConstructor;
|
|
3816
|
+
default: string;
|
|
3817
|
+
};
|
|
3818
|
+
iconName: {
|
|
3819
|
+
type: StringConstructor;
|
|
3820
|
+
default: string;
|
|
3821
|
+
};
|
|
3822
|
+
position: {
|
|
3823
|
+
type: () => PopupPosition;
|
|
3824
|
+
default: string;
|
|
3825
|
+
};
|
|
3826
|
+
visible: {
|
|
3827
|
+
type: BooleanConstructor;
|
|
3828
|
+
default: boolean;
|
|
3829
|
+
};
|
|
3830
|
+
trigger: {
|
|
3831
|
+
type: StringConstructor;
|
|
3832
|
+
default: undefined;
|
|
3833
|
+
};
|
|
3834
|
+
width: {
|
|
3835
|
+
type: StringConstructor;
|
|
3836
|
+
default: string;
|
|
3837
|
+
};
|
|
3838
|
+
height: {
|
|
3839
|
+
type: StringConstructor;
|
|
3840
|
+
default: string;
|
|
3841
|
+
};
|
|
3842
|
+
overlay: {
|
|
3843
|
+
type: BooleanConstructor;
|
|
3844
|
+
default: boolean;
|
|
3845
|
+
};
|
|
3846
|
+
}>> & Readonly<{}>, {
|
|
3847
|
+
visible: boolean;
|
|
3848
|
+
position: PopupPosition;
|
|
3849
|
+
iconName: string;
|
|
3850
|
+
text: string;
|
|
3851
|
+
height: string;
|
|
3852
|
+
width: string;
|
|
3853
|
+
trigger: string;
|
|
3854
|
+
overlay: boolean;
|
|
3855
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
3856
|
+
default?(_: {}): any;
|
|
3857
|
+
}>;
|
|
3858
|
+
|
|
3859
|
+
export declare const GisMapMobileLayerBox: __VLS_WithTemplateSlots_10<DefineComponent<ExtractPropTypes< {
|
|
3860
|
+
title: {
|
|
3861
|
+
type: StringConstructor;
|
|
3862
|
+
default: undefined;
|
|
3863
|
+
};
|
|
3864
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3865
|
+
title: {
|
|
3866
|
+
type: StringConstructor;
|
|
3867
|
+
default: undefined;
|
|
3868
|
+
};
|
|
3869
|
+
}>> & Readonly<{}>, {
|
|
3870
|
+
title: string;
|
|
3871
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
3872
|
+
default?(_: {}): any;
|
|
3873
|
+
}>;
|
|
3874
|
+
|
|
3875
|
+
export declare const GisMapMobileLayerPanel: __VLS_WithTemplateSlots_9<DefineComponent<ExtractPropTypes< {
|
|
3876
|
+
title: {
|
|
3877
|
+
type: StringConstructor;
|
|
3878
|
+
default: string;
|
|
3879
|
+
};
|
|
3880
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3881
|
+
title: {
|
|
3882
|
+
type: StringConstructor;
|
|
3883
|
+
default: string;
|
|
3884
|
+
};
|
|
3885
|
+
}>> & Readonly<{}>, {
|
|
3886
|
+
title: string;
|
|
3887
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
3888
|
+
default?(_: {}): any;
|
|
3889
|
+
}>;
|
|
3890
|
+
|
|
3891
|
+
export declare const GisMapMobileLayerSwitch: DefineComponent<ExtractPropTypes< {
|
|
3892
|
+
data: {
|
|
3893
|
+
type: ObjectConstructor;
|
|
3894
|
+
default: () => {
|
|
3895
|
+
layers: never[];
|
|
3896
|
+
extensions: never[];
|
|
3897
|
+
};
|
|
3898
|
+
};
|
|
3899
|
+
extensionsPosition: {
|
|
3900
|
+
type: StringConstructor;
|
|
3901
|
+
default: string;
|
|
3902
|
+
};
|
|
3903
|
+
gray: {
|
|
3904
|
+
type: BooleanConstructor;
|
|
3905
|
+
default: boolean;
|
|
3906
|
+
};
|
|
3907
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3908
|
+
data: {
|
|
3909
|
+
type: ObjectConstructor;
|
|
3910
|
+
default: () => {
|
|
3911
|
+
layers: never[];
|
|
3912
|
+
extensions: never[];
|
|
3913
|
+
};
|
|
3914
|
+
};
|
|
3915
|
+
extensionsPosition: {
|
|
3916
|
+
type: StringConstructor;
|
|
3917
|
+
default: string;
|
|
3918
|
+
};
|
|
3919
|
+
gray: {
|
|
3920
|
+
type: BooleanConstructor;
|
|
3921
|
+
default: boolean;
|
|
3922
|
+
};
|
|
3923
|
+
}>> & Readonly<{}>, {
|
|
3924
|
+
data: Record<string, any>;
|
|
3925
|
+
gray: boolean;
|
|
3926
|
+
extensionsPosition: string;
|
|
3927
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
3928
|
+
|
|
3929
|
+
export declare const GisMapMobileMapLayer: DefineComponent<ExtractPropTypes< {
|
|
3930
|
+
title: {
|
|
3931
|
+
type: StringConstructor;
|
|
3932
|
+
default: string;
|
|
3933
|
+
};
|
|
3934
|
+
data: {
|
|
3935
|
+
type: {
|
|
3936
|
+
(arrayLength: number): any[];
|
|
3937
|
+
(...items: any[]): any[];
|
|
3938
|
+
new (arrayLength: number): any[];
|
|
3939
|
+
new (...items: any[]): any[];
|
|
3940
|
+
isArray(arg: any): arg is any[];
|
|
3941
|
+
readonly prototype: any[];
|
|
3942
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3943
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3944
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3945
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3946
|
+
of<T>(...items: T[]): T[];
|
|
3947
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
3948
|
+
};
|
|
3949
|
+
default: () => never[];
|
|
3950
|
+
};
|
|
3951
|
+
showSearch: {
|
|
3952
|
+
type: BooleanConstructor;
|
|
3953
|
+
default: boolean;
|
|
3954
|
+
};
|
|
3955
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3956
|
+
close: (...args: any[]) => void;
|
|
3957
|
+
"layer-toggle": (...args: any[]) => void;
|
|
3958
|
+
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3959
|
+
title: {
|
|
3960
|
+
type: StringConstructor;
|
|
3961
|
+
default: string;
|
|
3962
|
+
};
|
|
3963
|
+
data: {
|
|
3964
|
+
type: {
|
|
3965
|
+
(arrayLength: number): any[];
|
|
3966
|
+
(...items: any[]): any[];
|
|
3967
|
+
new (arrayLength: number): any[];
|
|
3968
|
+
new (...items: any[]): any[];
|
|
3969
|
+
isArray(arg: any): arg is any[];
|
|
3970
|
+
readonly prototype: any[];
|
|
3971
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3972
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3973
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3974
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3975
|
+
of<T>(...items: T[]): T[];
|
|
3976
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
3977
|
+
};
|
|
3978
|
+
default: () => never[];
|
|
3979
|
+
};
|
|
3980
|
+
showSearch: {
|
|
3981
|
+
type: BooleanConstructor;
|
|
3982
|
+
default: boolean;
|
|
3983
|
+
};
|
|
3984
|
+
}>> & Readonly<{
|
|
3985
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
3986
|
+
"onLayer-toggle"?: ((...args: any[]) => any) | undefined;
|
|
3987
|
+
}>, {
|
|
3988
|
+
data: any[];
|
|
3989
|
+
title: string;
|
|
3990
|
+
showSearch: boolean;
|
|
3991
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
3992
|
+
|
|
3993
|
+
export declare const GisMapMobileMapQuery: DefineComponent<ExtractPropTypes< {
|
|
3994
|
+
downloadUrl: {
|
|
3995
|
+
type: FunctionConstructor;
|
|
3996
|
+
default: undefined;
|
|
3997
|
+
};
|
|
3998
|
+
height: {
|
|
3999
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4000
|
+
default: number;
|
|
4001
|
+
};
|
|
4002
|
+
anchors: {
|
|
4003
|
+
type: {
|
|
4004
|
+
(arrayLength: number): number[];
|
|
4005
|
+
(...items: number[]): number[];
|
|
4006
|
+
new (arrayLength: number): number[];
|
|
4007
|
+
new (...items: number[]): number[];
|
|
4008
|
+
isArray(arg: any): arg is any[];
|
|
4009
|
+
readonly prototype: any[];
|
|
4010
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
4011
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
4012
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
4013
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
4014
|
+
of<T>(...items: T[]): T[];
|
|
4015
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
4016
|
+
};
|
|
4017
|
+
default: () => number[];
|
|
4018
|
+
};
|
|
4019
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
4020
|
+
downloadUrl: {
|
|
4021
|
+
type: FunctionConstructor;
|
|
4022
|
+
default: undefined;
|
|
4023
|
+
};
|
|
4024
|
+
height: {
|
|
4025
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4026
|
+
default: number;
|
|
4027
|
+
};
|
|
4028
|
+
anchors: {
|
|
4029
|
+
type: {
|
|
4030
|
+
(arrayLength: number): number[];
|
|
4031
|
+
(...items: number[]): number[];
|
|
4032
|
+
new (arrayLength: number): number[];
|
|
4033
|
+
new (...items: number[]): number[];
|
|
4034
|
+
isArray(arg: any): arg is any[];
|
|
4035
|
+
readonly prototype: any[];
|
|
4036
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
4037
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
4038
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
4039
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
4040
|
+
of<T>(...items: T[]): T[];
|
|
4041
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
4042
|
+
};
|
|
4043
|
+
default: () => number[];
|
|
4044
|
+
};
|
|
4045
|
+
}>> & Readonly<{}>, {
|
|
4046
|
+
height: string | number;
|
|
4047
|
+
downloadUrl: Function;
|
|
4048
|
+
anchors: number[];
|
|
4049
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
4050
|
+
popupRef: HTMLDivElement;
|
|
4051
|
+
}, any>;
|
|
4052
|
+
|
|
4053
|
+
export declare const GisMapMobileMapSearch: DefineComponent<ExtractPropTypes< {
|
|
4054
|
+
data: {
|
|
4055
|
+
type: () => MapSearchItem[];
|
|
4056
|
+
default: () => never[];
|
|
4057
|
+
};
|
|
4058
|
+
tianditu: {
|
|
4059
|
+
type: () => TiandituQuery;
|
|
4060
|
+
default: () => {};
|
|
4061
|
+
};
|
|
4062
|
+
}>, {
|
|
4063
|
+
searchText: Ref<string, string>;
|
|
4064
|
+
activeTab: Ref<string, string>;
|
|
4065
|
+
showResults: Ref<boolean, boolean>;
|
|
4066
|
+
resultList: Ref<any[], any[]>;
|
|
4067
|
+
selectUUID: Ref<string, string>;
|
|
4068
|
+
showHistory: Ref<boolean, boolean>;
|
|
4069
|
+
historyList: Ref<string[], string[]>;
|
|
4070
|
+
loadHistory: () => void;
|
|
4071
|
+
saveHistory: (keyword: string) => void;
|
|
4072
|
+
clearHistory: () => void;
|
|
4073
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
4074
|
+
data: {
|
|
4075
|
+
type: () => MapSearchItem[];
|
|
4076
|
+
default: () => never[];
|
|
4077
|
+
};
|
|
4078
|
+
tianditu: {
|
|
4079
|
+
type: () => TiandituQuery;
|
|
4080
|
+
default: () => {};
|
|
4081
|
+
};
|
|
4082
|
+
}>> & Readonly<{}>, {
|
|
4083
|
+
data: MapSearchItem[];
|
|
4084
|
+
tianditu: TiandituQuery;
|
|
4085
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
4086
|
+
|
|
3621
4087
|
/**
|
|
3622
4088
|
* 地图配置选项
|
|
3623
4089
|
*/
|
|
@@ -3650,6 +4116,8 @@ export declare interface GISMapOptions extends Omit<mapboxgl_2.MapboxOptions, 'c
|
|
|
3650
4116
|
onLoad?: (map: IGISMap) => void;
|
|
3651
4117
|
/** 错误回调 */
|
|
3652
4118
|
onError?: (error: Error) => void;
|
|
4119
|
+
/** 是否为移动端模式 */
|
|
4120
|
+
isMobile?: boolean;
|
|
3653
4121
|
}
|
|
3654
4122
|
|
|
3655
4123
|
export declare const GisMapPopupBar: __VLS_WithTemplateSlots_3<DefineComponent<ExtractPropTypes< {
|
|
@@ -3858,45 +4326,15 @@ extensionsPosition: string;
|
|
|
3858
4326
|
right?(_: {}): any;
|
|
3859
4327
|
}>;
|
|
3860
4328
|
|
|
3861
|
-
export declare const GisMapTools: DefineComponent<
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
(
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3871
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3872
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3873
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3874
|
-
of<T>(...items: T[]): T[];
|
|
3875
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
3876
|
-
};
|
|
3877
|
-
default: () => never[];
|
|
3878
|
-
};
|
|
3879
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
3880
|
-
data: {
|
|
3881
|
-
type: {
|
|
3882
|
-
(arrayLength: number): any[];
|
|
3883
|
-
(...items: any[]): any[];
|
|
3884
|
-
new (arrayLength: number): any[];
|
|
3885
|
-
new (...items: any[]): any[];
|
|
3886
|
-
isArray(arg: any): arg is any[];
|
|
3887
|
-
readonly prototype: any[];
|
|
3888
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
3889
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3890
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
3891
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
3892
|
-
of<T>(...items: T[]): T[];
|
|
3893
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
3894
|
-
};
|
|
3895
|
-
default: () => never[];
|
|
3896
|
-
};
|
|
3897
|
-
}>> & Readonly<{}>, {
|
|
3898
|
-
data: any[];
|
|
3899
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
4329
|
+
export declare const GisMapTools: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4330
|
+
"tool-click": (tool: ToolItem) => any;
|
|
4331
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
4332
|
+
"onTool-click"?: ((tool: ToolItem) => any) | undefined;
|
|
4333
|
+
}>, {
|
|
4334
|
+
data: ToolGroup[];
|
|
4335
|
+
defaultCollapsed: boolean;
|
|
4336
|
+
showToggle: boolean;
|
|
4337
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3900
4338
|
|
|
3901
4339
|
/**
|
|
3902
4340
|
* 图标配置
|
|
@@ -4052,6 +4490,8 @@ export declare interface IGISMap extends mapboxgl_2.Map {
|
|
|
4052
4490
|
readonly managers: IManagerRegistry;
|
|
4053
4491
|
/** 插件系统 */
|
|
4054
4492
|
readonly plugins: IPluginRegistry;
|
|
4493
|
+
/** 是否为移动端模式 */
|
|
4494
|
+
readonly isMobile: boolean;
|
|
4055
4495
|
/**
|
|
4056
4496
|
* 初始化地图
|
|
4057
4497
|
*/
|
|
@@ -4540,6 +4980,7 @@ export declare interface LayerQueryClickPayload {
|
|
|
4540
4980
|
isShowTooltip?: boolean;
|
|
4541
4981
|
isCommonPopup?: boolean;
|
|
4542
4982
|
offset?: [number, number];
|
|
4983
|
+
data?: any;
|
|
4543
4984
|
}
|
|
4544
4985
|
|
|
4545
4986
|
export declare interface LayerRemoveEvent extends LayerEvent {
|
|
@@ -4856,6 +5297,8 @@ declare interface MapAdapter {
|
|
|
4856
5297
|
* 仅在确实需要调用引擎专有 API 时使用,日常操作请通过适配器方法。
|
|
4857
5298
|
*/
|
|
4858
5299
|
getMap(): any;
|
|
5300
|
+
/** 获取是否为移动端模式 */
|
|
5301
|
+
getIsMobile(): boolean;
|
|
4859
5302
|
/** 初始化地图 */
|
|
4860
5303
|
initialize(container: HTMLElement, options: MapInitOptions): Promise<void>;
|
|
4861
5304
|
/** 销毁地图,释放所有资源 */
|
|
@@ -4868,6 +5311,16 @@ declare interface MapAdapter {
|
|
|
4868
5311
|
fitBounds(bounds: [[number, number], [number, number]], options?: FitBoundsOptions): void;
|
|
4869
5312
|
/** 获取当前视图状态 */
|
|
4870
5313
|
getViewState(): MapViewState;
|
|
5314
|
+
/** 获取当前缩放级别 */
|
|
5315
|
+
getZoom(): number;
|
|
5316
|
+
/** 设置当前缩放级别 */
|
|
5317
|
+
setZoom(zoom: number): void;
|
|
5318
|
+
/** 缩放到指定级别 */
|
|
5319
|
+
zoomTo(zoom: number): void;
|
|
5320
|
+
/** 缩放级别增加 */
|
|
5321
|
+
zoomIn(): void;
|
|
5322
|
+
/** 缩放级别减少 */
|
|
5323
|
+
zoomOut(): void;
|
|
4871
5324
|
/** 添加标记,返回引擎原生标记对象 */
|
|
4872
5325
|
addMarker(id: string, options: MarkerOptions): any;
|
|
4873
5326
|
/** 移除标记 */
|
|
@@ -4915,6 +5368,9 @@ export declare class MapContext {
|
|
|
4915
5368
|
url: string;
|
|
4916
5369
|
}>;
|
|
4917
5370
|
readonly measureOptions?: MeasureManagerOptions;
|
|
5371
|
+
/** 是否为移动端模式 */
|
|
5372
|
+
readonly isMobile: boolean;
|
|
5373
|
+
private initialViewState;
|
|
4918
5374
|
private _layerService?;
|
|
4919
5375
|
private _markerService?;
|
|
4920
5376
|
private _tdtManager?;
|
|
@@ -4928,6 +5384,7 @@ export declare class MapContext {
|
|
|
4928
5384
|
private _markerManager?;
|
|
4929
5385
|
private _drawManager?;
|
|
4930
5386
|
private _measureManager?;
|
|
5387
|
+
private _queryLayerManager?;
|
|
4931
5388
|
constructor(config: MapContextConfig);
|
|
4932
5389
|
/**
|
|
4933
5390
|
* 图层服务
|
|
@@ -4969,6 +5426,10 @@ export declare class MapContext {
|
|
|
4969
5426
|
* 获取图层管理器
|
|
4970
5427
|
*/
|
|
4971
5428
|
get layerManager(): LayerManager | undefined;
|
|
5429
|
+
/**
|
|
5430
|
+
* 获取查询图层管理器
|
|
5431
|
+
*/
|
|
5432
|
+
get queryLayerManager(): QueryLayerManager | undefined;
|
|
4972
5433
|
/**
|
|
4973
5434
|
* 获取模板管理器
|
|
4974
5435
|
*/
|
|
@@ -5034,6 +5495,30 @@ export declare class MapContext {
|
|
|
5034
5495
|
* 获取当前视图状态
|
|
5035
5496
|
*/
|
|
5036
5497
|
getViewState(): ViewState_2;
|
|
5498
|
+
/**
|
|
5499
|
+
* 获取当前缩放级别
|
|
5500
|
+
*/
|
|
5501
|
+
getZoom(): number;
|
|
5502
|
+
/**
|
|
5503
|
+
* 设置当前缩放级别
|
|
5504
|
+
*/
|
|
5505
|
+
setZoom(zoom: number): void;
|
|
5506
|
+
/**
|
|
5507
|
+
* 缩放到指定级别
|
|
5508
|
+
*/
|
|
5509
|
+
zoomTo(zoom: number): void;
|
|
5510
|
+
/**
|
|
5511
|
+
* 缩放级别增加
|
|
5512
|
+
*/
|
|
5513
|
+
zoomIn(): void;
|
|
5514
|
+
/**
|
|
5515
|
+
* 缩放级别减少
|
|
5516
|
+
*/
|
|
5517
|
+
zoomOut(): void;
|
|
5518
|
+
/**
|
|
5519
|
+
* 获取初始视图状态
|
|
5520
|
+
*/
|
|
5521
|
+
getInitialViewState(): ViewState_2 | null;
|
|
5037
5522
|
/**
|
|
5038
5523
|
* 获取地图是否就绪
|
|
5039
5524
|
*/
|
|
@@ -5068,6 +5553,8 @@ export declare interface MapContextConfig {
|
|
|
5068
5553
|
}>;
|
|
5069
5554
|
/** 测量管理器配置 */
|
|
5070
5555
|
measureOptions?: MeasureManagerOptions;
|
|
5556
|
+
/** 是否为移动端模式 */
|
|
5557
|
+
isMobile?: boolean;
|
|
5071
5558
|
}
|
|
5072
5559
|
|
|
5073
5560
|
/** 地图上下文注入键 - 现在注入的是 Ref */
|
|
@@ -5091,80 +5578,14 @@ declare interface MapInitOptions {
|
|
|
5091
5578
|
interactive?: boolean;
|
|
5092
5579
|
attributionControl?: boolean;
|
|
5093
5580
|
accessToken?: string;
|
|
5581
|
+
/** 是否为移动端模式 */
|
|
5582
|
+
isMobile?: boolean;
|
|
5094
5583
|
}
|
|
5095
5584
|
|
|
5096
5585
|
export declare interface MapLoadEvent {
|
|
5097
5586
|
map: any;
|
|
5098
5587
|
}
|
|
5099
5588
|
|
|
5100
|
-
export declare const MapPage: __VLS_WithTemplateSlots_6<DefineComponent<ExtractPropTypes< {
|
|
5101
|
-
mapViewData: {
|
|
5102
|
-
type: ObjectConstructor;
|
|
5103
|
-
default: () => {
|
|
5104
|
-
center: [number, number];
|
|
5105
|
-
};
|
|
5106
|
-
};
|
|
5107
|
-
switchData: {
|
|
5108
|
-
type: ObjectConstructor;
|
|
5109
|
-
default: () => {};
|
|
5110
|
-
};
|
|
5111
|
-
layerData: {
|
|
5112
|
-
type: ArrayConstructor;
|
|
5113
|
-
default: () => never[];
|
|
5114
|
-
};
|
|
5115
|
-
toolsData: {
|
|
5116
|
-
type: ArrayConstructor;
|
|
5117
|
-
default: () => never[];
|
|
5118
|
-
};
|
|
5119
|
-
searchData: {
|
|
5120
|
-
type: ArrayConstructor;
|
|
5121
|
-
default: () => never[];
|
|
5122
|
-
};
|
|
5123
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
5124
|
-
load: (context: MapContext) => any;
|
|
5125
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
5126
|
-
mapViewData: {
|
|
5127
|
-
type: ObjectConstructor;
|
|
5128
|
-
default: () => {
|
|
5129
|
-
center: [number, number];
|
|
5130
|
-
};
|
|
5131
|
-
};
|
|
5132
|
-
switchData: {
|
|
5133
|
-
type: ObjectConstructor;
|
|
5134
|
-
default: () => {};
|
|
5135
|
-
};
|
|
5136
|
-
layerData: {
|
|
5137
|
-
type: ArrayConstructor;
|
|
5138
|
-
default: () => never[];
|
|
5139
|
-
};
|
|
5140
|
-
toolsData: {
|
|
5141
|
-
type: ArrayConstructor;
|
|
5142
|
-
default: () => never[];
|
|
5143
|
-
};
|
|
5144
|
-
searchData: {
|
|
5145
|
-
type: ArrayConstructor;
|
|
5146
|
-
default: () => never[];
|
|
5147
|
-
};
|
|
5148
|
-
}>> & Readonly<{
|
|
5149
|
-
onLoad?: ((context: MapContext) => any) | undefined;
|
|
5150
|
-
}>, {
|
|
5151
|
-
mapViewData: Record<string, any>;
|
|
5152
|
-
switchData: Record<string, any>;
|
|
5153
|
-
layerData: unknown[];
|
|
5154
|
-
toolsData: unknown[];
|
|
5155
|
-
searchData: unknown[];
|
|
5156
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
5157
|
-
'pre-top-left'?(_: {}): any;
|
|
5158
|
-
'top-left'?(_: {}): any;
|
|
5159
|
-
'pre-top-right'?(_: {}): any;
|
|
5160
|
-
'top-right'?(_: {}): any;
|
|
5161
|
-
'pre-bottom-left'?(_: {}): any;
|
|
5162
|
-
'bottom-left'?(_: {}): any;
|
|
5163
|
-
'pre-bottom-right'?(_: {}): any;
|
|
5164
|
-
'bottom-right'?(_: {}): any;
|
|
5165
|
-
default?(_: {}): any;
|
|
5166
|
-
}>;
|
|
5167
|
-
|
|
5168
5589
|
/**
|
|
5169
5590
|
* {
|
|
5170
5591
|
"id": "xzq",
|
|
@@ -5724,6 +6145,12 @@ declare class MeasureManager {
|
|
|
5724
6145
|
private boundHandleMapClick;
|
|
5725
6146
|
private boundHandleMapMouseMove;
|
|
5726
6147
|
private boundHandleMapRightClick;
|
|
6148
|
+
private boundHandleMapDoubleClick;
|
|
6149
|
+
private boundHandleTouchEnd;
|
|
6150
|
+
private boundHandleTouchStart;
|
|
6151
|
+
private lastTouchTime;
|
|
6152
|
+
private lastTouchCoords;
|
|
6153
|
+
private doubleTapThreshold;
|
|
5727
6154
|
private tooltipElement;
|
|
5728
6155
|
constructor(map: any, options?: MeasureManagerOptions);
|
|
5729
6156
|
private initMeasureSource;
|
|
@@ -5779,6 +6206,9 @@ declare class MeasureManager {
|
|
|
5779
6206
|
private handleMapClick;
|
|
5780
6207
|
private handleMapMouseMove;
|
|
5781
6208
|
private handleMapRightClick;
|
|
6209
|
+
private handleMapDoubleClick;
|
|
6210
|
+
private handleTouchStart;
|
|
6211
|
+
private handleTouchEnd;
|
|
5782
6212
|
private createTooltip;
|
|
5783
6213
|
private showTooltip;
|
|
5784
6214
|
private hideTooltip;
|
|
@@ -5860,24 +6290,6 @@ declare interface MeasureResult {
|
|
|
5860
6290
|
/** 测量类型 */
|
|
5861
6291
|
declare type MeasureType = 'point' | 'line' | 'polygon' | 'none';
|
|
5862
6292
|
|
|
5863
|
-
export declare const MobileBaseLayerSwitch: DefineComponent<ExtractPropTypes< {
|
|
5864
|
-
data: {
|
|
5865
|
-
type: PropType<SwitchLayerPayload[]>;
|
|
5866
|
-
default: () => never[];
|
|
5867
|
-
};
|
|
5868
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
5869
|
-
data: {
|
|
5870
|
-
type: PropType<SwitchLayerPayload[]>;
|
|
5871
|
-
default: () => never[];
|
|
5872
|
-
};
|
|
5873
|
-
}>> & Readonly<{}>, {
|
|
5874
|
-
data: SwitchLayerPayload[];
|
|
5875
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
5876
|
-
|
|
5877
|
-
export declare const MobileMapLayer: __VLS_WithTemplateSlots_7<DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
5878
|
-
default?(_: {}): any;
|
|
5879
|
-
}>;
|
|
5880
|
-
|
|
5881
6293
|
/** 占位符图层 ID 常量(供外部引用) */
|
|
5882
6294
|
declare class PlaceholderManager {
|
|
5883
6295
|
/** 符号图层(Symbol)占位符 ID */
|
|
@@ -6056,6 +6468,52 @@ export declare function provideMap(context: MapContext): void;
|
|
|
6056
6468
|
/** 提供者类型 */
|
|
6057
6469
|
declare type Provider<T> = ClassProvider<T> | FactoryProvider<T> | ValueProvider<T>;
|
|
6058
6470
|
|
|
6471
|
+
export declare class QueryLayerManager extends BaseManager {
|
|
6472
|
+
private adapter;
|
|
6473
|
+
private eventBus?;
|
|
6474
|
+
private sourceId;
|
|
6475
|
+
private pointLayerId;
|
|
6476
|
+
private lineLayerId;
|
|
6477
|
+
private polygonLayerId;
|
|
6478
|
+
private options;
|
|
6479
|
+
private rawMap;
|
|
6480
|
+
constructor(adapter: VectorTileAdapter, eventBus?: IEventBus<CoreMapEvents>, options?: QueryLayerOptions);
|
|
6481
|
+
protected onInitialize(): void;
|
|
6482
|
+
protected onDispose(): void;
|
|
6483
|
+
protected onEnable(): void;
|
|
6484
|
+
protected onDisable(): void;
|
|
6485
|
+
protected onReset(): void;
|
|
6486
|
+
private initSource;
|
|
6487
|
+
private initLayers;
|
|
6488
|
+
private removeLayers;
|
|
6489
|
+
private setLayersVisibility;
|
|
6490
|
+
private setupAutoBringToTop;
|
|
6491
|
+
private onOtherLayerAdded;
|
|
6492
|
+
bringToTop(): void;
|
|
6493
|
+
setFeatures(features: GeoJSON.Feature[]): void;
|
|
6494
|
+
addFeatures(features: GeoJSON.Feature[]): void;
|
|
6495
|
+
clear(): void;
|
|
6496
|
+
getPointLayerId(): string;
|
|
6497
|
+
getLineLayerId(): string;
|
|
6498
|
+
getPolygonLayerId(): string;
|
|
6499
|
+
getSourceId(): string;
|
|
6500
|
+
}
|
|
6501
|
+
|
|
6502
|
+
declare interface QueryLayerOptions {
|
|
6503
|
+
pointLayerId?: string;
|
|
6504
|
+
lineLayerId?: string;
|
|
6505
|
+
polygonLayerId?: string;
|
|
6506
|
+
sourceId?: string;
|
|
6507
|
+
polygonStrokeColor?: string;
|
|
6508
|
+
polygonStrokeWidth?: number;
|
|
6509
|
+
lineStrokeColor?: string;
|
|
6510
|
+
lineStrokeWidth?: number;
|
|
6511
|
+
pointColor?: string;
|
|
6512
|
+
pointRadius?: number;
|
|
6513
|
+
pointStrokeColor?: string;
|
|
6514
|
+
pointStrokeWidth?: number;
|
|
6515
|
+
}
|
|
6516
|
+
|
|
6059
6517
|
/** 要素查询选项 */
|
|
6060
6518
|
declare interface QueryOptions {
|
|
6061
6519
|
layers?: string[];
|
|
@@ -6513,6 +6971,23 @@ declare interface Token<_T> {
|
|
|
6513
6971
|
readonly name: string;
|
|
6514
6972
|
}
|
|
6515
6973
|
|
|
6974
|
+
declare interface ToolGroup {
|
|
6975
|
+
name: string;
|
|
6976
|
+
label: string;
|
|
6977
|
+
children: ToolItem[];
|
|
6978
|
+
}
|
|
6979
|
+
|
|
6980
|
+
declare interface ToolItem {
|
|
6981
|
+
name: string;
|
|
6982
|
+
label: string;
|
|
6983
|
+
icon?: string;
|
|
6984
|
+
action?: string;
|
|
6985
|
+
disabled?: boolean;
|
|
6986
|
+
hidden?: boolean;
|
|
6987
|
+
children?: ToolItem[];
|
|
6988
|
+
showMode?: string[];
|
|
6989
|
+
}
|
|
6990
|
+
|
|
6516
6991
|
export declare class TypedEventEmitter {
|
|
6517
6992
|
private events;
|
|
6518
6993
|
private onceEvents;
|
|
@@ -6599,6 +7074,8 @@ export declare function useControl(): {
|
|
|
6599
7074
|
layer: Ref<LayerManager | null, LayerManager | null>;
|
|
6600
7075
|
/** 风格管理器 Ref */
|
|
6601
7076
|
style: Ref<StyleManager | null, StyleManager | null>;
|
|
7077
|
+
/** 查询图层管理器 Ref */
|
|
7078
|
+
queryLayer: Ref<QueryLayerManager | null, QueryLayerManager | null>;
|
|
6602
7079
|
/** 原始地图上下文 Ref */
|
|
6603
7080
|
context: Ref<MapContext | null, MapContext | null>;
|
|
6604
7081
|
};
|