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
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { default as OLMap
|
|
2
|
-
import { default as IMapService } from 'ym-
|
|
3
|
-
import { default as OLView } from 'ym-
|
|
1
|
+
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
2
|
+
import { default as IMapService } from 'ym-gis-2d/entity/layer/IMapService';
|
|
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: {
|
|
@@ -314,25 +322,35 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
314
322
|
removeAllControls: () => void;
|
|
315
323
|
getControl: (name: string) => import('ol/control').Control | undefined;
|
|
316
324
|
};
|
|
325
|
+
_options: {
|
|
326
|
+
projection: number | undefined;
|
|
327
|
+
center: number[] | undefined;
|
|
328
|
+
extent: number[] | undefined;
|
|
329
|
+
zoom: number | undefined;
|
|
330
|
+
minZoom: number | undefined;
|
|
331
|
+
maxZoom: number | undefined;
|
|
332
|
+
minResolution: number | undefined;
|
|
333
|
+
maxResolution: number | undefined;
|
|
334
|
+
constrainResolution: boolean | undefined;
|
|
335
|
+
};
|
|
317
336
|
getView: () => OLView;
|
|
318
|
-
fitLayer: (layer: import('ym-
|
|
337
|
+
fitLayer: (layer: import('ym-gis-2d/layers/IBaseLayer').IBaseLayer) => void;
|
|
319
338
|
addMapLayer: (layerInfo: IMapService) => Promise<import('ol/layer/Base').default>;
|
|
320
339
|
addMapLayers: (layerInfo: IMapService[]) => Promise<import('ol/layer/Base').default[]>;
|
|
321
340
|
addLayer: (layer: import('ol/layer/Base').default, fitLayer?: boolean) => void;
|
|
322
341
|
removeLayerById: (id: string) => void;
|
|
323
342
|
getLayersById: (id: string) => import('ol/layer/Base').default | undefined;
|
|
324
343
|
getLayersByIds: (ids: string[]) => import('ol/layer/Base').default[];
|
|
325
|
-
getTempLayerById: (id: string) => import('ol/layer').Vector<import('ym-
|
|
326
|
-
getPointTempLayer: () => import('ol/layer').Vector<import('ym-
|
|
327
|
-
getLineTempLayer: () => import('ol/layer').Vector<import('ym-
|
|
328
|
-
getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-
|
|
329
|
-
getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-
|
|
344
|
+
getTempLayerById: (id: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
345
|
+
getPointTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
346
|
+
getLineTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
347
|
+
getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
348
|
+
getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
330
349
|
resetViewProjection: (projection: string) => void;
|
|
331
350
|
sortTemLayer: () => void;
|
|
332
351
|
getExtent: () => import('ol/extent').Extent;
|
|
333
352
|
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
334
353
|
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
335
|
-
clearTempFeatures: (tag?: string) => void;
|
|
336
354
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
337
355
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
338
356
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -421,6 +439,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
421
439
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
422
440
|
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
423
441
|
}>, {
|
|
442
|
+
projection: number;
|
|
443
|
+
zoom: number;
|
|
444
|
+
minZoom: number;
|
|
445
|
+
maxZoom: number;
|
|
446
|
+
constrainResolution: boolean;
|
|
424
447
|
screenNum: number;
|
|
425
448
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
426
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
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, reactive, onMounted, onUnmounted, computed, createElementBlock, openBlock, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, createCommentVNode, unref } from "vue";
|
|
2
|
-
import OLMap from "ym-
|
|
2
|
+
import OLMap from "ym-gis-2d/mapView/Map";
|
|
3
3
|
import { TocCard } from "../toc-card/index.js";
|
|
4
|
-
import OLView from "ym-
|
|
5
|
-
import { registerProj } from "ym-
|
|
4
|
+
import OLView from "ym-gis-2d/mapView/View";
|
|
5
|
+
import { registerProj } from "ym-gis-2d/utils/RegisterProjUtil";
|
|
6
6
|
const _hoisted_1 = { class: "multi-screen-container" };
|
|
7
7
|
const _hoisted_2 = ["id"];
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export declare const MultiScreen: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
layers: import('ym-
|
|
2
|
+
layers: import('ym-gis-2d/entity').IMapService[];
|
|
3
3
|
screenNum: number;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
map?: import('ym-gis-2d/mapView/Map').default;
|
|
5
|
+
projection?: number;
|
|
6
|
+
center?: number[];
|
|
7
|
+
extent?: number[];
|
|
8
|
+
zoom?: number;
|
|
9
|
+
minZoom?: number;
|
|
10
|
+
maxZoom?: number;
|
|
11
|
+
minResolution?: number;
|
|
12
|
+
maxResolution?: number;
|
|
13
|
+
constrainResolution?: boolean;
|
|
6
14
|
}, {
|
|
7
15
|
screenMaps: {
|
|
8
16
|
currentEditLayer?: {
|
|
@@ -310,25 +318,35 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
|
|
|
310
318
|
removeAllControls: () => void;
|
|
311
319
|
getControl: (name: string) => import('ol/control').Control | undefined;
|
|
312
320
|
};
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
321
|
+
_options: {
|
|
322
|
+
projection: number | undefined;
|
|
323
|
+
center: number[] | undefined;
|
|
324
|
+
extent: number[] | undefined;
|
|
325
|
+
zoom: number | undefined;
|
|
326
|
+
minZoom: number | undefined;
|
|
327
|
+
maxZoom: number | undefined;
|
|
328
|
+
minResolution: number | undefined;
|
|
329
|
+
maxResolution: number | undefined;
|
|
330
|
+
constrainResolution: boolean | undefined;
|
|
331
|
+
};
|
|
332
|
+
getView: () => import('ym-gis-2d/mapView/View').default;
|
|
333
|
+
fitLayer: (layer: import('ym-gis-2d/layers/IBaseLayer').IBaseLayer) => void;
|
|
334
|
+
addMapLayer: (layerInfo: import('ym-gis-2d/entity').IMapService) => Promise<import('ol/layer/Base').default>;
|
|
335
|
+
addMapLayers: (layerInfo: import('ym-gis-2d/entity').IMapService[]) => Promise<import('ol/layer/Base').default[]>;
|
|
317
336
|
addLayer: (layer: import('ol/layer/Base').default, fitLayer?: boolean) => void;
|
|
318
337
|
removeLayerById: (id: string) => void;
|
|
319
338
|
getLayersById: (id: string) => import('ol/layer/Base').default | undefined;
|
|
320
339
|
getLayersByIds: (ids: string[]) => import('ol/layer/Base').default[];
|
|
321
|
-
getTempLayerById: (id: string) => import('ol/layer').Vector<import('ym-
|
|
322
|
-
getPointTempLayer: () => import('ol/layer').Vector<import('ym-
|
|
323
|
-
getLineTempLayer: () => import('ol/layer').Vector<import('ym-
|
|
324
|
-
getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-
|
|
325
|
-
getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-
|
|
340
|
+
getTempLayerById: (id: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
341
|
+
getPointTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
342
|
+
getLineTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
343
|
+
getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
344
|
+
getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
326
345
|
resetViewProjection: (projection: string) => void;
|
|
327
346
|
sortTemLayer: () => void;
|
|
328
347
|
getExtent: () => import('ol/extent').Extent;
|
|
329
348
|
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
330
349
|
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
331
|
-
clearTempFeatures: (tag?: string) => void;
|
|
332
350
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
333
351
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
334
352
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -415,13 +433,26 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
|
|
|
415
433
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
416
434
|
loaded: (...args: any[]) => void;
|
|
417
435
|
}, string, import('vue').PublicProps, Readonly<{
|
|
418
|
-
layers: import('ym-
|
|
436
|
+
layers: import('ym-gis-2d/entity').IMapService[];
|
|
419
437
|
screenNum: number;
|
|
420
|
-
|
|
421
|
-
|
|
438
|
+
map?: import('ym-gis-2d/mapView/Map').default;
|
|
439
|
+
projection?: number;
|
|
440
|
+
center?: number[];
|
|
441
|
+
extent?: number[];
|
|
442
|
+
zoom?: number;
|
|
443
|
+
minZoom?: number;
|
|
444
|
+
maxZoom?: number;
|
|
445
|
+
minResolution?: number;
|
|
446
|
+
maxResolution?: number;
|
|
447
|
+
constrainResolution?: boolean;
|
|
422
448
|
}> & Readonly<{
|
|
423
449
|
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
424
450
|
}>, {
|
|
451
|
+
projection: number;
|
|
452
|
+
zoom: number;
|
|
453
|
+
minZoom: number;
|
|
454
|
+
maxZoom: number;
|
|
455
|
+
constrainResolution: boolean;
|
|
425
456
|
screenNum: number;
|
|
426
457
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
427
458
|
export default MultiScreen;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./PanelMultiScreen.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _PanelMultiScreen = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _PanelMultiScreen = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2c378f72"]]);
|
|
5
5
|
export {
|
|
6
6
|
_PanelMultiScreen as default
|
|
7
7
|
};
|
|
@@ -5,9 +5,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5
5
|
__name: "PanelMultiScreen",
|
|
6
6
|
props: {
|
|
7
7
|
data: {},
|
|
8
|
-
|
|
8
|
+
map: {}
|
|
9
9
|
},
|
|
10
10
|
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
11
12
|
return (_ctx, _cache) => {
|
|
12
13
|
return openBlock(), createBlock(DraggablePanel, {
|
|
13
14
|
class: "multi-screen-panel",
|
|
@@ -17,8 +18,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
default: withCtx(() => [
|
|
18
19
|
createVNode(unref(MultiScreen), {
|
|
19
20
|
layers: _ctx.data,
|
|
20
|
-
screenNum: 2
|
|
21
|
-
|
|
21
|
+
screenNum: 2,
|
|
22
|
+
map: props.map
|
|
23
|
+
}, null, 8, ["layers", "map"])
|
|
22
24
|
]),
|
|
23
25
|
_: 1
|
|
24
26
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as Feature } from 'ym-
|
|
2
|
-
import { default as OLMap } from 'ym-
|
|
1
|
+
import { default as Feature } from 'ym-gis-2d/entity/Feature';
|
|
2
|
+
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
3
3
|
import { Coordinate } from 'ol/coordinate';
|
|
4
4
|
import { nextTick } from 'vue';
|
|
5
5
|
type __VLS_Props = {
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./Popup.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const _Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const _Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f55c868e"]]);
|
|
6
6
|
export {
|
|
7
7
|
_Popup as default
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ import DraggablePanel from "../../panel/DraggablePanel.vue.js";
|
|
|
10
10
|
import Overlay from "ol/Overlay";
|
|
11
11
|
import { getLayerFields } from "../../http/LayerField.js";
|
|
12
12
|
import { ElMessage } from "element-plus";
|
|
13
|
-
import FeatureManager from "ym-
|
|
13
|
+
import FeatureManager from "ym-gis-2d/feature/FeatureManager";
|
|
14
14
|
const _hoisted_1 = { class: "identify-popup-content" };
|
|
15
15
|
const _hoisted_2 = { class: "pagination-block" };
|
|
16
16
|
const overlayId = "identify-popup";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.identify-popup[data-v-
|
|
1
|
+
.identify-popup[data-v-f55c868e] {
|
|
2
2
|
top: unset !important;
|
|
3
3
|
overflow: unset !important;
|
|
4
4
|
transform: unset !important;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
left: -50px;
|
|
8
8
|
transform: unset !important;
|
|
9
9
|
}
|
|
10
|
-
.identify-popup[data-v-
|
|
10
|
+
.identify-popup[data-v-f55c868e]::after, .identify-popup[data-v-f55c868e]::before {
|
|
11
11
|
top: 100%;
|
|
12
12
|
border: solid transparent;
|
|
13
13
|
content: " ";
|
|
@@ -16,39 +16,39 @@
|
|
|
16
16
|
position: absolute;
|
|
17
17
|
pointer-events: none;
|
|
18
18
|
}
|
|
19
|
-
.identify-popup[data-v-
|
|
19
|
+
.identify-popup[data-v-f55c868e]::after {
|
|
20
20
|
border-top-color: white;
|
|
21
21
|
border-width: 10px;
|
|
22
22
|
left: 48px;
|
|
23
23
|
margin-left: -10px;
|
|
24
24
|
}
|
|
25
|
-
.identify-popup[data-v-
|
|
25
|
+
.identify-popup[data-v-f55c868e]::before {
|
|
26
26
|
border-top-color: #cccccc;
|
|
27
27
|
border-width: 11px;
|
|
28
28
|
left: 48px;
|
|
29
29
|
margin-left: -11px;
|
|
30
30
|
}
|
|
31
|
-
.identify-popup .panel-header .el-select[data-v-
|
|
31
|
+
.identify-popup .panel-header .el-select[data-v-f55c868e] {
|
|
32
32
|
--el-fill-color-blank: "";
|
|
33
33
|
--el-input-text-color: var(--system-primary-text-color);
|
|
34
34
|
--el-input-icon-color: var(--system-primary-text-color);
|
|
35
35
|
}
|
|
36
|
-
.identify-popup .identify-popup-content[data-v-
|
|
36
|
+
.identify-popup .identify-popup-content[data-v-f55c868e] {
|
|
37
37
|
height: 100%;
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
}
|
|
41
|
-
.identify-popup .identify-popup-content .el-table[data-v-
|
|
41
|
+
.identify-popup .identify-popup-content .el-table[data-v-f55c868e] {
|
|
42
42
|
--el-table-bg-color: "";
|
|
43
43
|
--el-table-tr-bg-color: "";
|
|
44
44
|
--el-table-text-color: var(--system-primary-text-color);
|
|
45
45
|
--el-table-row-hover-bg-color: "";
|
|
46
46
|
height: 100%;
|
|
47
47
|
}
|
|
48
|
-
.identify-popup .identify-popup-content .pagination-block[data-v-
|
|
48
|
+
.identify-popup .identify-popup-content .pagination-block[data-v-f55c868e] {
|
|
49
49
|
margin-top: 10px;
|
|
50
50
|
}
|
|
51
|
-
.identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-
|
|
51
|
+
.identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-f55c868e] {
|
|
52
52
|
justify-content: center;
|
|
53
53
|
--el-pagination-bg-color: "";
|
|
54
54
|
--el-pagination-text-color: var(--system-primary-text-color);
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
--el-pagination-button-disabled-bg-color: "";
|
|
57
57
|
--el-pagination-button-color: var(--system-primary-text-color);
|
|
58
58
|
}
|
|
59
|
-
.identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-
|
|
59
|
+
.identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-f55c868e] .el-icon {
|
|
60
60
|
color: var(--system-primary-text-color);
|
|
61
61
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const Popup: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
3
|
-
features: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
|
+
features: import('ym-gis-2d/entity/Feature').default[];
|
|
4
4
|
postion: import('ol/coordinate').Coordinate;
|
|
5
5
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
6
|
close: (...args: any[]) => void;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<{
|
|
8
|
-
map: import('ym-
|
|
9
|
-
features: import('ym-
|
|
8
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
9
|
+
features: import('ym-gis-2d/entity/Feature').default[];
|
|
10
10
|
postion: import('ol/coordinate').Coordinate;
|
|
11
11
|
}> & Readonly<{
|
|
12
12
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
map: OLMap;
|
|
4
|
+
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
scaleLineRef: HTMLDivElement;
|
|
10
|
+
}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./ScaleLine.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ScaleLine = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6110b842"]]);
|
|
5
|
+
export {
|
|
6
|
+
_ScaleLine 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
|
+
import ScaleLine from "ol/control/ScaleLine";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ScaleLine",
|
|
6
|
+
props: {
|
|
7
|
+
map: {},
|
|
8
|
+
position: { default: "bottom-left" }
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const scaleLineRef = ref();
|
|
13
|
+
const nodeposition = computed(() => {
|
|
14
|
+
switch (props.position) {
|
|
15
|
+
case "bottom-left":
|
|
16
|
+
return "bottom-left";
|
|
17
|
+
case "bottom-right":
|
|
18
|
+
return "bottom-right";
|
|
19
|
+
case "top-left":
|
|
20
|
+
return "top-left";
|
|
21
|
+
case "top-right":
|
|
22
|
+
return "top-right";
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
onMounted(() => {
|
|
26
|
+
new MousePositionControl({
|
|
27
|
+
target: scaleLineRef.value,
|
|
28
|
+
className: ""
|
|
29
|
+
});
|
|
30
|
+
const scaleLine = new ScaleLine({ target: scaleLineRef.value });
|
|
31
|
+
props.map.controlManager.addControl("scale-line", scaleLine);
|
|
32
|
+
});
|
|
33
|
+
onUnmounted(() => {
|
|
34
|
+
props.map.controlManager.removeControl("scale-line");
|
|
35
|
+
});
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createElementBlock("div", {
|
|
38
|
+
ref_key: "scaleLineRef",
|
|
39
|
+
ref: scaleLineRef,
|
|
40
|
+
class: normalizeClass(["scale-line", 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-6110b842] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
}
|
|
4
|
+
.bottom-left[data-v-6110b842] {
|
|
5
|
+
bottom: 10px;
|
|
6
|
+
left: 10px;
|
|
7
|
+
}
|
|
8
|
+
.bottom-right[data-v-6110b842] {
|
|
9
|
+
bottom: 10px;
|
|
10
|
+
right: 10px;
|
|
11
|
+
}
|
|
12
|
+
.top-left[data-v-6110b842] {
|
|
13
|
+
top: 10px;
|
|
14
|
+
left: 10px;
|
|
15
|
+
}
|
|
16
|
+
.top-right[data-v-6110b842] {
|
|
17
|
+
top: 10px;
|
|
18
|
+
right: 10px;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ScaleLine: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
|
+
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
4
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
5
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
6
|
+
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
7
|
+
}> & Readonly<{}>, {
|
|
8
|
+
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
scaleLineRef: HTMLDivElement;
|
|
11
|
+
}, HTMLDivElement>>;
|
|
12
|
+
export default ScaleLine;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, onMounted, onUnmounted } from "vue";
|
|
2
|
-
import Select from "ym-
|
|
2
|
+
import Select from "ym-gis-2d/interaction/Select";
|
|
3
3
|
import { ElLoading } from "element-plus";
|
|
4
|
-
import FeatureManager from "ym-
|
|
5
|
-
import { intersects } from "ym-
|
|
6
|
-
import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-
|
|
4
|
+
import FeatureManager from "ym-gis-2d/feature/FeatureManager";
|
|
5
|
+
import { intersects } from "ym-gis-2d/utils/GeometryUtil";
|
|
6
|
+
import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-gis-2d/style/StyleManager";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "Select",
|
|
9
9
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Select: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
pointStyle?: import('ol/style').Style;
|
|
4
4
|
cancePointStyle?: import('ol/style').Style;
|
|
5
5
|
lineStyle?: import('ol/style').Style;
|
|
@@ -7,7 +7,7 @@ export declare const Select: import('../../utils').WithInstall<import('vue').Def
|
|
|
7
7
|
polygonStyle?: import('ol/style').Style;
|
|
8
8
|
cancePolygonStyle?: import('ol/style').Style;
|
|
9
9
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
|
-
map: import('ym-
|
|
10
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
11
11
|
pointStyle?: import('ol/style').Style;
|
|
12
12
|
cancePointStyle?: import('ol/style').Style;
|
|
13
13
|
lineStyle?: import('ol/style').Style;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, onMounted, onUnmounted } from "vue";
|
|
2
|
-
import SwipeLayerControl from "ym-
|
|
2
|
+
import SwipeLayerControl from "ym-gis-2d/controls/SwipeLayerControl";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "SwipeLayer",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SwipeLayer: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
-
map: import('ym-
|
|
4
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
5
5
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
|
|
6
6
|
export default SwipeLayer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IMapService } from 'ym-
|
|
2
|
-
import { default as OLMap } from 'ym-
|
|
1
|
+
import { IMapService } from 'ym-gis-2d/entity';
|
|
2
|
+
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
data: IMapService[];
|
|
5
5
|
map: OLMap;
|