ym-giswidget-2d 1.0.16 → 1.0.18
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/components/clear/Clear.vue.js +3 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue2.js +1 -1
- package/components/map-view/MapView.vue.d.ts +444 -0
- package/components/map-view/MapView.vue.js +52 -0
- package/components/map-view/MapView.vue2.js +4 -0
- package/components/map-view/index.d.ts +453 -0
- package/components/map-view/index.js +7 -0
- package/components/multi-screen/MultiScreen.vue.d.ts +17 -4
- package/components/multi-screen/MultiScreen.vue.js +1 -1
- package/components/multi-screen/MultiScreen.vue2.js +38 -9
- package/components/multi-screen/index.css +3 -3
- package/components/multi-screen/index.d.ts +26 -5
- package/components/multi-screen-panel/PanelMultiScreen.vue.js +1 -1
- package/components/multi-screen-panel/PanelMultiScreen.vue2.js +5 -3
- package/components/multi-screen-panel/index.css +1 -1
- package/css/index.css +14 -2
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +5 -3
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
export declare const MapView: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
+
projection?: number;
|
|
3
|
+
center?: number[];
|
|
4
|
+
extent?: number[];
|
|
5
|
+
zoom?: number;
|
|
6
|
+
minZoom?: number;
|
|
7
|
+
maxZoom?: number;
|
|
8
|
+
minResolution?: number;
|
|
9
|
+
maxResolution?: number;
|
|
10
|
+
constrainResolution?: boolean;
|
|
11
|
+
}, {
|
|
12
|
+
mapView: {
|
|
13
|
+
currentEditLayer?: {
|
|
14
|
+
id: string;
|
|
15
|
+
parentId?: string | undefined;
|
|
16
|
+
title: string;
|
|
17
|
+
url?: string | undefined;
|
|
18
|
+
sublayers?: string[] | undefined;
|
|
19
|
+
tableName?: string | undefined;
|
|
20
|
+
primaryKey?: string | undefined;
|
|
21
|
+
selectIndex?: string | undefined;
|
|
22
|
+
layerTypeId?: string | undefined;
|
|
23
|
+
layerType?: string | undefined;
|
|
24
|
+
layerTypeName?: string | undefined;
|
|
25
|
+
layerTag?: string | undefined;
|
|
26
|
+
mapIndex?: number | undefined;
|
|
27
|
+
showIndex?: number | undefined;
|
|
28
|
+
geometryType?: number | undefined;
|
|
29
|
+
opacity?: number | undefined;
|
|
30
|
+
editType?: boolean | undefined;
|
|
31
|
+
fakeValue?: string | undefined;
|
|
32
|
+
loadFilter?: string | undefined;
|
|
33
|
+
historyTableName?: string | undefined;
|
|
34
|
+
createUserId?: string | undefined;
|
|
35
|
+
updateTime?: string | undefined;
|
|
36
|
+
fields?: {
|
|
37
|
+
id: string;
|
|
38
|
+
layerId: string;
|
|
39
|
+
name: string;
|
|
40
|
+
aliasName: string;
|
|
41
|
+
allowEdit: boolean;
|
|
42
|
+
editDisplay: boolean;
|
|
43
|
+
editRequired: boolean;
|
|
44
|
+
iDisplay: boolean;
|
|
45
|
+
tDisplay: boolean;
|
|
46
|
+
status: boolean;
|
|
47
|
+
fieldType: number;
|
|
48
|
+
fieldTypeName: string;
|
|
49
|
+
fieldLength?: number | undefined;
|
|
50
|
+
fieldPrecision?: number | undefined;
|
|
51
|
+
editDefaultValue?: string | undefined;
|
|
52
|
+
fieldDomain?: string | undefined;
|
|
53
|
+
updateTime: string;
|
|
54
|
+
createTime: string;
|
|
55
|
+
createUserId: string;
|
|
56
|
+
relatedId?: string | undefined;
|
|
57
|
+
index: number;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
createTime?: string | undefined;
|
|
60
|
+
status?: boolean | undefined;
|
|
61
|
+
checked?: boolean | undefined;
|
|
62
|
+
programId?: string | undefined;
|
|
63
|
+
relatedId?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
interactionManager: {
|
|
66
|
+
map: {
|
|
67
|
+
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
68
|
+
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
69
|
+
un: import('ol/Map').MapEventHandler<void>;
|
|
70
|
+
resizeObserver_: {
|
|
71
|
+
disconnect: () => void;
|
|
72
|
+
observe: (target: Element, options?: ResizeObserverOptions) => void;
|
|
73
|
+
unobserve: (target: Element) => void;
|
|
74
|
+
};
|
|
75
|
+
addControl: (control: import('ol/control').default) => void;
|
|
76
|
+
addInteraction: (interaction: import('ol/interaction/Interaction').default) => void;
|
|
77
|
+
addLayer: (layer: import('ol/layer/Base').default) => void;
|
|
78
|
+
addOverlay: (overlay: import('ol').default) => void;
|
|
79
|
+
forEachFeatureAtPixel: <T>(pixel: import('ol/pixel').Pixel, callback: (arg0: import('ol/Feature').FeatureLike, arg1: import('ol/layer').default<import('ol/source').default>, arg2: import('ol/geom').default) => T, options?: import('ol/Map').AtPixelOptions | undefined) => T | undefined;
|
|
80
|
+
getFeaturesAtPixel: (pixel: import('ol/pixel').Pixel, options?: import('ol/Map').AtPixelOptions | undefined) => Array<import('ol/Feature').FeatureLike>;
|
|
81
|
+
getAllLayers: () => Array<import('ol/layer').default>;
|
|
82
|
+
hasFeatureAtPixel: (pixel: import('ol/pixel').Pixel, options?: import('ol/Map').AtPixelOptions | undefined) => boolean;
|
|
83
|
+
getEventCoordinate: (event: MouseEvent) => import('ol/coordinate').Coordinate;
|
|
84
|
+
getEventCoordinateInternal: (event: MouseEvent) => import('ol/coordinate').Coordinate;
|
|
85
|
+
getEventPixel: (event: UIEvent | {
|
|
86
|
+
clientX: number;
|
|
87
|
+
clientY: number;
|
|
88
|
+
}) => import('ol/pixel').Pixel;
|
|
89
|
+
getTarget: () => HTMLElement | string | undefined;
|
|
90
|
+
getTargetElement: () => HTMLElement;
|
|
91
|
+
getCoordinateFromPixel: (pixel: import('ol/pixel').Pixel) => import('ol/coordinate').Coordinate;
|
|
92
|
+
getCoordinateFromPixelInternal: (pixel: import('ol/pixel').Pixel) => import('ol/coordinate').Coordinate;
|
|
93
|
+
getControls: () => import('ol').Collection<import('ol/control').default>;
|
|
94
|
+
getOverlays: () => import('ol').Collection<import('ol').default>;
|
|
95
|
+
getOverlayById: (id: string | number) => import('ol').default | null;
|
|
96
|
+
getInteractions: () => import('ol').Collection<import('ol/interaction/Interaction').default>;
|
|
97
|
+
getLayerGroup: () => import('ol/layer').Group;
|
|
98
|
+
setLayers: (layers: Array<import('ol/layer/Base').default> | import('ol').Collection<import('ol/layer/Base').default>) => void;
|
|
99
|
+
getLayers: () => import('ol').Collection<import('ol/layer/Base').default>;
|
|
100
|
+
getLoadingOrNotReady: () => boolean;
|
|
101
|
+
getPixelFromCoordinate: (coordinate: import('ol/coordinate').Coordinate) => import('ol/pixel').Pixel;
|
|
102
|
+
getPixelFromCoordinateInternal: (coordinate: import('ol/coordinate').Coordinate) => import('ol/pixel').Pixel;
|
|
103
|
+
getRenderer: () => import('ol/renderer/Map').default | null;
|
|
104
|
+
getSize: () => import('ol/size').Size | undefined;
|
|
105
|
+
getView: () => import('ol').View;
|
|
106
|
+
getViewport: () => HTMLElement;
|
|
107
|
+
getOverlayContainer: () => HTMLElement;
|
|
108
|
+
getOverlayContainerStopEvent: () => HTMLElement;
|
|
109
|
+
getOwnerDocument: () => Document;
|
|
110
|
+
getTilePriority: (tile: import('ol').default, tileSourceKey: string, tileCenter: import('ol/coordinate').Coordinate, tileResolution: number) => number;
|
|
111
|
+
handleBrowserEvent: (browserEvent: UIEvent, type?: string | undefined) => void;
|
|
112
|
+
handleMapBrowserEvent: (mapBrowserEvent: import('ol').MapBrowserEvent<any>) => void;
|
|
113
|
+
isRendered: () => boolean;
|
|
114
|
+
renderSync: () => void;
|
|
115
|
+
redrawText: () => void;
|
|
116
|
+
render: () => void;
|
|
117
|
+
removeControl: (control: import('ol/control').default) => import('ol/control').default | undefined;
|
|
118
|
+
removeInteraction: (interaction: import('ol/interaction/Interaction').default) => import('ol/interaction/Interaction').default | undefined;
|
|
119
|
+
removeLayer: (layer: import('ol/layer/Base').default) => import('ol/layer/Base').default | undefined;
|
|
120
|
+
removeOverlay: (overlay: import('ol').default) => import('ol').default | undefined;
|
|
121
|
+
setLayerGroup: (layerGroup: import('ol/layer').Group) => void;
|
|
122
|
+
setSize: (size: import('ol/size').Size | undefined) => void;
|
|
123
|
+
setTarget: (target?: string | HTMLElement | undefined) => void;
|
|
124
|
+
setView: (view: import('ol').View | Promise<import('ol/View').ViewOptions>) => void;
|
|
125
|
+
updateSize: () => void;
|
|
126
|
+
get: (key: string) => any;
|
|
127
|
+
getKeys: () => Array<string>;
|
|
128
|
+
getProperties: () => {
|
|
129
|
+
[x: string]: any;
|
|
130
|
+
};
|
|
131
|
+
getPropertiesInternal: () => {
|
|
132
|
+
[x: string]: any;
|
|
133
|
+
} | null;
|
|
134
|
+
hasProperties: () => boolean;
|
|
135
|
+
notify: (key: string, oldValue: any) => void;
|
|
136
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
137
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
138
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
139
|
+
setProperties: (values: {
|
|
140
|
+
[x: string]: any;
|
|
141
|
+
}, silent?: boolean | undefined) => void;
|
|
142
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
143
|
+
changed: () => void;
|
|
144
|
+
getRevision: () => number;
|
|
145
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
146
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
147
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
148
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
149
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
150
|
+
dispose: () => void;
|
|
151
|
+
};
|
|
152
|
+
interactions: Map<string, {
|
|
153
|
+
on: import('ol/interaction/Interaction').InteractionOnSignature<import('ol/events').EventsKey>;
|
|
154
|
+
once: import('ol/interaction/Interaction').InteractionOnSignature<import('ol/events').EventsKey>;
|
|
155
|
+
un: import('ol/interaction/Interaction').InteractionOnSignature<void>;
|
|
156
|
+
handleEvent: (mapBrowserEvent: import('ol').default<any>) => boolean;
|
|
157
|
+
getActive: () => boolean;
|
|
158
|
+
getMap: () => import('ol').default | null;
|
|
159
|
+
setActive: (active: boolean) => void;
|
|
160
|
+
setMap: (map: import('ol').default | null) => void;
|
|
161
|
+
get: (key: string) => any;
|
|
162
|
+
getKeys: () => Array<string>;
|
|
163
|
+
getProperties: () => {
|
|
164
|
+
[x: string]: any;
|
|
165
|
+
};
|
|
166
|
+
getPropertiesInternal: () => {
|
|
167
|
+
[x: string]: any;
|
|
168
|
+
} | null;
|
|
169
|
+
hasProperties: () => boolean;
|
|
170
|
+
notify: (key: string, oldValue: any) => void;
|
|
171
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
172
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
173
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
174
|
+
setProperties: (values: {
|
|
175
|
+
[x: string]: any;
|
|
176
|
+
}, silent?: boolean | undefined) => void;
|
|
177
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
178
|
+
changed: () => void;
|
|
179
|
+
getRevision: () => number;
|
|
180
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
181
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
182
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
183
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
184
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
185
|
+
dispose: () => void;
|
|
186
|
+
}> & Omit<Map<string, import('ol/interaction/Interaction').default>, keyof Map<any, any>>;
|
|
187
|
+
addInteraction: (name: string, interaction: import('ol/interaction/Interaction').default) => void;
|
|
188
|
+
removeInteraction: (name: string) => void;
|
|
189
|
+
removeAllInteractions: () => void;
|
|
190
|
+
getInteraction: (name: string) => import('ol/interaction/Interaction').default | undefined;
|
|
191
|
+
};
|
|
192
|
+
controlManager: {
|
|
193
|
+
map: {
|
|
194
|
+
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
195
|
+
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
196
|
+
un: import('ol/Map').MapEventHandler<void>;
|
|
197
|
+
resizeObserver_: {
|
|
198
|
+
disconnect: () => void;
|
|
199
|
+
observe: (target: Element, options?: ResizeObserverOptions) => void;
|
|
200
|
+
unobserve: (target: Element) => void;
|
|
201
|
+
};
|
|
202
|
+
addControl: (control: import('ol/control').default) => void;
|
|
203
|
+
addInteraction: (interaction: import('ol/interaction/Interaction').default) => void;
|
|
204
|
+
addLayer: (layer: import('ol/layer/Base').default) => void;
|
|
205
|
+
addOverlay: (overlay: import('ol').default) => void;
|
|
206
|
+
forEachFeatureAtPixel: <T>(pixel: import('ol/pixel').Pixel, callback: (arg0: import('ol/Feature').FeatureLike, arg1: import('ol/layer').default<import('ol/source').default>, arg2: import('ol/geom').default) => T, options?: import('ol/Map').AtPixelOptions | undefined) => T | undefined;
|
|
207
|
+
getFeaturesAtPixel: (pixel: import('ol/pixel').Pixel, options?: import('ol/Map').AtPixelOptions | undefined) => Array<import('ol/Feature').FeatureLike>;
|
|
208
|
+
getAllLayers: () => Array<import('ol/layer').default>;
|
|
209
|
+
hasFeatureAtPixel: (pixel: import('ol/pixel').Pixel, options?: import('ol/Map').AtPixelOptions | undefined) => boolean;
|
|
210
|
+
getEventCoordinate: (event: MouseEvent) => import('ol/coordinate').Coordinate;
|
|
211
|
+
getEventCoordinateInternal: (event: MouseEvent) => import('ol/coordinate').Coordinate;
|
|
212
|
+
getEventPixel: (event: UIEvent | {
|
|
213
|
+
clientX: number;
|
|
214
|
+
clientY: number;
|
|
215
|
+
}) => import('ol/pixel').Pixel;
|
|
216
|
+
getTarget: () => HTMLElement | string | undefined;
|
|
217
|
+
getTargetElement: () => HTMLElement;
|
|
218
|
+
getCoordinateFromPixel: (pixel: import('ol/pixel').Pixel) => import('ol/coordinate').Coordinate;
|
|
219
|
+
getCoordinateFromPixelInternal: (pixel: import('ol/pixel').Pixel) => import('ol/coordinate').Coordinate;
|
|
220
|
+
getControls: () => import('ol').Collection<import('ol/control').default>;
|
|
221
|
+
getOverlays: () => import('ol').Collection<import('ol').default>;
|
|
222
|
+
getOverlayById: (id: string | number) => import('ol').default | null;
|
|
223
|
+
getInteractions: () => import('ol').Collection<import('ol/interaction/Interaction').default>;
|
|
224
|
+
getLayerGroup: () => import('ol/layer').Group;
|
|
225
|
+
setLayers: (layers: Array<import('ol/layer/Base').default> | import('ol').Collection<import('ol/layer/Base').default>) => void;
|
|
226
|
+
getLayers: () => import('ol').Collection<import('ol/layer/Base').default>;
|
|
227
|
+
getLoadingOrNotReady: () => boolean;
|
|
228
|
+
getPixelFromCoordinate: (coordinate: import('ol/coordinate').Coordinate) => import('ol/pixel').Pixel;
|
|
229
|
+
getPixelFromCoordinateInternal: (coordinate: import('ol/coordinate').Coordinate) => import('ol/pixel').Pixel;
|
|
230
|
+
getRenderer: () => import('ol/renderer/Map').default | null;
|
|
231
|
+
getSize: () => import('ol/size').Size | undefined;
|
|
232
|
+
getView: () => import('ol').View;
|
|
233
|
+
getViewport: () => HTMLElement;
|
|
234
|
+
getOverlayContainer: () => HTMLElement;
|
|
235
|
+
getOverlayContainerStopEvent: () => HTMLElement;
|
|
236
|
+
getOwnerDocument: () => Document;
|
|
237
|
+
getTilePriority: (tile: import('ol').default, tileSourceKey: string, tileCenter: import('ol/coordinate').Coordinate, tileResolution: number) => number;
|
|
238
|
+
handleBrowserEvent: (browserEvent: UIEvent, type?: string | undefined) => void;
|
|
239
|
+
handleMapBrowserEvent: (mapBrowserEvent: import('ol').MapBrowserEvent<any>) => void;
|
|
240
|
+
isRendered: () => boolean;
|
|
241
|
+
renderSync: () => void;
|
|
242
|
+
redrawText: () => void;
|
|
243
|
+
render: () => void;
|
|
244
|
+
removeControl: (control: import('ol/control').default) => import('ol/control').default | undefined;
|
|
245
|
+
removeInteraction: (interaction: import('ol/interaction/Interaction').default) => import('ol/interaction/Interaction').default | undefined;
|
|
246
|
+
removeLayer: (layer: import('ol/layer/Base').default) => import('ol/layer/Base').default | undefined;
|
|
247
|
+
removeOverlay: (overlay: import('ol').default) => import('ol').default | undefined;
|
|
248
|
+
setLayerGroup: (layerGroup: import('ol/layer').Group) => void;
|
|
249
|
+
setSize: (size: import('ol/size').Size | undefined) => void;
|
|
250
|
+
setTarget: (target?: string | HTMLElement | undefined) => void;
|
|
251
|
+
setView: (view: import('ol').View | Promise<import('ol/View').ViewOptions>) => void;
|
|
252
|
+
updateSize: () => void;
|
|
253
|
+
get: (key: string) => any;
|
|
254
|
+
getKeys: () => Array<string>;
|
|
255
|
+
getProperties: () => {
|
|
256
|
+
[x: string]: any;
|
|
257
|
+
};
|
|
258
|
+
getPropertiesInternal: () => {
|
|
259
|
+
[x: string]: any;
|
|
260
|
+
} | null;
|
|
261
|
+
hasProperties: () => boolean;
|
|
262
|
+
notify: (key: string, oldValue: any) => void;
|
|
263
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
264
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
265
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
266
|
+
setProperties: (values: {
|
|
267
|
+
[x: string]: any;
|
|
268
|
+
}, silent?: boolean | undefined) => void;
|
|
269
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
270
|
+
changed: () => void;
|
|
271
|
+
getRevision: () => number;
|
|
272
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
273
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
274
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
275
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
276
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
277
|
+
dispose: () => void;
|
|
278
|
+
};
|
|
279
|
+
controls: Map<string, {
|
|
280
|
+
render: (mapEvent: import('ol').default) => void;
|
|
281
|
+
getMap: () => import('ol').default | null;
|
|
282
|
+
setMap: (map: import('ol').default | null) => void;
|
|
283
|
+
setTarget: (target: HTMLElement | string) => void;
|
|
284
|
+
on: import('ol/Object').ObjectOnSignature<import('ol/events').EventsKey>;
|
|
285
|
+
once: import('ol/Object').ObjectOnSignature<import('ol/events').EventsKey>;
|
|
286
|
+
un: import('ol/Object').ObjectOnSignature<void>;
|
|
287
|
+
get: (key: string) => any;
|
|
288
|
+
getKeys: () => Array<string>;
|
|
289
|
+
getProperties: () => {
|
|
290
|
+
[x: string]: any;
|
|
291
|
+
};
|
|
292
|
+
getPropertiesInternal: () => {
|
|
293
|
+
[x: string]: any;
|
|
294
|
+
} | null;
|
|
295
|
+
hasProperties: () => boolean;
|
|
296
|
+
notify: (key: string, oldValue: any) => void;
|
|
297
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
298
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
299
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
300
|
+
setProperties: (values: {
|
|
301
|
+
[x: string]: any;
|
|
302
|
+
}, silent?: boolean | undefined) => void;
|
|
303
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
304
|
+
changed: () => void;
|
|
305
|
+
getRevision: () => number;
|
|
306
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
307
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
308
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
309
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
310
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
311
|
+
dispose: () => void;
|
|
312
|
+
}> & Omit<Map<string, import('ol/control').Control>, keyof Map<any, any>>;
|
|
313
|
+
addControl: (name: string, control: import('ol/control').Control) => void;
|
|
314
|
+
removeControl: (name: string) => void;
|
|
315
|
+
removeAllControls: () => void;
|
|
316
|
+
getControl: (name: string) => import('ol/control').Control | undefined;
|
|
317
|
+
};
|
|
318
|
+
_options: {
|
|
319
|
+
projection: number | undefined;
|
|
320
|
+
center: number[] | undefined;
|
|
321
|
+
extent: number[] | undefined;
|
|
322
|
+
zoom: number | undefined;
|
|
323
|
+
minZoom: number | undefined;
|
|
324
|
+
maxZoom: number | undefined;
|
|
325
|
+
minResolution: number | undefined;
|
|
326
|
+
maxResolution: number | undefined;
|
|
327
|
+
constrainResolution: boolean | undefined;
|
|
328
|
+
};
|
|
329
|
+
getView: () => import('ym-gis-2d/mapView/View').default;
|
|
330
|
+
fitLayer: (layer: import('ym-gis-2d/layers/IBaseLayer').IBaseLayer) => void;
|
|
331
|
+
addMapLayer: (layerInfo: import('ym-gis-2d/entity').IMapService) => Promise<import('ol/layer/Base').default>;
|
|
332
|
+
addMapLayers: (layerInfo: import('ym-gis-2d/entity').IMapService[]) => Promise<import('ol/layer/Base').default[]>;
|
|
333
|
+
addLayer: (layer: import('ol/layer/Base').default, fitLayer?: boolean) => void;
|
|
334
|
+
removeLayerById: (id: string) => void;
|
|
335
|
+
getLayersById: (id: string) => import('ol/layer/Base').default | undefined;
|
|
336
|
+
getLayersByIds: (ids: string[]) => import('ol/layer/Base').default[];
|
|
337
|
+
getTempLayerById: (id: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
338
|
+
getPointTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
339
|
+
getLineTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
340
|
+
getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
341
|
+
getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
342
|
+
resetViewProjection: (projection: string) => void;
|
|
343
|
+
sortTemLayer: () => void;
|
|
344
|
+
getExtent: () => import('ol/extent').Extent;
|
|
345
|
+
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
346
|
+
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
347
|
+
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
348
|
+
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
349
|
+
un: import('ol/Map').MapEventHandler<void>;
|
|
350
|
+
resizeObserver_: {
|
|
351
|
+
disconnect: () => void;
|
|
352
|
+
observe: (target: Element, options?: ResizeObserverOptions) => void;
|
|
353
|
+
unobserve: (target: Element) => void;
|
|
354
|
+
};
|
|
355
|
+
addControl: (control: import('ol/control').default) => void;
|
|
356
|
+
addInteraction: (interaction: import('ol/interaction/Interaction').default) => void;
|
|
357
|
+
addOverlay: (overlay: import('ol').default) => void;
|
|
358
|
+
forEachFeatureAtPixel: <T>(pixel: import('ol/pixel').Pixel, callback: (arg0: import('ol/Feature').FeatureLike, arg1: import('ol/layer').default<import('ol/source').default>, arg2: import('ol/geom').default) => T, options?: import('ol/Map').AtPixelOptions | undefined) => T | undefined;
|
|
359
|
+
getFeaturesAtPixel: (pixel: import('ol/pixel').Pixel, options?: import('ol/Map').AtPixelOptions | undefined) => Array<import('ol/Feature').FeatureLike>;
|
|
360
|
+
getAllLayers: () => Array<import('ol/layer').default>;
|
|
361
|
+
hasFeatureAtPixel: (pixel: import('ol/pixel').Pixel, options?: import('ol/Map').AtPixelOptions | undefined) => boolean;
|
|
362
|
+
getEventCoordinate: (event: MouseEvent) => import('ol/coordinate').Coordinate;
|
|
363
|
+
getEventCoordinateInternal: (event: MouseEvent) => import('ol/coordinate').Coordinate;
|
|
364
|
+
getEventPixel: (event: UIEvent | {
|
|
365
|
+
clientX: number;
|
|
366
|
+
clientY: number;
|
|
367
|
+
}) => import('ol/pixel').Pixel;
|
|
368
|
+
getTarget: () => HTMLElement | string | undefined;
|
|
369
|
+
getTargetElement: () => HTMLElement;
|
|
370
|
+
getCoordinateFromPixel: (pixel: import('ol/pixel').Pixel) => import('ol/coordinate').Coordinate;
|
|
371
|
+
getCoordinateFromPixelInternal: (pixel: import('ol/pixel').Pixel) => import('ol/coordinate').Coordinate;
|
|
372
|
+
getControls: () => import('ol').Collection<import('ol/control').default>;
|
|
373
|
+
getOverlays: () => import('ol').Collection<import('ol').default>;
|
|
374
|
+
getOverlayById: (id: string | number) => import('ol').default | null;
|
|
375
|
+
getInteractions: () => import('ol').Collection<import('ol/interaction/Interaction').default>;
|
|
376
|
+
getLayerGroup: () => import('ol/layer').Group;
|
|
377
|
+
setLayers: (layers: Array<import('ol/layer/Base').default> | import('ol').Collection<import('ol/layer/Base').default>) => void;
|
|
378
|
+
getLayers: () => import('ol').Collection<import('ol/layer/Base').default>;
|
|
379
|
+
getLoadingOrNotReady: () => boolean;
|
|
380
|
+
getPixelFromCoordinate: (coordinate: import('ol/coordinate').Coordinate) => import('ol/pixel').Pixel;
|
|
381
|
+
getPixelFromCoordinateInternal: (coordinate: import('ol/coordinate').Coordinate) => import('ol/pixel').Pixel;
|
|
382
|
+
getRenderer: () => import('ol/renderer/Map').default | null;
|
|
383
|
+
getSize: () => import('ol/size').Size | undefined;
|
|
384
|
+
getViewport: () => HTMLElement;
|
|
385
|
+
getOverlayContainer: () => HTMLElement;
|
|
386
|
+
getOverlayContainerStopEvent: () => HTMLElement;
|
|
387
|
+
getOwnerDocument: () => Document;
|
|
388
|
+
getTilePriority: (tile: import('ol').default, tileSourceKey: string, tileCenter: import('ol/coordinate').Coordinate, tileResolution: number) => number;
|
|
389
|
+
handleBrowserEvent: (browserEvent: UIEvent, type?: string | undefined) => void;
|
|
390
|
+
handleMapBrowserEvent: (mapBrowserEvent: import('ol').MapBrowserEvent<any>) => void;
|
|
391
|
+
isRendered: () => boolean;
|
|
392
|
+
renderSync: () => void;
|
|
393
|
+
redrawText: () => void;
|
|
394
|
+
render: () => void;
|
|
395
|
+
removeControl: (control: import('ol/control').default) => import('ol/control').default | undefined;
|
|
396
|
+
removeInteraction: (interaction: import('ol/interaction/Interaction').default) => import('ol/interaction/Interaction').default | undefined;
|
|
397
|
+
removeLayer: (layer: import('ol/layer/Base').default) => import('ol/layer/Base').default | undefined;
|
|
398
|
+
removeOverlay: (overlay: import('ol').default) => import('ol').default | undefined;
|
|
399
|
+
setLayerGroup: (layerGroup: import('ol/layer').Group) => void;
|
|
400
|
+
setSize: (size: import('ol/size').Size | undefined) => void;
|
|
401
|
+
setTarget: (target?: string | HTMLElement | undefined) => void;
|
|
402
|
+
setView: (view: import('ol').View | Promise<import('ol/View').ViewOptions>) => void;
|
|
403
|
+
updateSize: () => void;
|
|
404
|
+
get: (key: string) => any;
|
|
405
|
+
getKeys: () => Array<string>;
|
|
406
|
+
getProperties: () => {
|
|
407
|
+
[x: string]: any;
|
|
408
|
+
};
|
|
409
|
+
getPropertiesInternal: () => {
|
|
410
|
+
[x: string]: any;
|
|
411
|
+
} | null;
|
|
412
|
+
hasProperties: () => boolean;
|
|
413
|
+
notify: (key: string, oldValue: any) => void;
|
|
414
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
415
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
416
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
417
|
+
setProperties: (values: {
|
|
418
|
+
[x: string]: any;
|
|
419
|
+
}, silent?: boolean | undefined) => void;
|
|
420
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
421
|
+
changed: () => void;
|
|
422
|
+
getRevision: () => number;
|
|
423
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
424
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
425
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
426
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
427
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
428
|
+
dispose: () => void;
|
|
429
|
+
} | undefined;
|
|
430
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
431
|
+
onInitMap: (...args: any[]) => void;
|
|
432
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
433
|
+
projection?: number;
|
|
434
|
+
center?: number[];
|
|
435
|
+
extent?: number[];
|
|
436
|
+
zoom?: number;
|
|
437
|
+
minZoom?: number;
|
|
438
|
+
maxZoom?: number;
|
|
439
|
+
minResolution?: number;
|
|
440
|
+
maxResolution?: number;
|
|
441
|
+
constrainResolution?: boolean;
|
|
442
|
+
}> & Readonly<{
|
|
443
|
+
onOnInitMap?: ((...args: any[]) => any) | undefined;
|
|
444
|
+
}>, {
|
|
445
|
+
projection: number;
|
|
446
|
+
zoom: number;
|
|
447
|
+
minZoom: number;
|
|
448
|
+
maxZoom: number;
|
|
449
|
+
constrainResolution: boolean;
|
|
450
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
451
|
+
mapContainerRef: HTMLDivElement;
|
|
452
|
+
}, HTMLDivElement>>;
|
|
453
|
+
export default MapView;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { default as OLMap
|
|
1
|
+
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
2
2
|
import { default as IMapService } from 'ym-gis-2d/entity/layer/IMapService';
|
|
3
3
|
import { default as OLView } from 'ym-gis-2d/mapView/View';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
layers: IMapService[];
|
|
6
6
|
screenNum: number;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
map?: OLMap;
|
|
8
|
+
projection?: number;
|
|
9
|
+
center?: number[];
|
|
10
|
+
extent?: number[];
|
|
11
|
+
zoom?: number;
|
|
12
|
+
minZoom?: number;
|
|
13
|
+
maxZoom?: number;
|
|
14
|
+
minResolution?: number;
|
|
15
|
+
maxResolution?: number;
|
|
16
|
+
constrainResolution?: boolean;
|
|
9
17
|
};
|
|
10
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
19
|
screenMaps: {
|
|
@@ -317,6 +325,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
317
325
|
_options: {
|
|
318
326
|
projection: number | undefined;
|
|
319
327
|
center: number[] | undefined;
|
|
328
|
+
extent: number[] | undefined;
|
|
320
329
|
zoom: number | undefined;
|
|
321
330
|
minZoom: number | undefined;
|
|
322
331
|
maxZoom: number | undefined;
|
|
@@ -342,7 +351,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
342
351
|
getExtent: () => import('ol/extent').Extent;
|
|
343
352
|
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
344
353
|
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
345
|
-
clearTempFeatures: (tag?: string) => void;
|
|
346
354
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
347
355
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
348
356
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -431,6 +439,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
431
439
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
432
440
|
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
433
441
|
}>, {
|
|
442
|
+
projection: number;
|
|
443
|
+
zoom: number;
|
|
444
|
+
minZoom: number;
|
|
445
|
+
maxZoom: number;
|
|
446
|
+
constrainResolution: boolean;
|
|
434
447
|
screenNum: number;
|
|
435
448
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
436
449
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./MultiScreen.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _MultiScreen = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _MultiScreen = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-52b77a87"]]);
|
|
5
5
|
export {
|
|
6
6
|
_MultiScreen as default
|
|
7
7
|
};
|
|
@@ -13,8 +13,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
props: {
|
|
14
14
|
layers: {},
|
|
15
15
|
screenNum: { default: 2 },
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
map: {},
|
|
17
|
+
projection: { default: 4490 },
|
|
18
|
+
center: {},
|
|
19
|
+
extent: {},
|
|
20
|
+
zoom: { default: 10 },
|
|
21
|
+
minZoom: { default: 0 },
|
|
22
|
+
maxZoom: { default: 28 },
|
|
23
|
+
minResolution: {},
|
|
24
|
+
maxResolution: {},
|
|
25
|
+
constrainResolution: { type: Boolean, default: false }
|
|
18
26
|
},
|
|
19
27
|
emits: ["loaded"],
|
|
20
28
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -25,12 +33,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
33
|
});
|
|
26
34
|
onMounted(() => {
|
|
27
35
|
var _a;
|
|
28
|
-
let view = (_a = props.
|
|
36
|
+
let view = (_a = props.map) == null ? void 0 : _a.getView();
|
|
29
37
|
if (!view) {
|
|
30
|
-
const options =
|
|
38
|
+
const options = {
|
|
39
|
+
projection: props.projection,
|
|
40
|
+
center: props.center,
|
|
41
|
+
extent: props.extent,
|
|
42
|
+
zoom: props.zoom,
|
|
43
|
+
minZoom: props.minZoom,
|
|
44
|
+
maxZoom: props.maxZoom,
|
|
45
|
+
minResolution: props.minResolution,
|
|
46
|
+
maxResolution: props.maxResolution,
|
|
47
|
+
constrainResolution: props.constrainResolution
|
|
48
|
+
};
|
|
31
49
|
const projection = options.projection ? "EPSG:" + options.projection : "EPSG:4490";
|
|
32
50
|
registerProj(projection);
|
|
33
|
-
|
|
51
|
+
view = new OLView({
|
|
34
52
|
center: options.center,
|
|
35
53
|
zoom: 4,
|
|
36
54
|
projection,
|
|
@@ -40,10 +58,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
58
|
maxResolution: options.maxResolution,
|
|
41
59
|
constrainResolution: options.constrainResolution
|
|
42
60
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
} else {
|
|
62
|
+
view = new OLView({
|
|
63
|
+
center: view.getCenter(),
|
|
64
|
+
zoom: view.getZoom(),
|
|
65
|
+
projection: view.getProjection(),
|
|
66
|
+
minZoom: view.getMinZoom(),
|
|
67
|
+
maxZoom: view.getMaxZoom(),
|
|
68
|
+
minResolution: view.getMinResolution(),
|
|
69
|
+
maxResolution: view.getMaxResolution(),
|
|
70
|
+
constrainResolution: view.getConstrainResolution()
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
for (let i = 1; i <= props.screenNum; i++) {
|
|
74
|
+
const map = new OLMap("screenmap" + i, void 0, view);
|
|
75
|
+
reactiveValue.screenMaps.push(map);
|
|
47
76
|
}
|
|
48
77
|
});
|
|
49
78
|
onUnmounted(() => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.multi-screen-container[data-v-
|
|
1
|
+
.multi-screen-container[data-v-52b77a87] {
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
5
5
|
}
|
|
6
|
-
.multi-screen-container .multi-screen[data-v-
|
|
6
|
+
.multi-screen-container .multi-screen[data-v-52b77a87] {
|
|
7
7
|
border: 1px solid black;
|
|
8
8
|
}
|
|
9
|
-
.multi-screen-container .multi-screen .multi-screen__map[data-v-
|
|
9
|
+
.multi-screen-container .multi-screen .multi-screen__map[data-v-52b77a87] {
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 100%;
|
|
12
12
|
}
|