@gis_victory/gismap 2.0.107 → 3.0.1
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 +25 -30
- package/dist/gismap.css +1 -1
- package/dist/index.d.ts +262 -520
- package/dist/index.es.js +8 -8
- package/dist/index.umd.cjs +1 -0
- package/dist/index.umd.js +1 -1
- package/package.json +11 -10
- package/dist/assets/data/mask.geojson +0 -20533
- package/dist/assets/icons/bg.png +0 -0
- package/dist/assets/icons/layer_default.png +0 -0
- package/dist/assets/icons/layer_group.png +0 -0
- package/dist/assets/icons/layer_query.png +0 -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/vite.svg +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,6 @@ import { CheckboxGroupValueType } from 'element-plus';
|
|
|
7
7
|
import { CheckboxProps } from 'element-plus';
|
|
8
8
|
import { CheckboxValueType } from 'element-plus';
|
|
9
9
|
import { CheckedInfo } from 'element-plus';
|
|
10
|
-
import { default as CompareDragPage } from './pages/CompareDragPage.vue';
|
|
11
|
-
import { default as CompareSplitPage } from './pages/CompareSplitPage.vue';
|
|
12
10
|
import { Component } from 'vue';
|
|
13
11
|
import { ComponentCustomProps } from 'vue';
|
|
14
12
|
import { ComponentInternalInstance } from 'vue';
|
|
@@ -48,6 +46,7 @@ import { RenderContentFunction } from 'element-plus';
|
|
|
48
46
|
import { RootTreeType } from 'element-plus';
|
|
49
47
|
import { SFCWithInstall } from 'element-plus/es/utils/vue/typescript.mjs';
|
|
50
48
|
import { Style } from '@gis_victory/mapbox-gl';
|
|
49
|
+
import { StyleSpecification } from '@gis_victory/gismap-gl';
|
|
51
50
|
import { Translator } from 'element-plus';
|
|
52
51
|
import { TreeData } from 'element-plus';
|
|
53
52
|
import { TreeKey } from 'element-plus';
|
|
@@ -57,350 +56,18 @@ import { TreeNodeLoadedDefaultProps } from 'element-plus';
|
|
|
57
56
|
import { TreeOptionProps } from 'element-plus';
|
|
58
57
|
import { TreeStoreNodesMap } from 'element-plus';
|
|
59
58
|
import { VNodeProps } from 'vue';
|
|
59
|
+
import { WatchHandle } from 'vue';
|
|
60
60
|
import { WritableComputedRef } from 'vue';
|
|
61
61
|
|
|
62
62
|
declare const __VLS_component: DefineComponent<Props, {
|
|
63
|
-
context: () =>
|
|
64
|
-
readonly adapter: {
|
|
65
|
-
getMap: () => any;
|
|
66
|
-
getIsMobile: () => boolean;
|
|
67
|
-
initialize: (container: HTMLElement, options: MapInitOptions) => Promise<void>;
|
|
68
|
-
dispose: () => void;
|
|
69
|
-
setView: (center: [number, number], zoom: number, options?: ViewOptions) => void;
|
|
70
|
-
flyTo: (center: [number, number], options?: FlyToOptions) => void;
|
|
71
|
-
fitBounds: (bounds: [[number, number], [number, number]], options?: FitBoundsOptions) => void;
|
|
72
|
-
getViewState: () => MapViewState;
|
|
73
|
-
getZoom: () => number;
|
|
74
|
-
setZoom: (zoom: number) => void;
|
|
75
|
-
zoomTo: (zoom: number) => void;
|
|
76
|
-
zoomIn: () => void;
|
|
77
|
-
zoomOut: () => void;
|
|
78
|
-
addMarker: (id: string, options: MarkerOptions) => any;
|
|
79
|
-
removeMarker: (id: string) => void;
|
|
80
|
-
updateMarkerPosition: (id: string, position: [number, number]) => void;
|
|
81
|
-
addPopup: (id: string, options: PopupOptions) => any;
|
|
82
|
-
removePopup: (id: string) => void;
|
|
83
|
-
onViewChange: (callback: (view: MapViewState) => void) => void;
|
|
84
|
-
onClick: (callback: (event: MapClickEvent) => void) => void;
|
|
85
|
-
onLoad: (callback: () => void) => void;
|
|
86
|
-
onError: (callback: (error: Error) => void) => void;
|
|
87
|
-
queryFeatures: (point: [number, number], options?: QueryOptions) => any[];
|
|
88
|
-
queryRenderedFeatures: (geometry: [number, number] | [[number, number], [number, number]], options?: QueryOptions) => any[];
|
|
89
|
-
};
|
|
90
|
-
readonly events: {
|
|
91
|
-
on: <K extends keyof CoreMapEvents>(event: K, handler: EventHandler<CoreMapEvents[K]>) => Unsubscribe;
|
|
92
|
-
once: <K extends keyof CoreMapEvents>(event: K, handler: EventHandler<CoreMapEvents[K]>) => Unsubscribe;
|
|
93
|
-
emit: <K extends keyof CoreMapEvents>(event: K, payload: CoreMapEvents[K]) => void;
|
|
94
|
-
off: <K extends keyof CoreMapEvents>(event?: K | undefined, handler?: EventHandler<CoreMapEvents[K]> | undefined) => void;
|
|
95
|
-
listenerCount: <K extends keyof CoreMapEvents>(event: K) => number;
|
|
96
|
-
hasListeners: <K extends keyof CoreMapEvents>(event?: K | undefined) => boolean;
|
|
97
|
-
clearHistory: () => void;
|
|
98
|
-
getHistory: () => EventHistoryItem_2[];
|
|
99
|
-
dispose: () => void;
|
|
100
|
-
};
|
|
101
|
-
readonly state: {
|
|
102
|
-
getState: () => MapState_2;
|
|
103
|
-
get: <K extends keyof MapState_2>(key: K) => MapState_2[K];
|
|
104
|
-
setState: (partial: Partial<MapState_2>) => void;
|
|
105
|
-
set: <K extends keyof MapState_2>(key: K, value: MapState_2[K]) => void;
|
|
106
|
-
subscribe: (listener: StateListener<MapState_2>) => () => void;
|
|
107
|
-
subscribeKey: <K extends keyof MapState_2>(key: K, listener: (value: MapState_2[K], prevValue: MapState_2[K]) => void) => () => void;
|
|
108
|
-
select: <R>(selector: StateSelector<MapState_2, R>) => R;
|
|
109
|
-
reset: () => void;
|
|
110
|
-
dispose: () => void;
|
|
111
|
-
};
|
|
112
|
-
readonly container?: {
|
|
113
|
-
register: <T>(token: Token<T>, provider: Provider<T>) => IContainer;
|
|
114
|
-
resolve: <T>(token: Token<T>) => T;
|
|
115
|
-
has: <T>(token: Token<T>) => boolean;
|
|
116
|
-
createScope: () => IContainer;
|
|
117
|
-
dispose: () => void;
|
|
118
|
-
} | undefined;
|
|
119
|
-
readonly tdtToken?: string | undefined;
|
|
120
|
-
readonly initIcons?: {
|
|
121
|
-
name: string;
|
|
122
|
-
url: string;
|
|
123
|
-
}[] | undefined;
|
|
124
|
-
readonly measureOptions?: {
|
|
125
|
-
sourceId?: string | undefined;
|
|
126
|
-
pointColor?: string | undefined;
|
|
127
|
-
lineColor?: string | undefined;
|
|
128
|
-
polygonColor?: string | undefined;
|
|
129
|
-
textColor?: string | undefined;
|
|
130
|
-
coordinateType?: CoordinateType | undefined;
|
|
131
|
-
lnglatDecimal?: number | undefined;
|
|
132
|
-
mercatorDecimal?: number | undefined;
|
|
133
|
-
distanceUnit?: DistanceUnit | undefined;
|
|
134
|
-
areaUnit?: AreaUnit | undefined;
|
|
135
|
-
hoverController?: {
|
|
136
|
-
blockHover: () => void;
|
|
137
|
-
unblockHover: () => void;
|
|
138
|
-
} | undefined;
|
|
139
|
-
} | undefined;
|
|
140
|
-
readonly isMobile: boolean;
|
|
141
|
-
readonly layers: {
|
|
142
|
-
initialize: () => void;
|
|
143
|
-
dispose: () => void;
|
|
144
|
-
addLayer: (config: LayerConfig_2, beforeId?: string) => LayerEntity;
|
|
145
|
-
removeLayer: (layerId: EntityId) => boolean;
|
|
146
|
-
getLayer: (layerId: EntityId) => LayerEntity | undefined;
|
|
147
|
-
getLayers: () => LayerEntity[];
|
|
148
|
-
hasLayer: (layerId: EntityId) => boolean;
|
|
149
|
-
updateLayer: (layerId: EntityId, updates: Partial<LayerConfig_2>) => LayerEntity;
|
|
150
|
-
showLayer: (layerId: EntityId) => void;
|
|
151
|
-
hideLayer: (layerId: EntityId) => void;
|
|
152
|
-
toggleLayer: (layerId: EntityId) => boolean;
|
|
153
|
-
setLayerOpacity: (layerId: EntityId, opacity: number) => void;
|
|
154
|
-
setAllLayersOpacity: (opacity: number) => void;
|
|
155
|
-
createGroup: (name: string, id?: EntityId) => LayerGroup;
|
|
156
|
-
getGroup: (groupId: EntityId) => LayerGroup | undefined;
|
|
157
|
-
removeGroup: (groupId: EntityId) => boolean;
|
|
158
|
-
addLayerToGroup: (layerId: EntityId, groupId: EntityId) => void;
|
|
159
|
-
registerSource: (source: SourceConfig) => void;
|
|
160
|
-
addSource: (source: SourceConfig) => void;
|
|
161
|
-
getSource: (sourceId: EntityId) => SourceConfig | undefined;
|
|
162
|
-
removeSource: (sourceId: EntityId) => boolean;
|
|
163
|
-
moveLayer: (layerId: EntityId, beforeId?: string) => void;
|
|
164
|
-
getLayerOrder: () => EntityId[];
|
|
165
|
-
getLayersByType: (type: string) => LayerEntity[];
|
|
166
|
-
getVisibleLayers: () => LayerEntity[];
|
|
167
|
-
getQueryableLayers: () => LayerEntity[];
|
|
168
|
-
showAll: () => void;
|
|
169
|
-
hideAll: () => void;
|
|
170
|
-
removeAll: () => void;
|
|
171
|
-
};
|
|
172
|
-
readonly markers: {
|
|
173
|
-
initialize: () => void;
|
|
174
|
-
dispose: () => void;
|
|
175
|
-
addMarker: (config: MarkerConfig_2) => MarkerEntity;
|
|
176
|
-
removeMarker: (markerId: EntityId) => boolean;
|
|
177
|
-
getMarker: (markerId: EntityId) => MarkerEntity | undefined;
|
|
178
|
-
getMarkers: () => MarkerEntity[];
|
|
179
|
-
hasMarker: (markerId: EntityId) => boolean;
|
|
180
|
-
updateMarker: (markerId: EntityId, updates: Partial<MarkerConfig_2>) => MarkerEntity;
|
|
181
|
-
setPosition: (markerId: EntityId, position: [number, number]) => void;
|
|
182
|
-
moveMarker: (markerId: EntityId, position: [number, number], _animate?: boolean) => void;
|
|
183
|
-
showMarker: (markerId: EntityId) => void;
|
|
184
|
-
hideMarker: (markerId: EntityId) => void;
|
|
185
|
-
toggleMarker: (markerId: EntityId) => boolean;
|
|
186
|
-
openPopup: (markerId: EntityId) => void;
|
|
187
|
-
closePopup: (markerId: EntityId) => void;
|
|
188
|
-
togglePopup: (markerId: EntityId) => boolean;
|
|
189
|
-
setDraggable: (markerId: EntityId, draggable: boolean) => void;
|
|
190
|
-
startDrag: (markerId: EntityId) => void;
|
|
191
|
-
endDrag: (markerId: EntityId) => void;
|
|
192
|
-
showAll: () => void;
|
|
193
|
-
hideAll: () => void;
|
|
194
|
-
removeAll: () => void;
|
|
195
|
-
getMarkersInBounds: (bounds: [[number, number], [number, number]]) => MarkerEntity[];
|
|
196
|
-
};
|
|
197
|
-
readonly tdtManager: {
|
|
198
|
-
addImgLayer: (sourceConfig?: any, beforeId?: string) => void;
|
|
199
|
-
removeImgLayer: () => void;
|
|
200
|
-
addVecLayer: (sourceConfig?: any, beforeId?: string) => void;
|
|
201
|
-
removeVecLayer: () => void;
|
|
202
|
-
addCiaLayer: (sourceConfig?: any, slotId?: string) => void;
|
|
203
|
-
removeCiaLayer: () => void;
|
|
204
|
-
clear: () => void;
|
|
205
|
-
show: () => void;
|
|
206
|
-
hideAll: () => void;
|
|
207
|
-
hide: (layerId: string) => void;
|
|
208
|
-
} | undefined;
|
|
209
|
-
readonly terrainManager: {
|
|
210
|
-
addSource: (options: {
|
|
211
|
-
tiles: string[];
|
|
212
|
-
minzoom?: number;
|
|
213
|
-
maxzoom?: number;
|
|
214
|
-
tileSize?: number;
|
|
215
|
-
[key: string]: any;
|
|
216
|
-
}) => TerrainManager;
|
|
217
|
-
add: (options?: {
|
|
218
|
-
source?: any;
|
|
219
|
-
layer?: {
|
|
220
|
-
exaggeration?: number;
|
|
221
|
-
[key: string]: any;
|
|
222
|
-
};
|
|
223
|
-
}) => TerrainManager;
|
|
224
|
-
remove: () => TerrainManager;
|
|
225
|
-
addHillshade: () => TerrainManager;
|
|
226
|
-
removeHillshade: () => TerrainManager;
|
|
227
|
-
show: (options?: Parameters<TerrainManager["add"]>[0]) => TerrainManager;
|
|
228
|
-
hide: () => TerrainManager;
|
|
229
|
-
} | undefined;
|
|
230
|
-
readonly radarManager: {
|
|
231
|
-
add: (options: RadarOptions) => RadarManager;
|
|
232
|
-
startScan: () => RadarManager;
|
|
233
|
-
stopScan: () => RadarManager;
|
|
234
|
-
remove: () => void;
|
|
235
|
-
} | undefined;
|
|
236
|
-
readonly iconManager: {
|
|
237
|
-
load: (icons: IconConfig_2[]) => Promise<void>;
|
|
238
|
-
} | undefined;
|
|
239
|
-
readonly placeholderManager: {
|
|
240
|
-
addLayer: () => void;
|
|
241
|
-
} | undefined;
|
|
242
|
-
readonly drawManager: {
|
|
243
|
-
startDraw: (type: DrawType, callback?: DrawCallback) => void;
|
|
244
|
-
stopDraw: () => void;
|
|
245
|
-
clearDrawing: () => void;
|
|
246
|
-
getAllFeatures: () => DrawFeature[];
|
|
247
|
-
getGeoJSON: () => GeoJSON.FeatureCollection;
|
|
248
|
-
getFeature: (id: string) => DrawFeature | undefined;
|
|
249
|
-
deleteFeature: (id: string) => boolean;
|
|
250
|
-
deleteAllFeatures: () => void;
|
|
251
|
-
getFeatureCount: () => number;
|
|
252
|
-
selectFeature: (id: string) => DrawFeature | null;
|
|
253
|
-
clearSelection: () => void;
|
|
254
|
-
getSelectedFeature: () => DrawFeature | null;
|
|
255
|
-
getSelectedId: () => string | null;
|
|
256
|
-
hasSelection: () => boolean;
|
|
257
|
-
getIsDrawing: () => boolean;
|
|
258
|
-
getDrawType: () => DrawType | "none";
|
|
259
|
-
onDraw: (callback: DrawCallback) => void;
|
|
260
|
-
onSelect: (callback: SelectCallback) => void;
|
|
261
|
-
destroy: () => void;
|
|
262
|
-
} | undefined;
|
|
263
|
-
readonly measureManager: {
|
|
264
|
-
startMeasure: (type: MeasureType, callback?: MeasureCallback) => void;
|
|
265
|
-
stopMeasure: () => void;
|
|
266
|
-
clearMeasuring: () => void;
|
|
267
|
-
getAllResults: () => MeasureResult[];
|
|
268
|
-
getResult: (id: string) => MeasureResult | undefined;
|
|
269
|
-
deleteResult: (id: string) => boolean;
|
|
270
|
-
clearAllResults: () => void;
|
|
271
|
-
getResultCount: () => number;
|
|
272
|
-
getIsMeasuring: () => boolean;
|
|
273
|
-
getMeasureType: () => MeasureType;
|
|
274
|
-
updateOptions: (options: Partial<MeasureManagerOptions>) => void;
|
|
275
|
-
destroy: () => void;
|
|
276
|
-
} | undefined;
|
|
277
|
-
readonly layerManager: {
|
|
278
|
-
queryLayerIds: string[];
|
|
279
|
-
setHoverEnabledChecker: (checker: () => boolean) => void;
|
|
280
|
-
addSource: (source: any, layerConfig?: any) => void;
|
|
281
|
-
addLayer: (layerConfig: any, beforeLayerId?: string) => LayerManager;
|
|
282
|
-
addGroupLayer: (layer: any) => void;
|
|
283
|
-
removeLayer: (layer: any) => void;
|
|
284
|
-
removeGroupLayer: (layer: any) => void;
|
|
285
|
-
getCheckedLayers: () => any[];
|
|
286
|
-
getCheckedParentLayers: (id: string) => any;
|
|
287
|
-
getLayer: (id: string) => any;
|
|
288
|
-
moveLayerUp: (layerId: string) => void;
|
|
289
|
-
moveLayerDown: (layerId: string) => void;
|
|
290
|
-
moveLayerToTop: (layerId: string) => void;
|
|
291
|
-
moveLayerToBottom: (layerId: string) => void;
|
|
292
|
-
getTargetLayerId: (layerId: string, type: string) => any;
|
|
293
|
-
getLayerIdsInSlot: (slotId: string) => any;
|
|
294
|
-
readonly name: string;
|
|
295
|
-
readonly isInitialized: boolean;
|
|
296
|
-
readonly isEnabled: boolean;
|
|
297
|
-
initialize: () => void;
|
|
298
|
-
dispose: () => void;
|
|
299
|
-
enable: () => void;
|
|
300
|
-
disable: () => void;
|
|
301
|
-
reset: () => void;
|
|
302
|
-
} | undefined;
|
|
303
|
-
readonly queryLayerManager: {
|
|
304
|
-
bringToTop: () => void;
|
|
305
|
-
setFeatures: (features: any[], wktField?: string) => void;
|
|
306
|
-
addFeatures: (features: any[], wktField?: string) => void;
|
|
307
|
-
getFeatures: () => GeoJSON.Feature[];
|
|
308
|
-
getWktStrings: () => string[];
|
|
309
|
-
clear: () => void;
|
|
310
|
-
getPointLayerId: () => string;
|
|
311
|
-
getLineLayerId: () => string;
|
|
312
|
-
getPolygonLayerId: () => string;
|
|
313
|
-
getSourceId: () => string;
|
|
314
|
-
readonly name: string;
|
|
315
|
-
readonly isInitialized: boolean;
|
|
316
|
-
readonly isEnabled: boolean;
|
|
317
|
-
initialize: () => void;
|
|
318
|
-
dispose: () => void;
|
|
319
|
-
enable: () => void;
|
|
320
|
-
disable: () => void;
|
|
321
|
-
reset: () => void;
|
|
322
|
-
} | undefined;
|
|
323
|
-
readonly maskManager: {
|
|
324
|
-
add: (options: MaskOptions) => MaskManager;
|
|
325
|
-
addLine: (style?: any) => void;
|
|
326
|
-
remove: () => void;
|
|
327
|
-
updateData: (data: any) => void;
|
|
328
|
-
setVisible: (visible: boolean) => void;
|
|
329
|
-
getLayerId: () => string;
|
|
330
|
-
getLineLayerId: () => string;
|
|
331
|
-
getInnerLineLayerId: () => string;
|
|
332
|
-
} | undefined;
|
|
333
|
-
readonly templateManager: {
|
|
334
|
-
initialize: (templateItems: TemplateItem[]) => void;
|
|
335
|
-
getTemplate: (templateId: string) => TemplateItem | undefined;
|
|
336
|
-
addTemplate: (templateId: string, template: TemplateItem) => void;
|
|
337
|
-
removeTemplate: (templateId: string) => void;
|
|
338
|
-
updateTemplate: (templateId: string, template: TemplateItem) => void;
|
|
339
|
-
getAllTemplates: () => Map<string, TemplateItem>;
|
|
340
|
-
getTemplateIds: () => string[];
|
|
341
|
-
hasTemplate: (templateId: string) => boolean;
|
|
342
|
-
clear: () => void;
|
|
343
|
-
} | undefined;
|
|
344
|
-
readonly styleManager: {
|
|
345
|
-
applyStyle: (layerId: string, style: string) => void;
|
|
346
|
-
resetStyle: (layerId: string) => void;
|
|
347
|
-
hasLayer: (layerId: string) => boolean;
|
|
348
|
-
} | undefined;
|
|
349
|
-
readonly markerManager: {
|
|
350
|
-
setOnMarkerClick: (callback: (data: MarkerData) => void) => void;
|
|
351
|
-
addMarker: (data: MarkerData) => void;
|
|
352
|
-
addMarkers: (dataArray: MarkerData[]) => void;
|
|
353
|
-
removeMarker: (id: string) => void;
|
|
354
|
-
removeMarkers: (ids: string[]) => void;
|
|
355
|
-
clear: () => void;
|
|
356
|
-
getMarkers: () => Marker[];
|
|
357
|
-
getMarkerData: () => MarkerData[];
|
|
358
|
-
getMarkerDataById: (id: string) => MarkerData | undefined;
|
|
359
|
-
getMarker: (id: string) => Marker | undefined;
|
|
360
|
-
flyTo: (id: string, zoom?: number, isShowPopup?: boolean) => void;
|
|
361
|
-
} | undefined;
|
|
362
|
-
initialize: (services: {
|
|
363
|
-
layerService: LayerService;
|
|
364
|
-
markerService: MarkerService;
|
|
365
|
-
}) => void;
|
|
366
|
-
dispose: () => void;
|
|
367
|
-
getMap: () => any;
|
|
368
|
-
setView: (center: [number, number], zoom: number, options?: {
|
|
369
|
-
bearing?: number;
|
|
370
|
-
pitch?: number;
|
|
371
|
-
animate?: boolean;
|
|
372
|
-
}) => void;
|
|
373
|
-
flyTo: (center: [number, number], options?: {
|
|
374
|
-
zoom?: number;
|
|
375
|
-
duration?: number;
|
|
376
|
-
}) => void;
|
|
377
|
-
fitBounds: (bounds: [[number, number], [number, number]], options?: {
|
|
378
|
-
padding?: number;
|
|
379
|
-
}) => void;
|
|
380
|
-
getViewState: () => ViewState_2;
|
|
381
|
-
getZoom: () => number;
|
|
382
|
-
setZoom: (zoom: number) => void;
|
|
383
|
-
zoomTo: (zoom: number) => void;
|
|
384
|
-
zoomIn: () => void;
|
|
385
|
-
zoomOut: () => void;
|
|
386
|
-
getInitialViewState: () => ViewState_2 | null;
|
|
387
|
-
getSourceBounds: () => [number, number, number, number] | null;
|
|
388
|
-
setSourceBounds: (bounds: [number, number, number, number] | null) => void;
|
|
389
|
-
readonly isReady: boolean;
|
|
390
|
-
setHoverEnabled: (enabled: boolean) => void;
|
|
391
|
-
isHoverEnabled: () => boolean;
|
|
392
|
-
blockHover: () => void;
|
|
393
|
-
unblockHover: () => void;
|
|
394
|
-
on: <K extends keyof CoreMapEvents>(event: K, handler: (payload: CoreMapEvents[K]) => void) => () => void;
|
|
395
|
-
once: <K extends keyof CoreMapEvents>(event: K, handler: (payload: CoreMapEvents[K]) => void) => () => void;
|
|
396
|
-
} | null;
|
|
63
|
+
context: () => MapContext | null;
|
|
397
64
|
map: () => any;
|
|
398
65
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
399
|
-
ready: (context: MapContext) => any;
|
|
400
66
|
click: (event: {
|
|
401
67
|
coordinates: [number, number];
|
|
402
68
|
feature?: any;
|
|
403
69
|
}) => any;
|
|
70
|
+
ready: (context: MapContext) => any;
|
|
404
71
|
load: (context: MapContext) => any;
|
|
405
72
|
viewChange: (view: {
|
|
406
73
|
center: [number, number];
|
|
@@ -409,11 +76,11 @@ pitch: number;
|
|
|
409
76
|
bearing: number;
|
|
410
77
|
}) => any;
|
|
411
78
|
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
412
|
-
onReady?: ((context: MapContext) => any) | undefined;
|
|
413
79
|
onClick?: ((event: {
|
|
414
80
|
coordinates: [number, number];
|
|
415
81
|
feature?: any;
|
|
416
82
|
}) => any) | undefined;
|
|
83
|
+
onReady?: ((context: MapContext) => any) | undefined;
|
|
417
84
|
onLoad?: ((context: MapContext) => any) | undefined;
|
|
418
85
|
onViewChange?: ((view: {
|
|
419
86
|
center: [number, number];
|
|
@@ -423,18 +90,18 @@ bearing: number;
|
|
|
423
90
|
}) => any) | undefined;
|
|
424
91
|
}>, {
|
|
425
92
|
center: [number, number];
|
|
426
|
-
bearing: number;
|
|
427
93
|
zoom: number;
|
|
94
|
+
bearing: number;
|
|
428
95
|
pitch: number;
|
|
429
96
|
accessToken: string;
|
|
430
|
-
adapter: MapAdapter;
|
|
431
97
|
tdtToken: string;
|
|
432
98
|
initIcons: Array<{
|
|
433
99
|
name: string;
|
|
434
100
|
url: string;
|
|
435
101
|
}>;
|
|
102
|
+
adapter: MapAdapter;
|
|
436
103
|
options: Partial<MapInitOptions>;
|
|
437
|
-
theme:
|
|
104
|
+
theme: string;
|
|
438
105
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
439
106
|
containerRef: HTMLDivElement;
|
|
440
107
|
mapContainerRef: HTMLDivElement;
|
|
@@ -641,6 +308,24 @@ export declare abstract class BasePlugin implements IPlugin {
|
|
|
641
308
|
uninstall?(context: IGISMap): void;
|
|
642
309
|
}
|
|
643
310
|
|
|
311
|
+
export declare interface BusinessLayerOptions {
|
|
312
|
+
title?: string;
|
|
313
|
+
showInTree?: boolean;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/** 业务图层与 SDK 渲染层的对应关系。 */
|
|
317
|
+
export declare interface BusinessLayerRecord {
|
|
318
|
+
readonly id: string;
|
|
319
|
+
readonly title: string;
|
|
320
|
+
readonly renderLayerIds: readonly string[];
|
|
321
|
+
readonly sources: ReadonlyArray<{
|
|
322
|
+
id: string;
|
|
323
|
+
ownership: 'managed' | 'external';
|
|
324
|
+
}>;
|
|
325
|
+
readonly showInTree: boolean;
|
|
326
|
+
readonly visible: boolean;
|
|
327
|
+
}
|
|
328
|
+
|
|
644
329
|
/** 类提供者 */
|
|
645
330
|
declare interface ClassProvider<T> {
|
|
646
331
|
type: 'class';
|
|
@@ -648,7 +333,18 @@ declare interface ClassProvider<T> {
|
|
|
648
333
|
singleton?: boolean;
|
|
649
334
|
}
|
|
650
335
|
|
|
651
|
-
export
|
|
336
|
+
export declare const CompareDragPage: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
337
|
+
ready: (...args: any[]) => void;
|
|
338
|
+
}, string, PublicProps, Readonly<Props_2> & Readonly<{
|
|
339
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
340
|
+
}>, {
|
|
341
|
+
defaultDirection: "vertical" | "horizontal";
|
|
342
|
+
layerVisible: boolean;
|
|
343
|
+
leftData: any;
|
|
344
|
+
rightData: any;
|
|
345
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
346
|
+
comparePageContainer: HTMLDivElement;
|
|
347
|
+
}, HTMLDivElement>;
|
|
652
348
|
|
|
653
349
|
declare type CompareEventType = 'slideend';
|
|
654
350
|
|
|
@@ -657,7 +353,18 @@ declare interface CompareOptions {
|
|
|
657
353
|
mousemove?: boolean;
|
|
658
354
|
}
|
|
659
355
|
|
|
660
|
-
export
|
|
356
|
+
export declare const CompareSplitPage: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
357
|
+
ready: (...args: any[]) => void;
|
|
358
|
+
}, string, PublicProps, Readonly<Props_3> & Readonly<{
|
|
359
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
360
|
+
}>, {
|
|
361
|
+
defaultDirection: "vertical" | "horizontal";
|
|
362
|
+
layerVisible: boolean;
|
|
363
|
+
leftData: any;
|
|
364
|
+
rightData: any;
|
|
365
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
366
|
+
comparePageContainer: HTMLDivElement;
|
|
367
|
+
}, HTMLDivElement>;
|
|
661
368
|
|
|
662
369
|
/**
|
|
663
370
|
* 配置管理器
|
|
@@ -677,7 +384,9 @@ declare class ConfigManager {
|
|
|
677
384
|
/**
|
|
678
385
|
* 获取样式配置
|
|
679
386
|
*/
|
|
680
|
-
getStyleConfig(): GISMapStyleConfig;
|
|
387
|
+
getStyleConfig(engine?: 'mapbox'): GISMapStyleConfig;
|
|
388
|
+
getStyleConfig(engine: 'maplibre'): GISMapStyleConfig<StyleSpecification>;
|
|
389
|
+
getStyleConfig(engine: MapEngine): GISMapStyleConfig | GISMapStyleConfig<StyleSpecification>;
|
|
681
390
|
/**
|
|
682
391
|
* 获取图标配置
|
|
683
392
|
*/
|
|
@@ -747,6 +456,7 @@ declare type CoordinateType = 'lnglat' | 'mercator';
|
|
|
747
456
|
|
|
748
457
|
/** 地图核心事件 */
|
|
749
458
|
declare interface CoreMapEvents extends EventMap {
|
|
459
|
+
'map:click': MapClickEvent;
|
|
750
460
|
'map:load': {
|
|
751
461
|
map: any;
|
|
752
462
|
};
|
|
@@ -924,6 +634,8 @@ declare class DrawManager {
|
|
|
924
634
|
private selectedFeatureId;
|
|
925
635
|
private drawCallback;
|
|
926
636
|
private selectCallback;
|
|
637
|
+
private drawListeners;
|
|
638
|
+
private selectListeners;
|
|
927
639
|
private boundHandleMapClick;
|
|
928
640
|
private boundHandleMapMouseMove;
|
|
929
641
|
private boundHandleMapDoubleClick;
|
|
@@ -1009,6 +721,8 @@ declare class DrawManager {
|
|
|
1009
721
|
* 设置选中回调
|
|
1010
722
|
*/
|
|
1011
723
|
onSelect(callback: SelectCallback): void;
|
|
724
|
+
subscribeDraw(callback: DrawCallback): () => void;
|
|
725
|
+
subscribeSelect(callback: SelectCallback): () => void;
|
|
1012
726
|
/** 仅在未屏蔽时调用一次 blockHover,保证与 unblock 成对 */
|
|
1013
727
|
private blockHoverIfNeeded;
|
|
1014
728
|
/** 仅在已屏蔽时调用一次 unblockHover */
|
|
@@ -1239,7 +953,11 @@ export declare const getEndpoint: (key: string) => string;
|
|
|
1239
953
|
*/
|
|
1240
954
|
export declare const getFullUrl: (key: string) => string;
|
|
1241
955
|
|
|
1242
|
-
export declare const GisMapCompass: DefineComponent< {
|
|
956
|
+
export declare const GisMapCompass: DefineComponent< {
|
|
957
|
+
theme?: "light" | "tech";
|
|
958
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
959
|
+
theme?: "light" | "tech";
|
|
960
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
1243
961
|
|
|
1244
962
|
export declare const GisMapContainer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1245
963
|
|
|
@@ -1337,6 +1055,8 @@ export declare interface GISMapFullConfig {
|
|
|
1337
1055
|
map: Partial<GISMapOptions>;
|
|
1338
1056
|
/** 样式配置 */
|
|
1339
1057
|
styles: GISMapStyleConfig;
|
|
1058
|
+
/** MapLibre 的样式配置 */
|
|
1059
|
+
maplibreStyles?: GISMapStyleConfig<StyleSpecification>;
|
|
1340
1060
|
/** 默认图层 */
|
|
1341
1061
|
defaultLayers: LayerConfig[];
|
|
1342
1062
|
/** 图标配置 */
|
|
@@ -1514,8 +1234,8 @@ type: BooleanConstructor;
|
|
|
1514
1234
|
default: boolean;
|
|
1515
1235
|
};
|
|
1516
1236
|
}>> & Readonly<{}>, {
|
|
1517
|
-
data: any[];
|
|
1518
1237
|
title: string;
|
|
1238
|
+
data: any[];
|
|
1519
1239
|
width: number;
|
|
1520
1240
|
prefix: string;
|
|
1521
1241
|
toggleFavorite: Function;
|
|
@@ -1593,6 +1313,8 @@ onToggleLegend?: ((...args: any[]) => any) | undefined;
|
|
|
1593
1313
|
}>, {
|
|
1594
1314
|
filter: (value: string) => void;
|
|
1595
1315
|
setCheckedKeys: (keys: string[]) => void;
|
|
1316
|
+
expandAll: () => void;
|
|
1317
|
+
collapseAll: () => void;
|
|
1596
1318
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1597
1319
|
check: (...args: any[]) => void;
|
|
1598
1320
|
toggleFavorite: (...args: any[]) => void;
|
|
@@ -2100,7 +1822,8 @@ doCreateChildren: (array: TreeNodeData[], defaultProps?: TreeNodeLoadedDefaultPr
|
|
|
2100
1822
|
collapse: () => void;
|
|
2101
1823
|
shouldLoadData: () => boolean;
|
|
2102
1824
|
updateLeafState: () => void;
|
|
2103
|
-
setChecked: (value?: boolean | string, deep
|
|
1825
|
+
setChecked: (value?: boolean | string, deep
|
|
1826
|
+
/** @type { [typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ] } */ ? /** @type { [typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ] } */: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
2104
1827
|
getChildren: (forceInit?: boolean) => TreeNodeData | TreeNodeData[] | null;
|
|
2105
1828
|
updateChildren: () => void;
|
|
2106
1829
|
loadData: (callback: (data?: TreeNodeData[]) => void, defaultProps?: TreeNodeLoadedDefaultProps) => void;
|
|
@@ -3738,7 +3461,8 @@ doCreateChildren: (array: TreeNodeData[], defaultProps?: TreeNodeLoadedDefaultPr
|
|
|
3738
3461
|
collapse: () => void;
|
|
3739
3462
|
shouldLoadData: () => boolean;
|
|
3740
3463
|
updateLeafState: () => void;
|
|
3741
|
-
setChecked: (value?: boolean | string, deep
|
|
3464
|
+
setChecked: (value?: boolean | string, deep
|
|
3465
|
+
/** @type { [typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ] } */ ? /** @type { [typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ] } */: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
3742
3466
|
getChildren: (forceInit?: boolean) => TreeNodeData | TreeNodeData[] | null;
|
|
3743
3467
|
updateChildren: () => void;
|
|
3744
3468
|
loadData: (callback: (data?: TreeNodeData[]) => void, defaultProps?: TreeNodeLoadedDefaultProps) => void;
|
|
@@ -4588,6 +4312,8 @@ onToggleLegend?: ((...args: any[]) => any) | undefined;
|
|
|
4588
4312
|
}>, {
|
|
4589
4313
|
filter: (value: string) => void;
|
|
4590
4314
|
setCheckedKeys: (keys: string[]) => void;
|
|
4315
|
+
expandAll: () => void;
|
|
4316
|
+
collapseAll: () => void;
|
|
4591
4317
|
}, {}, {}, {}, {
|
|
4592
4318
|
data: any[];
|
|
4593
4319
|
prefix: string;
|
|
@@ -4613,7 +4339,7 @@ title: string;
|
|
|
4613
4339
|
|
|
4614
4340
|
export declare const GisMapMeasure: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
4615
4341
|
|
|
4616
|
-
export declare const GisMapMobileBarFloatPanelItem:
|
|
4342
|
+
export declare const GisMapMobileBarFloatPanelItem: __VLS_WithTemplateSlots_6<DefineComponent<ExtractPropTypes< {
|
|
4617
4343
|
text: {
|
|
4618
4344
|
type: StringConstructor;
|
|
4619
4345
|
default: string;
|
|
@@ -4700,7 +4426,7 @@ contentDraggable: boolean;
|
|
|
4700
4426
|
default?(_: {}): any;
|
|
4701
4427
|
}>;
|
|
4702
4428
|
|
|
4703
|
-
export declare const GisMapMobileBarGroup:
|
|
4429
|
+
export declare const GisMapMobileBarGroup: __VLS_WithTemplateSlots_4<DefineComponent<ExtractPropTypes< {
|
|
4704
4430
|
float: {
|
|
4705
4431
|
type: StringConstructor;
|
|
4706
4432
|
default: string;
|
|
@@ -4716,7 +4442,7 @@ float: string;
|
|
|
4716
4442
|
default?(_: {}): any;
|
|
4717
4443
|
}>;
|
|
4718
4444
|
|
|
4719
|
-
export declare const GisMapMobileBarPopupItem:
|
|
4445
|
+
export declare const GisMapMobileBarPopupItem: __VLS_WithTemplateSlots_5<DefineComponent<ExtractPropTypes< {
|
|
4720
4446
|
text: {
|
|
4721
4447
|
type: StringConstructor;
|
|
4722
4448
|
default: string;
|
|
@@ -4795,7 +4521,7 @@ overlay: boolean;
|
|
|
4795
4521
|
default?(_: {}): any;
|
|
4796
4522
|
}>;
|
|
4797
4523
|
|
|
4798
|
-
export declare const GisMapMobileLayerBox:
|
|
4524
|
+
export declare const GisMapMobileLayerBox: __VLS_WithTemplateSlots_9<DefineComponent<ExtractPropTypes< {
|
|
4799
4525
|
title: {
|
|
4800
4526
|
type: StringConstructor;
|
|
4801
4527
|
default: undefined;
|
|
@@ -4811,7 +4537,7 @@ title: string;
|
|
|
4811
4537
|
default?(_: {}): any;
|
|
4812
4538
|
}>;
|
|
4813
4539
|
|
|
4814
|
-
export declare const GisMapMobileLayerPanel:
|
|
4540
|
+
export declare const GisMapMobileLayerPanel: __VLS_WithTemplateSlots_8<DefineComponent<ExtractPropTypes< {
|
|
4815
4541
|
title: {
|
|
4816
4542
|
type: StringConstructor;
|
|
4817
4543
|
default: string;
|
|
@@ -4956,8 +4682,8 @@ default: () => never[];
|
|
|
4956
4682
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
4957
4683
|
"onLayer-toggle"?: ((...args: any[]) => any) | undefined;
|
|
4958
4684
|
}>, {
|
|
4959
|
-
data: any[];
|
|
4960
4685
|
title: string;
|
|
4686
|
+
data: any[];
|
|
4961
4687
|
checkedLinkage: boolean;
|
|
4962
4688
|
defaultCheckedIds: string[];
|
|
4963
4689
|
showSearch: boolean;
|
|
@@ -4975,6 +4701,10 @@ expandedKeys: {
|
|
|
4975
4701
|
type: () => string[];
|
|
4976
4702
|
default: () => never[];
|
|
4977
4703
|
};
|
|
4704
|
+
checkedKeys: {
|
|
4705
|
+
type: () => string[];
|
|
4706
|
+
default: () => never[];
|
|
4707
|
+
};
|
|
4978
4708
|
getIcon: {
|
|
4979
4709
|
type: FunctionConstructor;
|
|
4980
4710
|
required: true;
|
|
@@ -4995,6 +4725,10 @@ expandedKeys: {
|
|
|
4995
4725
|
type: () => string[];
|
|
4996
4726
|
default: () => never[];
|
|
4997
4727
|
};
|
|
4728
|
+
checkedKeys: {
|
|
4729
|
+
type: () => string[];
|
|
4730
|
+
default: () => never[];
|
|
4731
|
+
};
|
|
4998
4732
|
getIcon: {
|
|
4999
4733
|
type: FunctionConstructor;
|
|
5000
4734
|
required: true;
|
|
@@ -5003,6 +4737,7 @@ required: true;
|
|
|
5003
4737
|
"onToggle-expand"?: ((...args: any[]) => any) | undefined;
|
|
5004
4738
|
"onLayer-toggle"?: ((...args: any[]) => any) | undefined;
|
|
5005
4739
|
}>, {
|
|
4740
|
+
checkedKeys: string[];
|
|
5006
4741
|
level: number;
|
|
5007
4742
|
expandedKeys: string[];
|
|
5008
4743
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -5138,7 +4873,7 @@ export declare interface GISMapOptions extends Omit<mapboxgl_2.MapboxOptions, 'c
|
|
|
5138
4873
|
isMobile?: boolean;
|
|
5139
4874
|
}
|
|
5140
4875
|
|
|
5141
|
-
export declare const GisMapPopupBar:
|
|
4876
|
+
export declare const GisMapPopupBar: __VLS_WithTemplateSlots_2<DefineComponent<ExtractPropTypes< {
|
|
5142
4877
|
float: {
|
|
5143
4878
|
type: StringConstructor;
|
|
5144
4879
|
default: string;
|
|
@@ -5154,7 +4889,7 @@ float: string;
|
|
|
5154
4889
|
default?(_: {}): any;
|
|
5155
4890
|
}>;
|
|
5156
4891
|
|
|
5157
|
-
export declare const GisMapPopupBarItem:
|
|
4892
|
+
export declare const GisMapPopupBarItem: __VLS_WithTemplateSlots_3<DefineComponent<ExtractPropTypes< {
|
|
5158
4893
|
text: {
|
|
5159
4894
|
type: StringConstructor;
|
|
5160
4895
|
default: string;
|
|
@@ -5240,7 +4975,7 @@ downloadUrl: Function;
|
|
|
5240
4975
|
popupRef: HTMLDivElement;
|
|
5241
4976
|
}, HTMLDivElement>;
|
|
5242
4977
|
|
|
5243
|
-
export declare const GisMapQueryResult:
|
|
4978
|
+
export declare const GisMapQueryResult: __VLS_WithTemplateSlots_10<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
5244
4979
|
|
|
5245
4980
|
export declare const GisMapSearch: DefineComponent<ExtractPropTypes< {
|
|
5246
4981
|
data: {
|
|
@@ -5286,7 +5021,7 @@ func: Function;
|
|
|
5286
5021
|
/**
|
|
5287
5022
|
* 地图样式配置
|
|
5288
5023
|
*/
|
|
5289
|
-
export declare interface GISMapStyleConfig {
|
|
5024
|
+
export declare interface GISMapStyleConfig<Style = mapboxgl_2.StyleSpecification> {
|
|
5290
5025
|
/** 基础样式 URL */
|
|
5291
5026
|
base?: string;
|
|
5292
5027
|
/** 矢量样式 */
|
|
@@ -5296,14 +5031,14 @@ export declare interface GISMapStyleConfig {
|
|
|
5296
5031
|
/** 地形样式 */
|
|
5297
5032
|
terrain?: string;
|
|
5298
5033
|
/** 自定义样式 */
|
|
5299
|
-
custom?:
|
|
5034
|
+
custom?: Style;
|
|
5300
5035
|
/** 字体 */
|
|
5301
5036
|
glyphs?: string;
|
|
5302
5037
|
/** 图标集 */
|
|
5303
5038
|
sprites?: string;
|
|
5304
5039
|
}
|
|
5305
5040
|
|
|
5306
|
-
export declare const GisMapSwitch:
|
|
5041
|
+
export declare const GisMapSwitch: __VLS_WithTemplateSlots_7<DefineComponent<ExtractPropTypes< {
|
|
5307
5042
|
data: {
|
|
5308
5043
|
type: ObjectConstructor;
|
|
5309
5044
|
default: () => {
|
|
@@ -5802,6 +5537,10 @@ export declare interface LayerClickPayload {
|
|
|
5802
5537
|
* 图层配置
|
|
5803
5538
|
*/
|
|
5804
5539
|
export declare interface LayerConfig {
|
|
5540
|
+
place?: string;
|
|
5541
|
+
orderGroup?: LayerOrderGroup;
|
|
5542
|
+
beforeId?: string;
|
|
5543
|
+
filter?: any[];
|
|
5805
5544
|
id: string;
|
|
5806
5545
|
type: LayerType;
|
|
5807
5546
|
source?: string | GeoJSONSource | VectorSource | RasterSource;
|
|
@@ -5819,6 +5558,13 @@ export declare interface LayerConfig {
|
|
|
5819
5558
|
|
|
5820
5559
|
/** 图层配置 */
|
|
5821
5560
|
declare interface LayerConfig_2 {
|
|
5561
|
+
/** 图层树中使用的名称。 */
|
|
5562
|
+
title?: string;
|
|
5563
|
+
/** 手动添加的图层是否自动出现在 PC 和移动端图层树。 */
|
|
5564
|
+
showInTree?: boolean;
|
|
5565
|
+
/** 样式中用于定位新增图层的占位图层 ID。 */
|
|
5566
|
+
place?: string;
|
|
5567
|
+
orderGroup?: LayerOrderGroup;
|
|
5822
5568
|
id?: EntityId;
|
|
5823
5569
|
type: LayerType_2;
|
|
5824
5570
|
source?: string | SourceConfig;
|
|
@@ -5835,7 +5581,7 @@ declare interface LayerConfig_2 {
|
|
|
5835
5581
|
/** 图层实体 */
|
|
5836
5582
|
declare class LayerEntity implements IEntity, IVisible, IConfigurable<LayerConfig_2> {
|
|
5837
5583
|
readonly id: EntityId;
|
|
5838
|
-
|
|
5584
|
+
get type(): LayerType_2;
|
|
5839
5585
|
private _visible;
|
|
5840
5586
|
private _opacity;
|
|
5841
5587
|
private _config;
|
|
@@ -5896,6 +5642,8 @@ declare class LayerGroup {
|
|
|
5896
5642
|
clear(): void;
|
|
5897
5643
|
}
|
|
5898
5644
|
|
|
5645
|
+
declare const layerGroups: readonly ["basemap", "raster", "polygon", "line", "point", "basemap-label", "label", "mask", "interaction"];
|
|
5646
|
+
|
|
5899
5647
|
export declare interface LayerHoverEvent extends LayerEvent {
|
|
5900
5648
|
feature: any | null;
|
|
5901
5649
|
coordinates: [number, number] | null;
|
|
@@ -5930,11 +5678,11 @@ export declare class LayerManager extends BaseManager {
|
|
|
5930
5678
|
private eventBus?;
|
|
5931
5679
|
private checkedParentLayers;
|
|
5932
5680
|
private checkedLayers;
|
|
5681
|
+
private sources;
|
|
5682
|
+
private inactiveNext;
|
|
5933
5683
|
queryLayerIds: string[];
|
|
5934
|
-
private
|
|
5935
|
-
private
|
|
5936
|
-
private lineLayerIds;
|
|
5937
|
-
private polygonLayerIds;
|
|
5684
|
+
private businessLayers;
|
|
5685
|
+
private ownedSources;
|
|
5938
5686
|
/** hover(图层属性提示)是否启用检查器,由 MapContext 注入 */
|
|
5939
5687
|
private isHoverEnabledChecker;
|
|
5940
5688
|
constructor(adapter: VectorTileAdapter, eventBus?: IEventBus<CoreMapEvents>);
|
|
@@ -5962,32 +5710,39 @@ export declare class LayerManager extends BaseManager {
|
|
|
5962
5710
|
* 重置管理器状态
|
|
5963
5711
|
*/
|
|
5964
5712
|
protected onReset(): void;
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5713
|
+
getBusinessLayer(id: string): BusinessLayerRecord | undefined;
|
|
5714
|
+
getBusinessLayers(): BusinessLayerRecord[];
|
|
5715
|
+
getTreeCheckedKeys(): string[];
|
|
5716
|
+
initializeTreeLayer(layer: any, checked: boolean): void;
|
|
5717
|
+
setTreeLayerChecked(layer: any, checked: boolean): void;
|
|
5718
|
+
setBusinessLayerVisible(id: string, visible: boolean): boolean;
|
|
5719
|
+
private setVisibility;
|
|
5720
|
+
queryBusinessLayer(id: string, geometry: Parameters<VectorTileAdapter['queryRenderedFeatures']>[0], options?: Omit<QueryOptions, 'layers'>): any[];
|
|
5721
|
+
removeBusinessLayer(id: string): boolean;
|
|
5968
5722
|
private clearAllLayers;
|
|
5723
|
+
private trackSource;
|
|
5724
|
+
private ownsSource;
|
|
5725
|
+
private releaseSources;
|
|
5726
|
+
private saveLayer;
|
|
5969
5727
|
/**
|
|
5970
5728
|
* 添加指定数据源
|
|
5971
5729
|
* @param source 数据源
|
|
5972
5730
|
* @param layerConfig 图层配置
|
|
5973
5731
|
*/
|
|
5974
5732
|
addSource(source: any, layerConfig?: any): void;
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5733
|
+
registerSource(source?: any): void;
|
|
5734
|
+
/** 样式切换重建数据源实例时,继承原数据源的释放责任。 */
|
|
5735
|
+
restoreSourceOwnership(id: string, previous: object, current: object): void;
|
|
5736
|
+
refreshSourceOwnership(): void;
|
|
5737
|
+
/** 添加带查询交互的图层,保留原有节点配置格式。 */
|
|
5980
5738
|
addLayer(layerConfig: any, beforeLayerId?: string): this;
|
|
5981
|
-
/**
|
|
5982
|
-
* 添加指定图层组
|
|
5983
|
-
* @param layer 图层组
|
|
5984
|
-
*/
|
|
5985
5739
|
addGroupLayer(layer: any): void;
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
* @param layer 图层
|
|
5989
|
-
*/
|
|
5740
|
+
private treeRenderConfigs;
|
|
5741
|
+
private addTreeLayer;
|
|
5990
5742
|
removeLayer(layer: any): void;
|
|
5743
|
+
private unloadLayer;
|
|
5744
|
+
private removeRenderLayer;
|
|
5745
|
+
private restoredAnchor;
|
|
5991
5746
|
/**
|
|
5992
5747
|
* 移除指定图层组
|
|
5993
5748
|
* @param layer 图层组
|
|
@@ -5997,7 +5752,7 @@ export declare class LayerManager extends BaseManager {
|
|
|
5997
5752
|
* 获取所有已添加的图层
|
|
5998
5753
|
* @returns 所有图层
|
|
5999
5754
|
*/
|
|
6000
|
-
getCheckedLayers():
|
|
5755
|
+
getCheckedLayers(): VectorLayer[];
|
|
6001
5756
|
/**
|
|
6002
5757
|
* 获取指定图层的父图层组
|
|
6003
5758
|
* @param id 图层ID
|
|
@@ -6009,37 +5764,32 @@ export declare class LayerManager extends BaseManager {
|
|
|
6009
5764
|
* @param id 图层ID
|
|
6010
5765
|
* @returns 图层
|
|
6011
5766
|
*/
|
|
6012
|
-
getLayer(id: string):
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
*/
|
|
6032
|
-
moveLayerToBottom(layerId: string): void;
|
|
6033
|
-
/**
|
|
6034
|
-
* 获取图层在各类型区域中的位置信息
|
|
6035
|
-
* @param layerId 图层ID
|
|
6036
|
-
* @param type 操作类型
|
|
6037
|
-
* @returns 各类型区域的位置信息
|
|
6038
|
-
*/
|
|
6039
|
-
getTargetLayerId(layerId: string, type: string): any;
|
|
5767
|
+
getLayer(id: string): VectorLayer | null | undefined;
|
|
5768
|
+
addConfiguredLayer(id: string, config: LayerConfig_2, beforeId?: string): void;
|
|
5769
|
+
/** 登记一组共享业务 ID 的渲染层。 */
|
|
5770
|
+
addBusinessLayer(id: string, configs: readonly LayerConfig_2[], options?: BusinessLayerOptions, beforeId?: string): BusinessLayerRecord;
|
|
5771
|
+
private installConfiguredLayer;
|
|
5772
|
+
removeConfiguredLayer(id: string): void;
|
|
5773
|
+
updateConfiguredLayer(id: string, config: LayerConfig_2): void;
|
|
5774
|
+
setConfiguredVisibility(id: string, visible: boolean): void;
|
|
5775
|
+
setConfiguredOpacity(id: string, type: string, opacity: number): void;
|
|
5776
|
+
getRenderedOrder(): string[];
|
|
5777
|
+
moveConfiguredLayer(id: string, beforeId?: string): void;
|
|
5778
|
+
moveLayerUp(id: string): void;
|
|
5779
|
+
moveLayerDown(id: string): void;
|
|
5780
|
+
moveLayerToTop(id: string): void;
|
|
5781
|
+
moveLayerToBottom(id: string): void;
|
|
5782
|
+
canMoveLayer(id: string, direction: LayerMove): boolean;
|
|
5783
|
+
private move;
|
|
5784
|
+
private moveTargets;
|
|
5785
|
+
getTargetLayerId(layerId: string, type: string): string | null;
|
|
6040
5786
|
getLayerIdsInSlot(slotId: string): any;
|
|
6041
5787
|
}
|
|
6042
5788
|
|
|
5789
|
+
declare type LayerMove = 'up' | 'down' | 'top' | 'bottom';
|
|
5790
|
+
|
|
5791
|
+
export declare type LayerOrderGroup = typeof layerGroups[number];
|
|
5792
|
+
|
|
6043
5793
|
/**
|
|
6044
5794
|
* 图层绘制属性
|
|
6045
5795
|
*/
|
|
@@ -6081,12 +5831,15 @@ declare class LayerService implements IDomainService {
|
|
|
6081
5831
|
private groups;
|
|
6082
5832
|
private sources;
|
|
6083
5833
|
private layerOrder;
|
|
5834
|
+
private renderer?;
|
|
5835
|
+
private subscriptions;
|
|
6084
5836
|
private eventBus;
|
|
6085
5837
|
private stateStore;
|
|
6086
5838
|
private initialized;
|
|
6087
5839
|
constructor(config: LayerServiceConfig);
|
|
6088
5840
|
initialize(): void;
|
|
6089
5841
|
dispose(): void;
|
|
5842
|
+
connect(renderer: LayerManager): void;
|
|
6090
5843
|
/**
|
|
6091
5844
|
* 添加图层
|
|
6092
5845
|
*/
|
|
@@ -6095,6 +5848,8 @@ declare class LayerService implements IDomainService {
|
|
|
6095
5848
|
* 移除图层
|
|
6096
5849
|
*/
|
|
6097
5850
|
removeLayer(layerId: EntityId): boolean;
|
|
5851
|
+
private removeEntity;
|
|
5852
|
+
private syncVisibility;
|
|
6098
5853
|
/**
|
|
6099
5854
|
* 获取图层
|
|
6100
5855
|
*/
|
|
@@ -6139,6 +5894,7 @@ declare class LayerService implements IDomainService {
|
|
|
6139
5894
|
* 获取图层组
|
|
6140
5895
|
*/
|
|
6141
5896
|
getGroup(groupId: EntityId): LayerGroup | undefined;
|
|
5897
|
+
setGroupVisibility(groupId: EntityId, visible: boolean): void;
|
|
6142
5898
|
/**
|
|
6143
5899
|
* 删除图层组
|
|
6144
5900
|
*/
|
|
@@ -6508,6 +6264,7 @@ declare interface MapClickEvent {
|
|
|
6508
6264
|
* 协调地图所有子系统,提供对地图能力的统一访问入口
|
|
6509
6265
|
*/
|
|
6510
6266
|
export declare class MapContext {
|
|
6267
|
+
private disposed;
|
|
6511
6268
|
readonly adapter: MapAdapter;
|
|
6512
6269
|
readonly events: IEventBus<CoreMapEvents>;
|
|
6513
6270
|
readonly state: IStateStore_2<MapState_2>;
|
|
@@ -6527,21 +6284,8 @@ export declare class MapContext {
|
|
|
6527
6284
|
/** hover 临时屏蔽引用计数(测量/绘制等场景下 +1,结束后 -1) */
|
|
6528
6285
|
private _hoverBlockCount;
|
|
6529
6286
|
private initialViewState;
|
|
6530
|
-
private
|
|
6531
|
-
private
|
|
6532
|
-
private _tdtManager?;
|
|
6533
|
-
private _terrainManager?;
|
|
6534
|
-
private _placeholderManager?;
|
|
6535
|
-
private _layerManager?;
|
|
6536
|
-
private _radarManager?;
|
|
6537
|
-
private _iconManager?;
|
|
6538
|
-
private _templateManager?;
|
|
6539
|
-
private _styleManager?;
|
|
6540
|
-
private _markerManager?;
|
|
6541
|
-
private _drawManager?;
|
|
6542
|
-
private _measureManager?;
|
|
6543
|
-
private _queryLayerManager?;
|
|
6544
|
-
private _maskManager?;
|
|
6287
|
+
private services?;
|
|
6288
|
+
private managers?;
|
|
6545
6289
|
constructor(config: MapContextConfig);
|
|
6546
6290
|
/**
|
|
6547
6291
|
* 图层服务
|
|
@@ -6551,57 +6295,17 @@ export declare class MapContext {
|
|
|
6551
6295
|
* 标记服务
|
|
6552
6296
|
*/
|
|
6553
6297
|
get markers(): MarkerService;
|
|
6554
|
-
/**
|
|
6555
|
-
* 获取天地图管理器
|
|
6556
|
-
*/
|
|
6557
6298
|
get tdtManager(): TDTManager | undefined;
|
|
6558
|
-
/**
|
|
6559
|
-
* 获取地形管理器
|
|
6560
|
-
*/
|
|
6561
6299
|
get terrainManager(): TerrainManager | undefined;
|
|
6562
|
-
/**
|
|
6563
|
-
* 获取雷达管理器
|
|
6564
|
-
*/
|
|
6565
6300
|
get radarManager(): RadarManager | undefined;
|
|
6566
|
-
/**
|
|
6567
|
-
* 获取图标管理器
|
|
6568
|
-
*/
|
|
6569
6301
|
get iconManager(): IconManager | undefined;
|
|
6570
|
-
/**
|
|
6571
|
-
* 获取占位符管理器
|
|
6572
|
-
*/
|
|
6573
|
-
get placeholderManager(): PlaceholderManager | undefined;
|
|
6574
|
-
/**
|
|
6575
|
-
* 获取绘制管理器
|
|
6576
|
-
*/
|
|
6577
6302
|
get drawManager(): DrawManager | undefined;
|
|
6578
|
-
/**
|
|
6579
|
-
* 获取测量管理器
|
|
6580
|
-
*/
|
|
6581
6303
|
get measureManager(): MeasureManager | undefined;
|
|
6582
|
-
/**
|
|
6583
|
-
* 获取图层管理器
|
|
6584
|
-
*/
|
|
6585
6304
|
get layerManager(): LayerManager | undefined;
|
|
6586
|
-
/**
|
|
6587
|
-
* 获取查询图层管理器
|
|
6588
|
-
*/
|
|
6589
6305
|
get queryLayerManager(): QueryLayerManager | undefined;
|
|
6590
|
-
/**
|
|
6591
|
-
* 获取遮罩管理器
|
|
6592
|
-
*/
|
|
6593
6306
|
get maskManager(): MaskManager | undefined;
|
|
6594
|
-
/**
|
|
6595
|
-
* 获取模板管理器
|
|
6596
|
-
*/
|
|
6597
6307
|
get templateManager(): TemplateManager | undefined;
|
|
6598
|
-
/**
|
|
6599
|
-
* 获取样式管理器
|
|
6600
|
-
*/
|
|
6601
6308
|
get styleManager(): StyleManager | undefined;
|
|
6602
|
-
/**
|
|
6603
|
-
* 获取标记管理器
|
|
6604
|
-
*/
|
|
6605
6309
|
get markerManager(): MarkerManager | undefined;
|
|
6606
6310
|
/**
|
|
6607
6311
|
* 初始化上下文
|
|
@@ -6610,19 +6314,7 @@ export declare class MapContext {
|
|
|
6610
6314
|
layerService: LayerService;
|
|
6611
6315
|
markerService: MarkerService;
|
|
6612
6316
|
}): void;
|
|
6613
|
-
|
|
6614
|
-
* 加载初始化图标
|
|
6615
|
-
*/
|
|
6616
|
-
private loadInitIcons;
|
|
6617
|
-
/**
|
|
6618
|
-
* 初始化管理器
|
|
6619
|
-
*/
|
|
6620
|
-
private initManagers;
|
|
6621
|
-
/**
|
|
6622
|
-
* 初始化矢量瓦片相关的管理器
|
|
6623
|
-
* 包括:占位符管理器、天地图管理器、地形管理器
|
|
6624
|
-
*/
|
|
6625
|
-
private initMapboxGLManagers;
|
|
6317
|
+
private createManagers;
|
|
6626
6318
|
/**
|
|
6627
6319
|
* 销毁上下文
|
|
6628
6320
|
*/
|
|
@@ -6631,6 +6323,7 @@ export declare class MapContext {
|
|
|
6631
6323
|
* 获取地图实例
|
|
6632
6324
|
*/
|
|
6633
6325
|
getMap(): any;
|
|
6326
|
+
setStyle(style: MapStyle): Promise<void>;
|
|
6634
6327
|
/**
|
|
6635
6328
|
* 设置视图
|
|
6636
6329
|
*/
|
|
@@ -6751,13 +6444,16 @@ export declare interface MapContextConfig {
|
|
|
6751
6444
|
/** 地图上下文注入键 - 现在注入的是 Ref */
|
|
6752
6445
|
export declare const MapContextKey: InjectionKey<Ref<MapContext | null>>;
|
|
6753
6446
|
|
|
6447
|
+
/** 地图初始化选项 */
|
|
6448
|
+
export declare type MapEngine = 'maplibre' | 'mapbox';
|
|
6449
|
+
|
|
6754
6450
|
export declare interface MapErrorEvent {
|
|
6755
6451
|
error: Error;
|
|
6756
6452
|
source?: string;
|
|
6757
6453
|
}
|
|
6758
6454
|
|
|
6759
|
-
|
|
6760
|
-
|
|
6455
|
+
export declare interface MapInitOptions {
|
|
6456
|
+
engine?: MapEngine;
|
|
6761
6457
|
style?: string | any;
|
|
6762
6458
|
center?: [number, number];
|
|
6763
6459
|
zoom?: number;
|
|
@@ -6866,6 +6562,8 @@ declare interface MapState_2 {
|
|
|
6866
6562
|
/** 地图状态注入键 */
|
|
6867
6563
|
export declare const MapStateKey: InjectionKey<Ref<ReturnType<typeof createMapState> | null>>;
|
|
6868
6564
|
|
|
6565
|
+
export declare type MapStyle = string | mapboxgl.StyleSpecification | StyleSpecification;
|
|
6566
|
+
|
|
6869
6567
|
/** 地图视图状态 */
|
|
6870
6568
|
declare interface MapViewState {
|
|
6871
6569
|
center: GeoCoordinate;
|
|
@@ -7188,6 +6886,10 @@ declare interface MarkerOptions {
|
|
|
7188
6886
|
offset?: [number, number];
|
|
7189
6887
|
draggable?: boolean;
|
|
7190
6888
|
rotation?: number;
|
|
6889
|
+
rotationAlignment?: 'map' | 'viewport' | 'auto';
|
|
6890
|
+
pitchAlignment?: 'map' | 'viewport' | 'auto';
|
|
6891
|
+
scale?: number;
|
|
6892
|
+
color?: string;
|
|
7191
6893
|
}
|
|
7192
6894
|
|
|
7193
6895
|
export declare interface MarkerRemoveEvent extends MarkerEvent {
|
|
@@ -7199,9 +6901,18 @@ declare class MarkerService implements IDomainService {
|
|
|
7199
6901
|
private eventBus;
|
|
7200
6902
|
private stateStore;
|
|
7201
6903
|
private initialized;
|
|
6904
|
+
private adapter?;
|
|
6905
|
+
private rendered;
|
|
6906
|
+
private markerClicks;
|
|
6907
|
+
private popups;
|
|
6908
|
+
private unsubscribe?;
|
|
7202
6909
|
constructor(config: MarkerServiceConfig);
|
|
7203
6910
|
initialize(): void;
|
|
7204
6911
|
dispose(): void;
|
|
6912
|
+
connect(adapter: MapAdapter): void;
|
|
6913
|
+
private render;
|
|
6914
|
+
private removePopup;
|
|
6915
|
+
private removeRendered;
|
|
7205
6916
|
/**
|
|
7206
6917
|
* 添加标记
|
|
7207
6918
|
*/
|
|
@@ -7555,31 +7266,6 @@ declare interface MeasureResult {
|
|
|
7555
7266
|
/** 测量类型 */
|
|
7556
7267
|
declare type MeasureType = 'point' | 'line' | 'polygon' | 'none';
|
|
7557
7268
|
|
|
7558
|
-
/** 占位符图层 ID 常量(供外部引用) */
|
|
7559
|
-
declare class PlaceholderManager {
|
|
7560
|
-
/** 背景图层名称 */
|
|
7561
|
-
static readonly BasemapLayerId = "basemap";
|
|
7562
|
-
/** 符号图层(Symbol)占位符 ID */
|
|
7563
|
-
static readonly symbolSlotId = "symbol";
|
|
7564
|
-
/** 点图层(Circle)占位符 ID */
|
|
7565
|
-
static readonly layerPointSlotId = "top";
|
|
7566
|
-
/** 线图层(Line)占位符 ID */
|
|
7567
|
-
static readonly layerLineSlotId = "middle";
|
|
7568
|
-
/** 面图层(Fill)占位符 ID */
|
|
7569
|
-
static readonly layerPolygonSlotId = "bottom";
|
|
7570
|
-
/** 遮罩图层(Mask)占位符 ID */
|
|
7571
|
-
static readonly maskSlotId = "mask";
|
|
7572
|
-
private adapter;
|
|
7573
|
-
/** 占位符专用空 GeoJSON Source ID */
|
|
7574
|
-
private readonly sourceId;
|
|
7575
|
-
constructor(adapter: VectorTileAdapter);
|
|
7576
|
-
/**
|
|
7577
|
-
* 初始化所有占位符图层(点、线、面、符号、遮罩)。
|
|
7578
|
-
* 应在地图加载完成后、业务图层添加之前调用一次。
|
|
7579
|
-
*/
|
|
7580
|
-
addLayer(): void;
|
|
7581
|
-
}
|
|
7582
|
-
|
|
7583
7269
|
/**
|
|
7584
7270
|
* 插件管理器 - 整合 Manager 和 Plugin
|
|
7585
7271
|
* Manager 可以作为插件注册
|
|
@@ -7680,6 +7366,8 @@ declare interface PopupOptions {
|
|
|
7680
7366
|
closeOnClick?: boolean;
|
|
7681
7367
|
anchor?: string;
|
|
7682
7368
|
offset?: number | [number, number];
|
|
7369
|
+
closeOnMove?: boolean;
|
|
7370
|
+
maxWidth?: string;
|
|
7683
7371
|
}
|
|
7684
7372
|
|
|
7685
7373
|
export declare interface PopupShowEvent extends PopupEvent {
|
|
@@ -7708,6 +7396,7 @@ declare interface PopupState_2 {
|
|
|
7708
7396
|
|
|
7709
7397
|
declare interface Props {
|
|
7710
7398
|
adapter?: MapAdapter;
|
|
7399
|
+
engine?: MapEngine;
|
|
7711
7400
|
accessToken?: string;
|
|
7712
7401
|
tdtToken?: string;
|
|
7713
7402
|
options?: Partial<MapInitOptions>;
|
|
@@ -7719,7 +7408,35 @@ declare interface Props {
|
|
|
7719
7408
|
name: string;
|
|
7720
7409
|
url: string;
|
|
7721
7410
|
}>;
|
|
7722
|
-
theme?:
|
|
7411
|
+
theme?: string;
|
|
7412
|
+
}
|
|
7413
|
+
|
|
7414
|
+
declare interface Props_2 {
|
|
7415
|
+
/** 分割方向 */
|
|
7416
|
+
defaultDirection?: 'vertical' | 'horizontal';
|
|
7417
|
+
layerVisible?: boolean;
|
|
7418
|
+
mapOptions?: any;
|
|
7419
|
+
initIcons?: Array<{
|
|
7420
|
+
name: string;
|
|
7421
|
+
url: string;
|
|
7422
|
+
}>;
|
|
7423
|
+
initData?: any;
|
|
7424
|
+
leftData?: any;
|
|
7425
|
+
rightData?: any;
|
|
7426
|
+
}
|
|
7427
|
+
|
|
7428
|
+
declare interface Props_3 {
|
|
7429
|
+
/** 分割方向 */
|
|
7430
|
+
defaultDirection?: 'vertical' | 'horizontal';
|
|
7431
|
+
layerVisible?: boolean;
|
|
7432
|
+
mapOptions?: any;
|
|
7433
|
+
initIcons?: Array<{
|
|
7434
|
+
name: string;
|
|
7435
|
+
url: string;
|
|
7436
|
+
}>;
|
|
7437
|
+
initData?: any;
|
|
7438
|
+
leftData?: any;
|
|
7439
|
+
rightData?: any;
|
|
7723
7440
|
}
|
|
7724
7441
|
|
|
7725
7442
|
/** 地图提供者
|
|
@@ -7732,14 +7449,13 @@ declare type Provider<T> = ClassProvider<T> | FactoryProvider<T> | ValueProvider
|
|
|
7732
7449
|
|
|
7733
7450
|
export declare class QueryLayerManager extends BaseManager {
|
|
7734
7451
|
private adapter;
|
|
7735
|
-
private eventBus?;
|
|
7736
7452
|
private sourceId;
|
|
7737
7453
|
private pointLayerId;
|
|
7738
7454
|
private lineLayerId;
|
|
7739
7455
|
private polygonLayerId;
|
|
7740
7456
|
private options;
|
|
7741
7457
|
private rawMap;
|
|
7742
|
-
constructor(adapter: VectorTileAdapter,
|
|
7458
|
+
constructor(adapter: VectorTileAdapter, _eventBus?: IEventBus<CoreMapEvents>, options?: QueryLayerOptions);
|
|
7743
7459
|
protected onInitialize(): void;
|
|
7744
7460
|
protected onDispose(): void;
|
|
7745
7461
|
protected onEnable(): void;
|
|
@@ -7749,8 +7465,6 @@ export declare class QueryLayerManager extends BaseManager {
|
|
|
7749
7465
|
private initLayers;
|
|
7750
7466
|
private removeLayers;
|
|
7751
7467
|
private setLayersVisibility;
|
|
7752
|
-
private setupAutoBringToTop;
|
|
7753
|
-
private onOtherLayerAdded;
|
|
7754
7468
|
bringToTop(): void;
|
|
7755
7469
|
setFeatures(features: any[], wktField?: string): void;
|
|
7756
7470
|
addFeatures(features: any[], wktField?: string): void;
|
|
@@ -8337,19 +8051,11 @@ export declare function useConfig(): ConfigManager;
|
|
|
8337
8051
|
* 一次性获取所有管理器
|
|
8338
8052
|
*/
|
|
8339
8053
|
export declare function useControl(): {
|
|
8340
|
-
/** 天地图管理器 */
|
|
8341
8054
|
tdt: Ref<TDTManager | null, TDTManager | null>;
|
|
8342
|
-
/** 地形管理器 */
|
|
8343
8055
|
terrain: Ref<TerrainManager | null, TerrainManager | null>;
|
|
8344
|
-
/** 占位符管理器 */
|
|
8345
|
-
placeholder: Ref<PlaceholderManager | null, PlaceholderManager | null>;
|
|
8346
|
-
/** 图层管理器 */
|
|
8347
8056
|
layer: Ref<LayerManager | null, LayerManager | null>;
|
|
8348
|
-
/** 风格管理器 Ref */
|
|
8349
8057
|
style: Ref<StyleManager | null, StyleManager | null>;
|
|
8350
|
-
/** 查询图层管理器 Ref */
|
|
8351
8058
|
queryLayer: Ref<QueryLayerManager | null, QueryLayerManager | null>;
|
|
8352
|
-
/** 原始地图上下文 Ref */
|
|
8353
8059
|
context: Ref<MapContext | null, MapContext | null>;
|
|
8354
8060
|
};
|
|
8355
8061
|
|
|
@@ -8406,6 +8112,7 @@ export declare interface UseDrawReturn {
|
|
|
8406
8112
|
/** 使用单个图层 */
|
|
8407
8113
|
export declare function useLayer(layerId: MaybeRefOrGetter<EntityId>): {
|
|
8408
8114
|
layer: ComputedRef<LayerEntity | undefined>;
|
|
8115
|
+
record: ComputedRef<BusinessLayerRecord | undefined>;
|
|
8409
8116
|
state: ComputedRef<any>;
|
|
8410
8117
|
visible: WritableComputedRef<any, boolean>;
|
|
8411
8118
|
opacity: WritableComputedRef<any, number>;
|
|
@@ -8467,7 +8174,7 @@ export declare function useLayers(): {
|
|
|
8467
8174
|
export declare function useMap(): Ref<MapContext | null>;
|
|
8468
8175
|
|
|
8469
8176
|
/** 使用地图事件 */
|
|
8470
|
-
export declare function useMapEvent<K extends keyof CoreMapEvents>(event: K, handler: (payload: CoreMapEvents[K]) => void):
|
|
8177
|
+
export declare function useMapEvent<K extends keyof CoreMapEvents>(event: K, handler: (payload: CoreMapEvents[K]) => void): WatchHandle;
|
|
8471
8178
|
|
|
8472
8179
|
/**
|
|
8473
8180
|
* 使用地图 hover(图层属性提示)开关
|
|
@@ -8597,6 +8304,41 @@ declare interface ValueProvider<T> {
|
|
|
8597
8304
|
useValue: T;
|
|
8598
8305
|
}
|
|
8599
8306
|
|
|
8307
|
+
/**
|
|
8308
|
+
* 矢量图层封装
|
|
8309
|
+
* 依赖 VectorTileAdapter 而非 GSMap,可与 Mapbox GL / MapLibre 等引擎配合使用。
|
|
8310
|
+
*/
|
|
8311
|
+
declare class VectorLayer {
|
|
8312
|
+
private map;
|
|
8313
|
+
/** 事件总线(由 LayerManager 注入) */
|
|
8314
|
+
eventBus?: IEventBus<CoreMapEvents>;
|
|
8315
|
+
layerId: string;
|
|
8316
|
+
layerFilter: any;
|
|
8317
|
+
isQuery: boolean;
|
|
8318
|
+
layerType: string;
|
|
8319
|
+
dataExtension: any;
|
|
8320
|
+
tooltipTemplate: string;
|
|
8321
|
+
templateId: string | undefined;
|
|
8322
|
+
isShowTooltip: boolean;
|
|
8323
|
+
isCommonPopup: boolean;
|
|
8324
|
+
/** hover(图层属性提示)是否启用检查器,由 LayerManager 注入,运行期动态读取 */
|
|
8325
|
+
isHoverEnabled: () => boolean;
|
|
8326
|
+
private feature;
|
|
8327
|
+
isMobile: boolean;
|
|
8328
|
+
private listeners;
|
|
8329
|
+
/** 图层点击回调(由 LayerManager 注入) */
|
|
8330
|
+
onLayerClick?: (payload: LayerQueryClickPayload) => void;
|
|
8331
|
+
get id(): string;
|
|
8332
|
+
constructor(map: VectorTileAdapter, eventBus?: IEventBus<CoreMapEvents>);
|
|
8333
|
+
private addSource;
|
|
8334
|
+
add(layerConfig: any, beforeLayerId?: string): void;
|
|
8335
|
+
remove(): void;
|
|
8336
|
+
addInteraction(): void;
|
|
8337
|
+
removeInteraction(): void;
|
|
8338
|
+
getOpacity(): number;
|
|
8339
|
+
setOpacity(opacity: number): void;
|
|
8340
|
+
}
|
|
8341
|
+
|
|
8600
8342
|
/**
|
|
8601
8343
|
* Vector 数据源
|
|
8602
8344
|
*/
|
|
@@ -8615,7 +8357,7 @@ export declare interface VectorSource {
|
|
|
8615
8357
|
* 在 MapAdapter 基础上扩展矢量瓦片引擎专有能力:
|
|
8616
8358
|
* Source / Layer 的增删改查、样式属性设置、图层排序。
|
|
8617
8359
|
*
|
|
8618
|
-
* TDTManager、TerrainManager、
|
|
8360
|
+
* TDTManager、TerrainManager、LayerManager 等
|
|
8619
8361
|
* 均应依赖此接口,而非直接持有 mapboxgl.Map 实例。
|
|
8620
8362
|
*/
|
|
8621
8363
|
declare interface VectorTileAdapter extends MapAdapter {
|