@gis_victory/gismap 2.0.23 → 2.0.25

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.
Files changed (109) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/adapters/index.d.ts +13 -0
  3. package/dist/adapters/mapbox/MapboxAdapter.d.ts +44 -0
  4. package/dist/adapters/types.d.ts +216 -0
  5. package/dist/api/BaseController.d.ts +6 -0
  6. package/dist/api/CommonController.d.ts +51 -0
  7. package/dist/components/MapCompass/index.vue.d.ts +2 -0
  8. package/dist/components/MapContainer/index.d.ts +2 -0
  9. package/dist/components/MapContainer/index.vue.d.ts +344 -0
  10. package/dist/components/MapLayer/components/CustomLayerDialog.vue.d.ts +22 -0
  11. package/dist/components/MapLayer/components/LayerTab.vue.d.ts +2179 -0
  12. package/dist/components/MapLayer/index.d.ts +2 -0
  13. package/dist/components/MapLayer/index.vue.d.ts +2287 -0
  14. package/dist/components/MapLegend/index.d.ts +2 -0
  15. package/dist/components/MapLegend/index.vue.d.ts +14 -0
  16. package/dist/components/MapMeasure/index.vue.d.ts +2 -0
  17. package/dist/components/MapPrint/MapPrintPanel.vue.d.ts +21 -0
  18. package/dist/components/MapPrint/MapPrintService.d.ts +155 -0
  19. package/dist/components/MapPrint/index.vue.d.ts +37 -0
  20. package/dist/components/MapQueryResult/index.vue.d.ts +29 -0
  21. package/dist/components/MapQueryResult/popup.vue.d.ts +16 -0
  22. package/dist/components/MapSearch/index.d.ts +2 -0
  23. package/dist/components/MapSearch/index.vue.d.ts +56 -0
  24. package/dist/components/MapSwitch/index.d.ts +2 -0
  25. package/dist/components/MapSwitch/index.vue.d.ts +37 -0
  26. package/dist/components/MapTools/index.d.ts +2 -0
  27. package/dist/components/MapTools/index.vue.d.ts +40 -0
  28. package/dist/components/MobileMapLayer/BaseLayerSwitch.vue.d.ts +16 -0
  29. package/dist/components/MobileMapLayer/index.vue.d.ts +9 -0
  30. package/dist/components/Widgets/PopupBar/BarItem.vue.d.ts +75 -0
  31. package/dist/components/Widgets/PopupBar/index.vue.d.ts +21 -0
  32. package/dist/composables/index.d.ts +13 -0
  33. package/dist/composables/useControl.d.ts +39 -0
  34. package/dist/composables/useDraw.d.ts +49 -0
  35. package/dist/composables/useLayer.d.ts +57 -0
  36. package/dist/composables/useMap.d.ts +111 -0
  37. package/dist/composables/useMarker.d.ts +55 -0
  38. package/dist/composables/useMeasure.d.ts +49 -0
  39. package/dist/composables/useSearch.d.ts +20 -0
  40. package/dist/config/api.config.d.ts +40 -0
  41. package/dist/config/gismap.config.d.ts +156 -0
  42. package/dist/core/ManagerRegistry.d.ts +75 -0
  43. package/dist/core/PluginSystem.d.ts +71 -0
  44. package/dist/core/StateStore.d.ts +96 -0
  45. package/dist/core/TypedEventEmitter.d.ts +67 -0
  46. package/dist/core/di/Container.d.ts +61 -0
  47. package/dist/core/di/decorators.d.ts +32 -0
  48. package/dist/core/di/index.d.ts +7 -0
  49. package/dist/core/di/types.d.ts +59 -0
  50. package/dist/core/event/EventBus.d.ts +101 -0
  51. package/dist/core/event/index.d.ts +5 -0
  52. package/dist/core/event/types.d.ts +215 -0
  53. package/dist/core/index.d.ts +6 -0
  54. package/dist/core/state/Store.d.ts +145 -0
  55. package/dist/core/state/index.d.ts +6 -0
  56. package/dist/core/state/types.d.ts +134 -0
  57. package/dist/domain/index.d.ts +8 -0
  58. package/dist/domain/layer/LayerEntity.d.ts +90 -0
  59. package/dist/domain/layer/LayerService.d.ts +128 -0
  60. package/dist/domain/marker/MarkerEntity.d.ts +77 -0
  61. package/dist/domain/marker/MarkerService.d.ts +105 -0
  62. package/dist/domain/types.d.ts +66 -0
  63. package/dist/examples/DrawDemo.vue.d.ts +2 -0
  64. package/dist/examples/DrawPanel.vue.d.ts +2 -0
  65. package/dist/examples/Map.vue.d.ts +74 -0
  66. package/dist/examples/MapDemoExample.vue.d.ts +2 -0
  67. package/dist/examples/MeasureDemo.vue.d.ts +2 -0
  68. package/dist/examples/MeasurePanel.vue.d.ts +2 -0
  69. package/dist/examples/SplitScreenDrawDemo.vue.d.ts +7 -0
  70. package/dist/examples/SplitScreenDrawPanel.vue.d.ts +12 -0
  71. package/dist/examples/SplitScreenPanel.vue.d.ts +12 -0
  72. package/dist/examples/TdtControlPanel.vue.d.ts +2 -0
  73. package/dist/examples/TiandituDemo.vue.d.ts +2 -0
  74. package/dist/gismap.css +1 -1
  75. package/dist/index.es.js +1 -1
  76. package/dist/main.d.ts +0 -0
  77. package/dist/manager/IconManager.d.ts +18 -0
  78. package/dist/manager/LayerManager.d.ts +50 -0
  79. package/dist/manager/MaskManager.d.ts +52 -0
  80. package/dist/manager/PlaceholderManager.d.ts +28 -0
  81. package/dist/manager/PopupManager.d.ts +13 -0
  82. package/dist/manager/QuickSearchManager.d.ts +24 -0
  83. package/dist/manager/RadarManager.d.ts +46 -0
  84. package/dist/manager/SplitScreenDrawManager.d.ts +75 -0
  85. package/dist/manager/SplitScreenManager.d.ts +81 -0
  86. package/dist/manager/TDTManager.d.ts +33 -0
  87. package/dist/manager/TemplateManager.d.ts +52 -0
  88. package/dist/manager/TerrainManager.d.ts +39 -0
  89. package/dist/manager/layer/MarkerLayer.d.ts +89 -0
  90. package/dist/manager/layer/VectorLayer.d.ts +30 -0
  91. package/dist/manager/mapbox/DrawManager.d.ts +153 -0
  92. package/dist/manager/mapbox/MeasureManager.d.ts +158 -0
  93. package/dist/router/index.d.ts +2 -0
  94. package/dist/services/MapContext.d.ts +171 -0
  95. package/dist/services/index.d.ts +5 -0
  96. package/dist/types/IEvents.d.ts +178 -0
  97. package/dist/types/IGISMap.d.ts +234 -0
  98. package/dist/types/IManager.d.ts +113 -0
  99. package/dist/types/IMapSearch.d.ts +28 -0
  100. package/dist/types/IState.d.ts +259 -0
  101. package/dist/types/ITemplate.d.ts +35 -0
  102. package/dist/types/index.d.ts +7 -0
  103. package/dist/utils/hooks/layout.d.ts +4 -0
  104. package/dist/utils/http/axios.d.ts +3 -0
  105. package/dist/utils/http/config.d.ts +3 -0
  106. package/dist/utils/http/request.d.ts +46 -0
  107. package/dist/utils/index.d.ts +49 -0
  108. package/package.json +1 -1
  109. package/dist/index.umd.js +0 -1
