@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.
- package/dist/App.vue.d.ts +2 -0
- package/dist/adapters/index.d.ts +13 -0
- package/dist/adapters/mapbox/MapboxAdapter.d.ts +44 -0
- package/dist/adapters/types.d.ts +216 -0
- package/dist/api/BaseController.d.ts +6 -0
- package/dist/api/CommonController.d.ts +51 -0
- package/dist/components/MapCompass/index.vue.d.ts +2 -0
- package/dist/components/MapContainer/index.d.ts +2 -0
- package/dist/components/MapContainer/index.vue.d.ts +344 -0
- package/dist/components/MapLayer/components/CustomLayerDialog.vue.d.ts +22 -0
- package/dist/components/MapLayer/components/LayerTab.vue.d.ts +2179 -0
- package/dist/components/MapLayer/index.d.ts +2 -0
- package/dist/components/MapLayer/index.vue.d.ts +2287 -0
- package/dist/components/MapLegend/index.d.ts +2 -0
- package/dist/components/MapLegend/index.vue.d.ts +14 -0
- package/dist/components/MapMeasure/index.vue.d.ts +2 -0
- package/dist/components/MapPrint/MapPrintPanel.vue.d.ts +21 -0
- package/dist/components/MapPrint/MapPrintService.d.ts +155 -0
- package/dist/components/MapPrint/index.vue.d.ts +37 -0
- package/dist/components/MapQueryResult/index.vue.d.ts +29 -0
- package/dist/components/MapQueryResult/popup.vue.d.ts +16 -0
- package/dist/components/MapSearch/index.d.ts +2 -0
- package/dist/components/MapSearch/index.vue.d.ts +56 -0
- package/dist/components/MapSwitch/index.d.ts +2 -0
- package/dist/components/MapSwitch/index.vue.d.ts +37 -0
- package/dist/components/MapTools/index.d.ts +2 -0
- package/dist/components/MapTools/index.vue.d.ts +40 -0
- package/dist/components/MobileMapLayer/BaseLayerSwitch.vue.d.ts +16 -0
- package/dist/components/MobileMapLayer/index.vue.d.ts +9 -0
- package/dist/components/Widgets/PopupBar/BarItem.vue.d.ts +75 -0
- package/dist/components/Widgets/PopupBar/index.vue.d.ts +21 -0
- package/dist/composables/index.d.ts +13 -0
- package/dist/composables/useControl.d.ts +39 -0
- package/dist/composables/useDraw.d.ts +49 -0
- package/dist/composables/useLayer.d.ts +57 -0
- package/dist/composables/useMap.d.ts +111 -0
- package/dist/composables/useMarker.d.ts +55 -0
- package/dist/composables/useMeasure.d.ts +49 -0
- package/dist/composables/useSearch.d.ts +20 -0
- package/dist/config/api.config.d.ts +40 -0
- package/dist/config/gismap.config.d.ts +156 -0
- package/dist/core/ManagerRegistry.d.ts +75 -0
- package/dist/core/PluginSystem.d.ts +71 -0
- package/dist/core/StateStore.d.ts +96 -0
- package/dist/core/TypedEventEmitter.d.ts +67 -0
- package/dist/core/di/Container.d.ts +61 -0
- package/dist/core/di/decorators.d.ts +32 -0
- package/dist/core/di/index.d.ts +7 -0
- package/dist/core/di/types.d.ts +59 -0
- package/dist/core/event/EventBus.d.ts +101 -0
- package/dist/core/event/index.d.ts +5 -0
- package/dist/core/event/types.d.ts +215 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/state/Store.d.ts +145 -0
- package/dist/core/state/index.d.ts +6 -0
- package/dist/core/state/types.d.ts +134 -0
- package/dist/domain/index.d.ts +8 -0
- package/dist/domain/layer/LayerEntity.d.ts +90 -0
- package/dist/domain/layer/LayerService.d.ts +128 -0
- package/dist/domain/marker/MarkerEntity.d.ts +77 -0
- package/dist/domain/marker/MarkerService.d.ts +105 -0
- package/dist/domain/types.d.ts +66 -0
- package/dist/examples/DrawDemo.vue.d.ts +2 -0
- package/dist/examples/DrawPanel.vue.d.ts +2 -0
- package/dist/examples/Map.vue.d.ts +74 -0
- package/dist/examples/MapDemoExample.vue.d.ts +2 -0
- package/dist/examples/MeasureDemo.vue.d.ts +2 -0
- package/dist/examples/MeasurePanel.vue.d.ts +2 -0
- package/dist/examples/SplitScreenDrawDemo.vue.d.ts +7 -0
- package/dist/examples/SplitScreenDrawPanel.vue.d.ts +12 -0
- package/dist/examples/SplitScreenPanel.vue.d.ts +12 -0
- package/dist/examples/TdtControlPanel.vue.d.ts +2 -0
- package/dist/examples/TiandituDemo.vue.d.ts +2 -0
- package/dist/gismap.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/main.d.ts +0 -0
- package/dist/manager/IconManager.d.ts +18 -0
- package/dist/manager/LayerManager.d.ts +50 -0
- package/dist/manager/MaskManager.d.ts +52 -0
- package/dist/manager/PlaceholderManager.d.ts +28 -0
- package/dist/manager/PopupManager.d.ts +13 -0
- package/dist/manager/QuickSearchManager.d.ts +24 -0
- package/dist/manager/RadarManager.d.ts +46 -0
- package/dist/manager/SplitScreenDrawManager.d.ts +75 -0
- package/dist/manager/SplitScreenManager.d.ts +81 -0
- package/dist/manager/TDTManager.d.ts +33 -0
- package/dist/manager/TemplateManager.d.ts +52 -0
- package/dist/manager/TerrainManager.d.ts +39 -0
- package/dist/manager/layer/MarkerLayer.d.ts +89 -0
- package/dist/manager/layer/VectorLayer.d.ts +30 -0
- package/dist/manager/mapbox/DrawManager.d.ts +153 -0
- package/dist/manager/mapbox/MeasureManager.d.ts +158 -0
- package/dist/router/index.d.ts +2 -0
- package/dist/services/MapContext.d.ts +171 -0
- package/dist/services/index.d.ts +5 -0
- package/dist/types/IEvents.d.ts +178 -0
- package/dist/types/IGISMap.d.ts +234 -0
- package/dist/types/IManager.d.ts +113 -0
- package/dist/types/IMapSearch.d.ts +28 -0
- package/dist/types/IState.d.ts +259 -0
- package/dist/types/ITemplate.d.ts +35 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/utils/hooks/layout.d.ts +4 -0
- package/dist/utils/http/axios.d.ts +3 -0
- package/dist/utils/http/config.d.ts +3 -0
- package/dist/utils/http/request.d.ts +46 -0
- package/dist/utils/index.d.ts +49 -0
- package/package.json +1 -1
- package/dist/index.umd.js +0 -1
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { LayerService, MarkerService } from '../../domain';
|
|
2
|
+
import { MapContext } from '../../services';
|
|
3
|
+
import { MapAdapter, MapInitOptions } from '../../adapters';
|
|
4
|
+
interface Props {
|
|
5
|
+
adapter?: MapAdapter;
|
|
6
|
+
accessToken?: string;
|
|
7
|
+
tdtToken?: string;
|
|
8
|
+
options?: Partial<MapInitOptions>;
|
|
9
|
+
center?: [number, number];
|
|
10
|
+
zoom?: number;
|
|
11
|
+
pitch?: number;
|
|
12
|
+
bearing?: number;
|
|
13
|
+
initIcons?: Array<{
|
|
14
|
+
name: string;
|
|
15
|
+
url: string;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: {
|
|
21
|
+
'top-left'?(_: {}): any;
|
|
22
|
+
'top-right'?(_: {}): any;
|
|
23
|
+
'bottom-left'?(_: {}): any;
|
|
24
|
+
'bottom-right'?(_: {}): any;
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {
|
|
28
|
+
containerRef: HTMLDivElement;
|
|
29
|
+
mapContainerRef: HTMLDivElement;
|
|
30
|
+
};
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
35
|
+
context: () => {
|
|
36
|
+
readonly adapter: {
|
|
37
|
+
getMap: () => any;
|
|
38
|
+
initialize: (container: HTMLElement, options: MapInitOptions) => Promise<void>;
|
|
39
|
+
dispose: () => void;
|
|
40
|
+
setView: (center: [number, number], zoom: number, options?: import('../../adapters').ViewOptions) => void;
|
|
41
|
+
flyTo: (center: [number, number], options?: import('../../adapters').FlyToOptions) => void;
|
|
42
|
+
fitBounds: (bounds: [[number, number], [number, number]], options?: import('../../adapters').FitBoundsOptions) => void;
|
|
43
|
+
getViewState: () => import('../../adapters').MapViewState;
|
|
44
|
+
addMarker: (id: string, options: import('../../adapters').MarkerOptions) => any;
|
|
45
|
+
removeMarker: (id: string) => void;
|
|
46
|
+
updateMarkerPosition: (id: string, position: [number, number]) => void;
|
|
47
|
+
addPopup: (id: string, options: import('../../adapters').PopupOptions) => any;
|
|
48
|
+
removePopup: (id: string) => void;
|
|
49
|
+
onViewChange: (callback: (view: import('../../adapters').MapViewState) => void) => void;
|
|
50
|
+
onClick: (callback: (event: import('../../adapters').MapClickEvent) => void) => void;
|
|
51
|
+
onLoad: (callback: () => void) => void;
|
|
52
|
+
onError: (callback: (error: Error) => void) => void;
|
|
53
|
+
queryFeatures: (point: [number, number], options?: import('../../adapters').QueryOptions) => any[];
|
|
54
|
+
queryRenderedFeatures: (geometry: [number, number] | [[number, number], [number, number]], options?: import('../../adapters').QueryOptions) => any[];
|
|
55
|
+
};
|
|
56
|
+
readonly events: {
|
|
57
|
+
on: <K extends keyof import('../../core').CoreMapEvents>(event: K, handler: import('../../core').EventHandler<import('../../core').CoreMapEvents[K]>) => import('../../core').Unsubscribe;
|
|
58
|
+
once: <K extends keyof import('../../core').CoreMapEvents>(event: K, handler: import('../../core').EventHandler<import('../../core').CoreMapEvents[K]>) => import('../../core').Unsubscribe;
|
|
59
|
+
emit: <K extends keyof import('../../core').CoreMapEvents>(event: K, payload: import('../../core').CoreMapEvents[K]) => void;
|
|
60
|
+
off: <K extends keyof import('../../core').CoreMapEvents>(event?: K | undefined, handler?: import('../../core').EventHandler<import('../../core').CoreMapEvents[K]> | undefined) => void;
|
|
61
|
+
listenerCount: <K extends keyof import('../../core').CoreMapEvents>(event: K) => number;
|
|
62
|
+
hasListeners: <K extends keyof import('../../core').CoreMapEvents>(event?: K | undefined) => boolean;
|
|
63
|
+
clearHistory: () => void;
|
|
64
|
+
getHistory: () => import('../../core').EventHistoryItem[];
|
|
65
|
+
dispose: () => void;
|
|
66
|
+
};
|
|
67
|
+
readonly state: {
|
|
68
|
+
getState: () => import('../../core').MapState;
|
|
69
|
+
get: <K extends keyof import('../../core').MapState>(key: K) => import('../../core').MapState[K];
|
|
70
|
+
setState: (partial: Partial<import('../../core').MapState>) => void;
|
|
71
|
+
set: <K extends keyof import('../../core').MapState>(key: K, value: import('../../core').MapState[K]) => void;
|
|
72
|
+
subscribe: (listener: import('../../core').StateListener<import('../../core').MapState>) => () => void;
|
|
73
|
+
subscribeKey: <K extends keyof import('../../core').MapState>(key: K, listener: (value: import('../../core').MapState[K], prevValue: import('../../core').MapState[K]) => void) => () => void;
|
|
74
|
+
select: <R>(selector: import('../../core').StateSelector<import('../../core').MapState, R>) => R;
|
|
75
|
+
reset: () => void;
|
|
76
|
+
dispose: () => void;
|
|
77
|
+
};
|
|
78
|
+
readonly container?: {
|
|
79
|
+
register: <T>(token: import('../../core').Token<T>, provider: import('../../core').Provider<T>) => import('../../core').IContainer;
|
|
80
|
+
resolve: <T>(token: import('../../core').Token<T>) => T;
|
|
81
|
+
has: <T>(token: import('../../core').Token<T>) => boolean;
|
|
82
|
+
createScope: () => import('../../core').IContainer;
|
|
83
|
+
dispose: () => void;
|
|
84
|
+
} | undefined;
|
|
85
|
+
readonly tdtToken?: string | undefined;
|
|
86
|
+
readonly initIcons?: {
|
|
87
|
+
name: string;
|
|
88
|
+
url: string;
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
readonly measureOptions?: {
|
|
91
|
+
sourceId?: string | undefined;
|
|
92
|
+
pointColor?: string | undefined;
|
|
93
|
+
lineColor?: string | undefined;
|
|
94
|
+
polygonColor?: string | undefined;
|
|
95
|
+
textColor?: string | undefined;
|
|
96
|
+
coordinateType?: import('../../manager/mapbox/MeasureManager').CoordinateType | undefined;
|
|
97
|
+
lnglatDecimal?: number | undefined;
|
|
98
|
+
mercatorDecimal?: number | undefined;
|
|
99
|
+
distanceUnit?: import('../../manager/mapbox/MeasureManager').DistanceUnit | undefined;
|
|
100
|
+
areaUnit?: import('../../manager/mapbox/MeasureManager').AreaUnit | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
readonly layers: {
|
|
103
|
+
initialize: () => void;
|
|
104
|
+
dispose: () => void;
|
|
105
|
+
addLayer: (config: import('../../domain').LayerConfig, beforeId?: string) => import('../../domain').LayerEntity;
|
|
106
|
+
removeLayer: (layerId: import('../../domain').EntityId) => boolean;
|
|
107
|
+
getLayer: (layerId: import('../../domain').EntityId) => import('../../domain').LayerEntity | undefined;
|
|
108
|
+
getLayers: () => import('../../domain').LayerEntity[];
|
|
109
|
+
hasLayer: (layerId: import('../../domain').EntityId) => boolean;
|
|
110
|
+
updateLayer: (layerId: import('../../domain').EntityId, updates: Partial<import('../../domain').LayerConfig>) => import('../../domain').LayerEntity;
|
|
111
|
+
showLayer: (layerId: import('../../domain').EntityId) => void;
|
|
112
|
+
hideLayer: (layerId: import('../../domain').EntityId) => void;
|
|
113
|
+
toggleLayer: (layerId: import('../../domain').EntityId) => boolean;
|
|
114
|
+
setLayerOpacity: (layerId: import('../../domain').EntityId, opacity: number) => void;
|
|
115
|
+
createGroup: (name: string, id?: import('../../domain').EntityId) => import('../../domain').LayerGroup;
|
|
116
|
+
getGroup: (groupId: import('../../domain').EntityId) => import('../../domain').LayerGroup | undefined;
|
|
117
|
+
removeGroup: (groupId: import('../../domain').EntityId) => boolean;
|
|
118
|
+
addLayerToGroup: (layerId: import('../../domain').EntityId, groupId: import('../../domain').EntityId) => void;
|
|
119
|
+
registerSource: (source: import('../../domain').SourceConfig) => void;
|
|
120
|
+
addSource: (source: import('../../domain').SourceConfig) => void;
|
|
121
|
+
getSource: (sourceId: import('../../domain').EntityId) => import('../../domain').SourceConfig | undefined;
|
|
122
|
+
removeSource: (sourceId: import('../../domain').EntityId) => boolean;
|
|
123
|
+
moveLayer: (layerId: import('../../domain').EntityId, beforeId?: string) => void;
|
|
124
|
+
getLayerOrder: () => import('../../domain').EntityId[];
|
|
125
|
+
getLayersByType: (type: string) => import('../../domain').LayerEntity[];
|
|
126
|
+
getVisibleLayers: () => import('../../domain').LayerEntity[];
|
|
127
|
+
getQueryableLayers: () => import('../../domain').LayerEntity[];
|
|
128
|
+
showAll: () => void;
|
|
129
|
+
hideAll: () => void;
|
|
130
|
+
removeAll: () => void;
|
|
131
|
+
};
|
|
132
|
+
readonly markers: {
|
|
133
|
+
initialize: () => void;
|
|
134
|
+
dispose: () => void;
|
|
135
|
+
addMarker: (config: import('../../domain').MarkerConfig) => import('../../domain').MarkerEntity;
|
|
136
|
+
removeMarker: (markerId: import('../../domain').EntityId) => boolean;
|
|
137
|
+
getMarker: (markerId: import('../../domain').EntityId) => import('../../domain').MarkerEntity | undefined;
|
|
138
|
+
getMarkers: () => import('../../domain').MarkerEntity[];
|
|
139
|
+
hasMarker: (markerId: import('../../domain').EntityId) => boolean;
|
|
140
|
+
updateMarker: (markerId: import('../../domain').EntityId, updates: Partial<import('../../domain').MarkerConfig>) => import('../../domain').MarkerEntity;
|
|
141
|
+
setPosition: (markerId: import('../../domain').EntityId, position: [number, number]) => void;
|
|
142
|
+
moveMarker: (markerId: import('../../domain').EntityId, position: [number, number], _animate?: boolean) => void;
|
|
143
|
+
showMarker: (markerId: import('../../domain').EntityId) => void;
|
|
144
|
+
hideMarker: (markerId: import('../../domain').EntityId) => void;
|
|
145
|
+
toggleMarker: (markerId: import('../../domain').EntityId) => boolean;
|
|
146
|
+
openPopup: (markerId: import('../../domain').EntityId) => void;
|
|
147
|
+
closePopup: (markerId: import('../../domain').EntityId) => void;
|
|
148
|
+
togglePopup: (markerId: import('../../domain').EntityId) => boolean;
|
|
149
|
+
setDraggable: (markerId: import('../../domain').EntityId, draggable: boolean) => void;
|
|
150
|
+
startDrag: (markerId: import('../../domain').EntityId) => void;
|
|
151
|
+
endDrag: (markerId: import('../../domain').EntityId) => void;
|
|
152
|
+
showAll: () => void;
|
|
153
|
+
hideAll: () => void;
|
|
154
|
+
removeAll: () => void;
|
|
155
|
+
getMarkersInBounds: (bounds: [[number, number], [number, number]]) => import('../../domain').MarkerEntity[];
|
|
156
|
+
};
|
|
157
|
+
readonly tdtManager: {
|
|
158
|
+
addImgLayer: (sourceConfig?: any, beforeId?: string) => void;
|
|
159
|
+
removeImgLayer: () => void;
|
|
160
|
+
addVecLayer: (sourceConfig?: any, beforeId?: string) => void;
|
|
161
|
+
removeVecLayer: () => void;
|
|
162
|
+
addCiaLayer: (sourceConfig?: any, beforeId?: string) => void;
|
|
163
|
+
removeCiaLayer: () => void;
|
|
164
|
+
clear: () => void;
|
|
165
|
+
show: () => void;
|
|
166
|
+
hideAll: () => void;
|
|
167
|
+
hide: (layerId: string) => void;
|
|
168
|
+
} | undefined;
|
|
169
|
+
readonly terrainManager: {
|
|
170
|
+
addSource: (options: {
|
|
171
|
+
tiles: string[];
|
|
172
|
+
minzoom?: number;
|
|
173
|
+
maxzoom?: number;
|
|
174
|
+
tileSize?: number;
|
|
175
|
+
[key: string]: any;
|
|
176
|
+
}) => import('../../manager/TerrainManager').default;
|
|
177
|
+
add: (options?: {
|
|
178
|
+
source?: any;
|
|
179
|
+
layer?: {
|
|
180
|
+
exaggeration?: number;
|
|
181
|
+
[key: string]: any;
|
|
182
|
+
};
|
|
183
|
+
}) => import('../../manager/TerrainManager').default;
|
|
184
|
+
remove: () => import('../../manager/TerrainManager').default;
|
|
185
|
+
addHillshade: () => import('../../manager/TerrainManager').default;
|
|
186
|
+
removeHillshade: () => import('../../manager/TerrainManager').default;
|
|
187
|
+
show: (options?: Parameters<import('../../manager/TerrainManager').default["add"]>[0]) => import('../../manager/TerrainManager').default;
|
|
188
|
+
hide: () => import('../../manager/TerrainManager').default;
|
|
189
|
+
} | undefined;
|
|
190
|
+
readonly radarManager: {
|
|
191
|
+
add: (options: import('../../manager/RadarManager').RadarOptions) => import('../..').RadarManager;
|
|
192
|
+
startScan: () => import('../..').RadarManager;
|
|
193
|
+
stopScan: () => import('../..').RadarManager;
|
|
194
|
+
remove: () => void;
|
|
195
|
+
} | undefined;
|
|
196
|
+
readonly iconManager: {
|
|
197
|
+
load: (icons: import('../../manager/IconManager').IconConfig[]) => Promise<void>;
|
|
198
|
+
} | undefined;
|
|
199
|
+
readonly placeholderManager: {
|
|
200
|
+
addLayer: (options?: {
|
|
201
|
+
beforeLayerPointId?: string;
|
|
202
|
+
beforeLayerLineId?: string;
|
|
203
|
+
beforeLayerFillId?: string;
|
|
204
|
+
beforeMaskLayerId?: string;
|
|
205
|
+
}) => void;
|
|
206
|
+
} | undefined;
|
|
207
|
+
readonly drawManager: {
|
|
208
|
+
startDraw: (type: import('../../manager/mapbox/DrawManager').DrawType, callback?: import('../../manager/mapbox/DrawManager').DrawCallback) => void;
|
|
209
|
+
stopDraw: () => void;
|
|
210
|
+
clearDrawing: () => void;
|
|
211
|
+
getAllFeatures: () => import('../../manager/mapbox/DrawManager').DrawFeature[];
|
|
212
|
+
getGeoJSON: () => GeoJSON.FeatureCollection;
|
|
213
|
+
getFeature: (id: string) => import('../../manager/mapbox/DrawManager').DrawFeature | undefined;
|
|
214
|
+
deleteFeature: (id: string) => boolean;
|
|
215
|
+
deleteAllFeatures: () => void;
|
|
216
|
+
getFeatureCount: () => number;
|
|
217
|
+
selectFeature: (id: string) => import('../../manager/mapbox/DrawManager').DrawFeature | null;
|
|
218
|
+
clearSelection: () => void;
|
|
219
|
+
getSelectedFeature: () => import('../../manager/mapbox/DrawManager').DrawFeature | null;
|
|
220
|
+
getSelectedId: () => string | null;
|
|
221
|
+
hasSelection: () => boolean;
|
|
222
|
+
getIsDrawing: () => boolean;
|
|
223
|
+
getDrawType: () => import('../../manager/mapbox/DrawManager').DrawType | "none";
|
|
224
|
+
onDraw: (callback: import('../../manager/mapbox/DrawManager').DrawCallback) => void;
|
|
225
|
+
onSelect: (callback: import('../../manager/mapbox/DrawManager').SelectCallback) => void;
|
|
226
|
+
destroy: () => void;
|
|
227
|
+
} | undefined;
|
|
228
|
+
readonly measureManager: {
|
|
229
|
+
startMeasure: (type: import('../../manager/mapbox/MeasureManager').MeasureType, callback?: import('../../manager/mapbox/MeasureManager').MeasureCallback) => void;
|
|
230
|
+
stopMeasure: () => void;
|
|
231
|
+
clearMeasuring: () => void;
|
|
232
|
+
getAllResults: () => import('../../manager/mapbox/MeasureManager').MeasureResult[];
|
|
233
|
+
getResult: (id: string) => import('../../manager/mapbox/MeasureManager').MeasureResult | undefined;
|
|
234
|
+
deleteResult: (id: string) => boolean;
|
|
235
|
+
clearAllResults: () => void;
|
|
236
|
+
getResultCount: () => number;
|
|
237
|
+
getIsMeasuring: () => boolean;
|
|
238
|
+
getMeasureType: () => import('../../manager/mapbox/MeasureManager').MeasureType;
|
|
239
|
+
updateOptions: (options: Partial<import('../../manager/mapbox/MeasureManager').MeasureManagerOptions>) => void;
|
|
240
|
+
destroy: () => void;
|
|
241
|
+
} | undefined;
|
|
242
|
+
readonly layerManager: {
|
|
243
|
+
queryLayerIds: string[];
|
|
244
|
+
addSource: (source: any) => void;
|
|
245
|
+
addLayer: (layerConfig: any, beforeLayerId?: string) => import('../..').LayerManager;
|
|
246
|
+
addGroupLayer: (layer: any) => void;
|
|
247
|
+
removeLayer: (layer: any) => void;
|
|
248
|
+
removeGroupLayer: (layer: any) => void;
|
|
249
|
+
getCheckedLayers: () => any[];
|
|
250
|
+
getLayer: (id: string) => any;
|
|
251
|
+
readonly name: string;
|
|
252
|
+
readonly isInitialized: boolean;
|
|
253
|
+
readonly isEnabled: boolean;
|
|
254
|
+
initialize: () => void;
|
|
255
|
+
dispose: () => void;
|
|
256
|
+
enable: () => void;
|
|
257
|
+
disable: () => void;
|
|
258
|
+
reset: () => void;
|
|
259
|
+
} | undefined;
|
|
260
|
+
readonly templateManager: {
|
|
261
|
+
initialize: (templateItems: import('../../types/ITemplate').TemplateItem[]) => void;
|
|
262
|
+
getTemplate: (templateId: string) => import('../../types/ITemplate').TemplateItem | undefined;
|
|
263
|
+
addTemplate: (templateId: string, template: import('../../types/ITemplate').TemplateItem) => void;
|
|
264
|
+
removeTemplate: (templateId: string) => void;
|
|
265
|
+
updateTemplate: (templateId: string, template: import('../../types/ITemplate').TemplateItem) => void;
|
|
266
|
+
getAllTemplates: () => Map<string, import('../../types/ITemplate').TemplateItem>;
|
|
267
|
+
getTemplateIds: () => string[];
|
|
268
|
+
hasTemplate: (templateId: string) => boolean;
|
|
269
|
+
clear: () => void;
|
|
270
|
+
} | undefined;
|
|
271
|
+
initialize: (services: {
|
|
272
|
+
layerService: LayerService;
|
|
273
|
+
markerService: MarkerService;
|
|
274
|
+
}) => void;
|
|
275
|
+
dispose: () => void;
|
|
276
|
+
getMap: () => any;
|
|
277
|
+
setView: (center: [number, number], zoom: number, options?: {
|
|
278
|
+
bearing?: number;
|
|
279
|
+
pitch?: number;
|
|
280
|
+
animate?: boolean;
|
|
281
|
+
}) => void;
|
|
282
|
+
flyTo: (center: [number, number], options?: {
|
|
283
|
+
zoom?: number;
|
|
284
|
+
duration?: number;
|
|
285
|
+
}) => void;
|
|
286
|
+
fitBounds: (bounds: [[number, number], [number, number]], options?: {
|
|
287
|
+
padding?: number;
|
|
288
|
+
}) => void;
|
|
289
|
+
getViewState: () => import('../../core').ViewState;
|
|
290
|
+
readonly isReady: boolean;
|
|
291
|
+
on: <K extends keyof import('../../core').CoreMapEvents>(event: K, handler: (payload: import('../../core').CoreMapEvents[K]) => void) => () => void;
|
|
292
|
+
once: <K extends keyof import('../../core').CoreMapEvents>(event: K, handler: (payload: import('../../core').CoreMapEvents[K]) => void) => () => void;
|
|
293
|
+
} | null;
|
|
294
|
+
map: () => any;
|
|
295
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
296
|
+
ready: (context: MapContext) => any;
|
|
297
|
+
click: (event: {
|
|
298
|
+
coordinates: [number, number];
|
|
299
|
+
feature?: any;
|
|
300
|
+
}) => any;
|
|
301
|
+
load: (context: MapContext) => any;
|
|
302
|
+
viewChange: (view: {
|
|
303
|
+
center: [number, number];
|
|
304
|
+
zoom: number;
|
|
305
|
+
pitch: number;
|
|
306
|
+
bearing: number;
|
|
307
|
+
}) => any;
|
|
308
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
309
|
+
onReady?: ((context: MapContext) => any) | undefined;
|
|
310
|
+
onClick?: ((event: {
|
|
311
|
+
coordinates: [number, number];
|
|
312
|
+
feature?: any;
|
|
313
|
+
}) => any) | undefined;
|
|
314
|
+
onLoad?: ((context: MapContext) => any) | undefined;
|
|
315
|
+
onViewChange?: ((view: {
|
|
316
|
+
center: [number, number];
|
|
317
|
+
zoom: number;
|
|
318
|
+
pitch: number;
|
|
319
|
+
bearing: number;
|
|
320
|
+
}) => any) | undefined;
|
|
321
|
+
}>, {
|
|
322
|
+
center: [number, number];
|
|
323
|
+
zoom: number;
|
|
324
|
+
bearing: number;
|
|
325
|
+
pitch: number;
|
|
326
|
+
accessToken: string;
|
|
327
|
+
adapter: MapAdapter;
|
|
328
|
+
tdtToken: string;
|
|
329
|
+
initIcons: Array<{
|
|
330
|
+
name: string;
|
|
331
|
+
url: string;
|
|
332
|
+
}>;
|
|
333
|
+
options: Partial<MapInitOptions>;
|
|
334
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
335
|
+
containerRef: HTMLDivElement;
|
|
336
|
+
mapContainerRef: HTMLDivElement;
|
|
337
|
+
}, HTMLDivElement>;
|
|
338
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
339
|
+
export default _default;
|
|
340
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
341
|
+
new (): {
|
|
342
|
+
$slots: S;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
visible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:visible": (value: boolean) => any;
|
|
8
|
+
create: (layer: any) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
visible: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
onCreate?: ((layer: any) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
visible: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
20
|
+
formRef: unknown;
|
|
21
|
+
}, any>;
|
|
22
|
+
export default _default;
|