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