ym-giswidget-2d 1.0.15 → 1.0.17
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.d.ts +1 -1
- package/components/clear/Clear.vue.js +3 -1
- package/components/clear/index.d.ts +2 -2
- package/components/draw/Draw.vue.d.ts +1 -1
- package/components/draw/Draw.vue.js +1 -1
- package/components/draw/index.d.ts +2 -2
- package/components/export/Export.vue.d.ts +1 -1
- package/components/export/Export.vue.js +1 -1
- package/components/export/Export.vue2.js +4 -4
- package/components/export/index.css +1 -1
- package/components/export/index.d.ts +2 -2
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.d.ts +1 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.js +1 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue2.js +1 -1
- package/components/horizontally-top-toolbar/index.css +9 -9
- package/components/identify/Identify.vue.d.ts +1 -1
- package/components/identify/Identify.vue.js +3 -3
- package/components/identify/index.d.ts +2 -2
- package/components/import/Import.vue.d.ts +1 -1
- package/components/import/Import.vue.js +5 -5
- package/components/import/index.d.ts +2 -2
- package/components/layer-tree/LayerTree.vue.d.ts +16 -22
- package/components/layer-tree/LayerTree.vue.js +1 -1
- package/components/layer-tree/LayerTree.vue2.js +2 -2
- package/components/layer-tree/index.css +11 -11
- package/components/layer-tree/index.d.ts +4 -4
- 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/mouse-position/MousePositon.vue.d.ts +17 -0
- package/components/mouse-position/MousePositon.vue.js +7 -0
- package/components/mouse-position/MousePositon.vue2.js +47 -0
- package/components/mouse-position/index.css +19 -0
- package/components/mouse-position/index.d.ts +17 -0
- package/components/mouse-position/index.js +8 -0
- package/components/multi-screen/MultiScreen.vue.d.ts +35 -12
- package/components/multi-screen/MultiScreen.vue.js +1 -1
- package/components/multi-screen/MultiScreen.vue2.js +41 -12
- package/components/multi-screen/index.css +3 -3
- package/components/multi-screen/index.d.ts +47 -16
- 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/components/popup/Popup.vue.d.ts +2 -2
- package/components/popup/Popup.vue.js +1 -1
- package/components/popup/Popup.vue2.js +1 -1
- package/components/popup/index.css +10 -10
- package/components/popup/index.d.ts +4 -4
- package/components/scale-line/ScaleLine.vue.d.ts +11 -0
- package/components/scale-line/ScaleLine.vue.js +7 -0
- package/components/scale-line/ScaleLine.vue2.js +47 -0
- package/components/scale-line/index.css +19 -0
- package/components/scale-line/index.d.ts +12 -0
- package/components/scale-line/index.js +8 -0
- package/components/select/Select.vue.d.ts +1 -1
- package/components/select/Select.vue.js +4 -4
- package/components/select/index.d.ts +2 -2
- package/components/swipe-layer/SwipeLayer.vue.d.ts +1 -1
- package/components/swipe-layer/SwipeLayer.vue.js +1 -1
- package/components/swipe-layer/index.d.ts +2 -2
- package/components/toc-card/TocCard.vue.d.ts +2 -2
- package/components/toc-card/TocCard.vue.js +1 -1
- package/components/toc-card/index.css +1 -1
- package/components/toc-card/index.d.ts +4 -4
- package/css/index.css +14 -2
- package/http/LayerField.js +1 -1
- package/http/layerField.d.ts +1 -1
- package/index.d.ts +3 -0
- package/index.js +6 -0
- package/package.json +3 -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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
2
|
+
/**
|
|
3
|
+
* showGeodetic 是否显示经纬度坐标,默认为false。如果是true,则显示经纬度坐标,否则根据地图坐标系显示坐标
|
|
4
|
+
*/
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
map: OLMap;
|
|
7
|
+
showSpheroid?: boolean;
|
|
8
|
+
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
9
|
+
fractionDigits?: number;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
fractionDigits: number;
|
|
13
|
+
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
mousePositionRef: HTMLDivElement;
|
|
16
|
+
}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./MousePositon.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _MousePositon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-50933065"]]);
|
|
5
|
+
export {
|
|
6
|
+
_MousePositon as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass } from "vue";
|
|
2
|
+
import MousePositionControl from "ym-gis-2d/controls/MousePositionControl";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "MousePositon",
|
|
5
|
+
props: {
|
|
6
|
+
map: {},
|
|
7
|
+
showSpheroid: { type: Boolean },
|
|
8
|
+
position: { default: "bottom-left" },
|
|
9
|
+
fractionDigits: { default: 2 }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const mousePositionRef = ref();
|
|
14
|
+
const nodeposition = computed(() => {
|
|
15
|
+
switch (props.position) {
|
|
16
|
+
case "bottom-left":
|
|
17
|
+
return "bottom-left";
|
|
18
|
+
case "bottom-right":
|
|
19
|
+
return "bottom-right";
|
|
20
|
+
case "top-left":
|
|
21
|
+
return "top-left";
|
|
22
|
+
case "top-right":
|
|
23
|
+
return "top-right";
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
onMounted(() => {
|
|
27
|
+
const control = new MousePositionControl({
|
|
28
|
+
target: mousePositionRef.value,
|
|
29
|
+
className: ""
|
|
30
|
+
});
|
|
31
|
+
props.map.controlManager.addControl("mouse-position", control);
|
|
32
|
+
});
|
|
33
|
+
onUnmounted(() => {
|
|
34
|
+
props.map.controlManager.removeControl("mouse-position");
|
|
35
|
+
});
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createElementBlock("div", {
|
|
38
|
+
ref_key: "mousePositionRef",
|
|
39
|
+
ref: mousePositionRef,
|
|
40
|
+
class: normalizeClass(["mouse-position", nodeposition.value])
|
|
41
|
+
}, null, 2);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
_sfc_main as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.mouse-position[data-v-50933065] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
}
|
|
4
|
+
.bottom-left[data-v-50933065] {
|
|
5
|
+
bottom: 10px;
|
|
6
|
+
left: 10px;
|
|
7
|
+
}
|
|
8
|
+
.bottom-right[data-v-50933065] {
|
|
9
|
+
bottom: 10px;
|
|
10
|
+
right: 10px;
|
|
11
|
+
}
|
|
12
|
+
.top-left[data-v-50933065] {
|
|
13
|
+
top: 10px;
|
|
14
|
+
left: 10px;
|
|
15
|
+
}
|
|
16
|
+
.top-right[data-v-50933065] {
|
|
17
|
+
top: 10px;
|
|
18
|
+
right: 10px;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const MousePositon: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
|
+
showSpheroid?: boolean;
|
|
4
|
+
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
5
|
+
fractionDigits?: number;
|
|
6
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
8
|
+
showSpheroid?: boolean;
|
|
9
|
+
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
10
|
+
fractionDigits?: number;
|
|
11
|
+
}> & Readonly<{}>, {
|
|
12
|
+
fractionDigits: number;
|
|
13
|
+
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
mousePositionRef: HTMLDivElement;
|
|
16
|
+
}, HTMLDivElement>>;
|
|
17
|
+
export default MousePositon;
|