@@ -0,0 +1,2 @@
1
+ import { default as GisMapLegend } from './index.vue';
2
+ export default GisMapLegend;
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ title: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ title: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,21 @@
1
+ interface Props {
2
+ selectedLayers: string[];
3
+ layers: Array<{
4
+ id: string;
5
+ name: string;
6
+ }>;
7
+ annotationEnabled: boolean;
8
+ paperSize: 'A4' | 'A3' | 'A2' | 'A1' | 'A0';
9
+ paperOrientation: 'portrait' | 'landscape';
10
+ scale: number;
11
+ lineStyle: 'solid' | 'dashed' | 'dotted';
12
+ lineColor: string;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ [x: string]: any;
16
+ } & {
17
+ [x: string]: any;
18
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
19
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ export default _default;
@@ -0,0 +1,155 @@
1
+ import { MapContext } from '../../services/MapContext';
2
+ /** 打印配置 */
3
+ export interface PrintConfig {
4
+ selectedLayers: string[];
5
+ paperSize: 'A4' | 'A3' | 'A2' | 'A1' | 'A0';
6
+ paperOrientation: 'portrait' | 'landscape';
7
+ scale: number;
8
+ }
9
+ /** 标注类型 */
10
+ export type AnnotationType = 'text' | 'arrow' | 'shape';
11
+ /** 标注数据 */
12
+ export interface Annotation {
13
+ id: string;
14
+ type: AnnotationType;
15
+ geometry: any;
16
+ properties: any;
17
+ }
18
+ /** 导入文件类型 */
19
+ export type ImportFileType = 'geojson' | 'json' | 'wkt' | 'shp';
20
+ /** 导入结果 */
21
+ export interface ImportResult {
22
+ type: ImportFileType;
23
+ data: any;
24
+ features: any[];
25
+ }
26
+ export default class MapPrintService {
27
+ private mapContext;
28
+ private annotations;
29
+ private importedFeatures;
30
+ private annotationMode;
31
+ constructor(mapContext: MapContext);
32
+ /**
33
+ * 获取地图图层列表
34
+ */
35
+ getLayers(): Array<{
36
+ id: string;
37
+ name: string;
38
+ }>;
39
+ /**
40
+ * 导入文件
41
+ */
42
+ importFile(file: File): Promise<ImportResult>;
43
+ /**
44
+ * 处理 GeoJSON 数据
45
+ */
46
+ private processGeoJSON;
47
+ /**
48
+ * 处理 WKT 数据
49
+ */
50
+ private processWKT;
51
+ /**
52
+ * 将导入的要素添加到地图
53
+ */
54
+ private addImportedFeaturesToMap;
55
+ /**
56
+ * 开始标注
57
+ */
58
+ startAnnotation(type: AnnotationType): void;
59
+ /**
60
+ * 设置标注事件
61
+ */
62
+ private setupAnnotationEvents;
63
+ /**
64
+ * 设置文本标注
65
+ */
66
+ private setupTextAnnotation;
67
+ /**
68
+ * 设置箭头标注
69
+ */
70
+ private setupArrowAnnotation;
71
+ /**
72
+ * 设置图形标注
73
+ */
74
+ private setupShapeAnnotation;
75
+ /**
76
+ * 清除标注事件
77
+ */
78
+ private clearAnnotationEvents;
79
+ /**
80
+ * 添加文本标注
81
+ */
82
+ private addTextAnnotation;
83
+ /**
84
+ * 添加箭头标注
85
+ */
86
+ private addArrowAnnotation;
87
+ /**
88
+ * 添加点标注
89
+ */
90
+ private addPointAnnotation;
91
+ /**
92
+ * 添加线标注
93
+ */
94
+ private addLineAnnotation;
95
+ /**
96
+ * 添加图形标注
97
+ */
98
+ private addShapeAnnotation;
99
+ /**
100
+ * 将标注添加到地图
101
+ */
102
+ private addAnnotationToMap;
103
+ /**
104
+ * 确保标注图层存在
105
+ */
106
+ private ensureAnnotationLayers;
107
+ /**
108
+ * 更新标注数据源
109
+ */
110
+ private updateAnnotationsSource;
111
+ /**
112
+ * 清除所有标注
113
+ */
114
+ clearAnnotations(): void;
115
+ /**
116
+ * 获取所有标注
117
+ */
118
+ getAnnotations(): Annotation[];
119
+ /**
120
+ * 删除指定标注
121
+ */
122
+ deleteAnnotation(id: string): void;
123
+ /**
124
+ * 获取标注类型名称
125
+ */
126
+ private getAnnotationTypeName;
127
+ /**
128
+ * 导出地图
129
+ */
130
+ exportMap(config: PrintConfig): Promise<Blob>;
131
+ /**
132
+ * 等待地图完全渲染
133
+ */
134
+ private waitForMapRender;
135
+ /**
136
+ * 准备打印
137
+ */
138
+ preparePrint(config: PrintConfig): Promise<any>;
139
+ /**
140
+ * 获取纸张宽度
141
+ */
142
+ private getPaperWidth;
143
+ /**
144
+ * 获取纸张高度
145
+ */
146
+ private getPaperHeight;
147
+ /**
148
+ * 模拟地图导出
149
+ */
150
+ private simulateMapExport;
151
+ /**
152
+ * 销毁服务
153
+ */
154
+ destroy(): void;
155
+ }
@@ -0,0 +1,37 @@
1
+ import { MapContext } from '../../services/MapContext';
2
+ interface Props {
3
+ mapContext?: MapContext;
4
+ showControls?: boolean;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {
12
+ fileInput: HTMLInputElement;
13
+ };
14
+ rootEl: HTMLDivElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ export: (data: Blob, format: string) => any;
19
+ print: (data: any) => any;
20
+ import: (data: any) => any;
21
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
22
+ onExport?: ((data: Blob, format: string) => any) | undefined;
23
+ onPrint?: ((data: any) => any) | undefined;
24
+ onImport?: ((data: any) => any) | undefined;
25
+ }>, {
26
+ mapContext: MapContext;
27
+ showControls: boolean;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ fileInput: HTMLInputElement;
30
+ }, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,29 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ actions?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ downloadUrl: {
12
+ type: FunctionConstructor;
13
+ default: undefined;
14
+ };
15
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ downloadUrl: {
17
+ type: FunctionConstructor;
18
+ default: undefined;
19
+ };
20
+ }>> & Readonly<{}>, {
21
+ downloadUrl: Function;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,16 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ downloadUrl: {
3
+ type: FunctionConstructor;
4
+ default: undefined;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ downloadUrl: {
8
+ type: FunctionConstructor;
9
+ default: undefined;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ downloadUrl: Function;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
14
+ popupRef: HTMLDivElement;
15
+ }, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as GisMapSearch } from './index.vue';
2
+ export default GisMapSearch;
@@ -0,0 +1,56 @@
1
+ import { MapSearchItem, TiandituQuery } from '../../types/IMapSearch';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ data: {
4
+ type: () => MapSearchItem[];
5
+ default: () => never[];
6
+ };
7
+ round: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ func: {
12
+ type: FunctionConstructor;
13
+ default: undefined;
14
+ };
15
+ tianditu: {
16
+ type: () => TiandituQuery;
17
+ default: () => {
18
+ specify: string;
19
+ queryType: string;
20
+ start: string;
21
+ count: string;
22
+ dataTypes: string;
23
+ show: string;
24
+ };
25
+ };
26
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
27
+ data: {
28
+ type: () => MapSearchItem[];
29
+ default: () => never[];
30
+ };
31
+ round: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ func: {
36
+ type: FunctionConstructor;
37
+ default: undefined;
38
+ };
39
+ tianditu: {
40
+ type: () => TiandituQuery;
41
+ default: () => {
42
+ specify: string;
43
+ queryType: string;
44
+ start: string;
45
+ count: string;
46
+ dataTypes: string;
47
+ show: string;
48
+ };
49
+ };
50
+ }>> & Readonly<{}>, {
51
+ data: MapSearchItem[];
52
+ round: boolean;
53
+ func: Function;
54
+ tianditu: TiandituQuery;
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
56
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as GisMapSwitch } from './index.vue';
2
+ export default GisMapSwitch;
@@ -0,0 +1,37 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ data: {
3
+ type: ObjectConstructor;
4
+ default: () => {
5
+ layers: never[];
6
+ extensions: never[];
7
+ };
8
+ };
9
+ extensionsPosition: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ data: {
15
+ type: ObjectConstructor;
16
+ default: () => {
17
+ layers: never[];
18
+ extensions: never[];
19
+ };
20
+ };
21
+ extensionsPosition: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ }>> & Readonly<{}>, {
26
+ data: Record<string, any>;
27
+ extensionsPosition: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
29
+ left?(_: {}): any;
30
+ right?(_: {}): any;
31
+ }>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,2 @@
1
+ import { default as GisMapTools } from './index.vue';
2
+ export default GisMapTools;
@@ -0,0 +1,40 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ data: {
3
+ type: {
4
+ (arrayLength: number): any[];
5
+ (...items: any[]): any[];
6
+ new (arrayLength: number): any[];
7
+ new (...items: any[]): any[];
8
+ isArray(arg: any): arg is any[];
9
+ readonly prototype: any[];
10
+ from<T>(arrayLike: ArrayLike<T>): T[];
11
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
12
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
13
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
14
+ of<T>(...items: T[]): T[];
15
+ readonly [Symbol.species]: ArrayConstructor;
16
+ };
17
+ default: () => never[];
18
+ };
19
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
+ data: {
21
+ type: {
22
+ (arrayLength: number): any[];
23
+ (...items: any[]): any[];
24
+ new (arrayLength: number): any[];
25
+ new (...items: any[]): any[];
26
+ isArray(arg: any): arg is any[];
27
+ readonly prototype: any[];
28
+ from<T>(arrayLike: ArrayLike<T>): T[];
29
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
30
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
31
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
32
+ of<T>(...items: T[]): T[];
33
+ readonly [Symbol.species]: ArrayConstructor;
34
+ };
35
+ default: () => never[];
36
+ };
37
+ }>> & Readonly<{}>, {
38
+ data: any[];
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
40
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { PropType } from 'vue';
2
+ import { SwitchLayerPayload } from '../../core/event';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ data: {
5
+ type: PropType<SwitchLayerPayload[]>;
6
+ default: () => never[];
7
+ };
8
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ data: {
10
+ type: PropType<SwitchLayerPayload[]>;
11
+ default: () => never[];
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ data: SwitchLayerPayload[];
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -0,0 +1,75 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ text: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ iconName: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ placement: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ visible: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ trigger: {
19
+ type: StringConstructor;
20
+ default: undefined;
21
+ };
22
+ width: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ index: {
27
+ type: NumberConstructor;
28
+ required: true;
29
+ };
30
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
+ text: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ iconName: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ placement: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ visible: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ trigger: {
48
+ type: StringConstructor;
49
+ default: undefined;
50
+ };
51
+ width: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ index: {
56
+ type: NumberConstructor;
57
+ required: true;
58
+ };
59
+ }>> & Readonly<{}>, {
60
+ visible: boolean;
61
+ iconName: string;
62
+ text: string;
63
+ width: number;
64
+ placement: string;
65
+ trigger: string;
66
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
67
+ btn?(_: {}): any;
68
+ default?(_: {}): any;
69
+ }>;
70
+ export default _default;
71
+ type __VLS_WithTemplateSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
@@ -0,0 +1,21 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ float: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ float: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ float: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 组合式函数统一导出
3
+ */
4
+ export { useMap, useMapState, useViewState, useMapEvent, useMapReady, provideMap, installMapPlugin, MapContextKey, MapStateKey, } from './useMap';
5
+ export { useLayer, useLayers, useLayerGroup, useLayerManager, } from './useLayer';
6
+ export type { UseLayerOptions } from './useLayer';
7
+ export { useMarker, useMarkers, useMarkerManager, } from './useMarker';
8
+ export type { UseMarkerOptions } from './useMarker';
9
+ export { useControl, useTDTControl, useTerrainControl, usePlaceholderControl, } from './useControl';
10
+ export { useSearch, } from './useSearch';
11
+ export type { UseSearchReturn } from './useSearch';
12
+ export { useDraw, } from './useDraw';
13
+ export type { UseDrawOptions, UseDrawReturn } from './useDraw';
@@ -0,0 +1,39 @@
1
+ import { Ref } from 'vue';
2
+ import { MapContext } from '../services';
3
+ import { default as TDTManager } from '../manager/TDTManager';
4
+ import { default as TerrainManager } from '../manager/TerrainManager';
5
+ import { default as PlaceholderManager } from '../manager/PlaceholderManager';
6
+ import { default as LayerManager } from '../manager/LayerManager';
7
+ /**
8
+ * 天地图控制
9
+ */
10
+ export declare function useTDTControl(): Ref<TDTManager | null>;
11
+ /**
12
+ * 地形控制
13
+ */
14
+ export declare function useTerrainControl(): Ref<TerrainManager | null>;
15
+ /**
16
+ * 占位符控制
17
+ */
18
+ export declare function usePlaceholderControl(): Ref<PlaceholderManager | null>;
19
+ /**
20
+ * 图层管理器控制
21
+ */
22
+ export declare function useLayerManagerControl(): Ref<LayerManager | null>;
23
+ /**
24
+ * 组合控制
25
+ * 一次性获取所有管理器
26
+ */
27
+ export declare function useControl(): {
28
+ /** 天地图管理器 */
29
+ tdt: Ref<TDTManager | null, TDTManager | null>;
30
+ /** 地形管理器 */
31
+ terrain: Ref<TerrainManager | null, TerrainManager | null>;
32
+ /** 占位符管理器 */
33
+ placeholder: Ref<PlaceholderManager | null, PlaceholderManager | null>;
34
+ /** 图层管理器 */
35
+ layer: Ref<LayerManager | null, LayerManager | null>;
36
+ /** 原始地图上下文 Ref */
37
+ context: Ref<MapContext | null, MapContext | null>;
38
+ };
39
+ export default useControl;
@@ -0,0 +1,49 @@
1
+ import { Ref } from 'vue';
2
+ import { DrawType, DrawFeature } from '../manager/mapbox/DrawManager';
3
+ /** 绘制选项 */
4
+ export interface UseDrawOptions {
5
+ /** 绘制完成回调 */
6
+ onDraw?: (feature: DrawFeature) => void;
7
+ /** 选中回调 */
8
+ onSelect?: (feature: DrawFeature | null) => void;
9
+ }
10
+ /** useDraw 返回值 */
11
+ export interface UseDrawReturn {
12
+ /** 是否正在绘制 */
13
+ isDrawing: Ref<boolean>;
14
+ /** 当前选中的图形 */
15
+ selected: Ref<DrawFeature | null>;
16
+ /** 当前选中的图形 ID */
17
+ selectedId: Ref<string | null>;
18
+ /** 图形数量 */
19
+ count: Ref<number>;
20
+ /** 当前绘制类型 */
21
+ drawType: Ref<DrawType | 'none'>;
22
+ /** 开始绘制 */
23
+ startDraw: (type: DrawType) => void;
24
+ /** 停止绘制 */
25
+ stopDraw: () => void;
26
+ /** 清除当前绘制 */
27
+ clearDrawing: () => void;
28
+ /** 获取所有图形 */
29
+ getAll: () => DrawFeature[];
30
+ /** 获取指定图形 */
31
+ get: (id: string) => DrawFeature | undefined;
32
+ /** 删除指定图形 */
33
+ delete: (id: string) => boolean;
34
+ /** 删除所有图形 */
35
+ clear: () => void;
36
+ /** 选中图形 */
37
+ select: (id: string) => DrawFeature | null;
38
+ /** 清除选中 */
39
+ deselect: () => void;
40
+ /** 设置绘制完成回调 */
41
+ onDraw: (callback: (feature: DrawFeature) => void) => void;
42
+ /** 设置选中回调 */
43
+ onSelect: (callback: (feature: DrawFeature | null) => void) => void;
44
+ }
45
+ /**
46
+ * 使用地图绘制功能
47
+ * @param options 回调选项
48
+ */
49
+ export declare function useDraw(options?: UseDrawOptions): UseDrawReturn;