ym-giswidget-2d 1.0.14 → 1.0.16
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/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/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 +23 -12
- package/components/multi-screen/MultiScreen.vue.js +1 -1
- package/components/multi-screen/MultiScreen.vue2.js +3 -3
- package/components/multi-screen/index.css +3 -3
- package/components/multi-screen/index.d.ts +29 -18
- package/components/multi-screen-panel/PanelMultiScreen.vue.js +1 -1
- 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/http/LayerField.js +1 -1
- package/http/layerField.d.ts +1 -1
- package/index.d.ts +2 -0
- package/index.js +4 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as OLMap, OlMapOptions } from 'ym-
|
|
2
|
-
import { default as IMapService } from 'ym-
|
|
3
|
-
import { default as OLView } from 'ym-
|
|
1
|
+
import { default as OLMap, OlMapOptions } 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;
|
|
@@ -314,24 +314,35 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
314
314
|
removeAllControls: () => void;
|
|
315
315
|
getControl: (name: string) => import('ol/control').Control | undefined;
|
|
316
316
|
};
|
|
317
|
+
_options: {
|
|
318
|
+
projection: number | undefined;
|
|
319
|
+
center: number[] | undefined;
|
|
320
|
+
zoom: number | undefined;
|
|
321
|
+
minZoom: number | undefined;
|
|
322
|
+
maxZoom: number | undefined;
|
|
323
|
+
minResolution: number | undefined;
|
|
324
|
+
maxResolution: number | undefined;
|
|
325
|
+
constrainResolution: boolean | undefined;
|
|
326
|
+
};
|
|
317
327
|
getView: () => OLView;
|
|
318
|
-
fitLayer: (layer: import('ym-
|
|
328
|
+
fitLayer: (layer: import('ym-gis-2d/layers/IBaseLayer').IBaseLayer) => void;
|
|
319
329
|
addMapLayer: (layerInfo: IMapService) => Promise<import('ol/layer/Base').default>;
|
|
320
330
|
addMapLayers: (layerInfo: IMapService[]) => Promise<import('ol/layer/Base').default[]>;
|
|
321
331
|
addLayer: (layer: import('ol/layer/Base').default, fitLayer?: boolean) => void;
|
|
322
332
|
removeLayerById: (id: string) => void;
|
|
323
333
|
getLayersById: (id: string) => import('ol/layer/Base').default | undefined;
|
|
324
334
|
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-
|
|
335
|
+
getTempLayerById: (id: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
336
|
+
getPointTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
337
|
+
getLineTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
338
|
+
getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
339
|
+
getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
330
340
|
resetViewProjection: (projection: string) => void;
|
|
341
|
+
sortTemLayer: () => void;
|
|
331
342
|
getExtent: () => import('ol/extent').Extent;
|
|
332
|
-
addWKT: (wkt: string, wkid: number, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
333
|
-
addWKTs: (wkts: string[], wkid: number, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
334
|
-
clearTempFeatures: () => void;
|
|
343
|
+
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
344
|
+
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
345
|
+
clearTempFeatures: (tag?: string) => void;
|
|
335
346
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
336
347
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
337
348
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -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-c41e8ba3"]]);
|
|
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({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.multi-screen-container[data-v-
|
|
1
|
+
.multi-screen-container[data-v-c41e8ba3] {
|
|
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-c41e8ba3] {
|
|
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-c41e8ba3] {
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 100%;
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
mainMap?: import('ym-
|
|
5
|
-
options?: import('ym-
|
|
4
|
+
mainMap?: import('ym-gis-2d/mapView/Map').default;
|
|
5
|
+
options?: import('ym-gis-2d/mapView/Map').OlMapOptions;
|
|
6
6
|
}, {
|
|
7
7
|
screenMaps: {
|
|
8
8
|
currentEditLayer?: {
|
|
@@ -310,24 +310,35 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
|
|
|
310
310
|
removeAllControls: () => void;
|
|
311
311
|
getControl: (name: string) => import('ol/control').Control | undefined;
|
|
312
312
|
};
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
313
|
+
_options: {
|
|
314
|
+
projection: number | undefined;
|
|
315
|
+
center: number[] | undefined;
|
|
316
|
+
zoom: number | undefined;
|
|
317
|
+
minZoom: number | undefined;
|
|
318
|
+
maxZoom: number | undefined;
|
|
319
|
+
minResolution: number | undefined;
|
|
320
|
+
maxResolution: number | undefined;
|
|
321
|
+
constrainResolution: boolean | undefined;
|
|
322
|
+
};
|
|
323
|
+
getView: () => import('ym-gis-2d/mapView/View').default;
|
|
324
|
+
fitLayer: (layer: import('ym-gis-2d/layers/IBaseLayer').IBaseLayer) => void;
|
|
325
|
+
addMapLayer: (layerInfo: import('ym-gis-2d/entity').IMapService) => Promise<import('ol/layer/Base').default>;
|
|
326
|
+
addMapLayers: (layerInfo: import('ym-gis-2d/entity').IMapService[]) => Promise<import('ol/layer/Base').default[]>;
|
|
317
327
|
addLayer: (layer: import('ol/layer/Base').default, fitLayer?: boolean) => void;
|
|
318
328
|
removeLayerById: (id: string) => void;
|
|
319
329
|
getLayersById: (id: string) => import('ol/layer/Base').default | undefined;
|
|
320
330
|
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-
|
|
331
|
+
getTempLayerById: (id: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
332
|
+
getPointTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
333
|
+
getLineTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
334
|
+
getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
335
|
+
getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-gis-2d/entity/Feature').default>;
|
|
326
336
|
resetViewProjection: (projection: string) => void;
|
|
337
|
+
sortTemLayer: () => void;
|
|
327
338
|
getExtent: () => import('ol/extent').Extent;
|
|
328
|
-
addWKT: (wkt: string, wkid: number, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
329
|
-
addWKTs: (wkts: string[], wkid: number, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
330
|
-
clearTempFeatures: () => void;
|
|
339
|
+
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
340
|
+
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
341
|
+
clearTempFeatures: (tag?: string) => void;
|
|
331
342
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
332
343
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
333
344
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -414,10 +425,10 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
|
|
|
414
425
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
415
426
|
loaded: (...args: any[]) => void;
|
|
416
427
|
}, string, import('vue').PublicProps, Readonly<{
|
|
417
|
-
layers: import('ym-
|
|
428
|
+
layers: import('ym-gis-2d/entity').IMapService[];
|
|
418
429
|
screenNum: number;
|
|
419
|
-
mainMap?: import('ym-
|
|
420
|
-
options?: import('ym-
|
|
430
|
+
mainMap?: import('ym-gis-2d/mapView/Map').default;
|
|
431
|
+
options?: import('ym-gis-2d/mapView/Map').OlMapOptions;
|
|
421
432
|
}> & Readonly<{
|
|
422
433
|
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
423
434
|
}>, {
|
|
@@ -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-a9968831"]]);
|
|
5
5
|
export {
|
|
6
6
|
_PanelMultiScreen as default
|
|
7
7
|
};
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./TocCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _TocCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _TocCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8745417a"]]);
|
|
5
5
|
export {
|
|
6
6
|
_TocCard as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const TocCard: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
data: import('ym-
|
|
3
|
-
map: import('ym-
|
|
2
|
+
data: import('ym-gis-2d/entity').IMapService[];
|
|
3
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
4
4
|
editLayerTag?: string;
|
|
5
5
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
6
|
loaded: (...args: any[]) => void;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<{
|
|
8
|
-
data: import('ym-
|
|
9
|
-
map: import('ym-
|
|
8
|
+
data: import('ym-gis-2d/entity').IMapService[];
|
|
9
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
10
10
|
editLayerTag?: string;
|
|
11
11
|
}> & Readonly<{
|
|
12
12
|
onLoaded?: ((...args: any[]) => any) | undefined;
|
package/http/LayerField.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { post } from "./Axios.js";
|
|
2
2
|
import Config from "../config/Config.js";
|
|
3
|
-
import { getSourceLayerFields } from "ym-
|
|
3
|
+
import { getSourceLayerFields } from "ym-gis-2d/capabilities";
|
|
4
4
|
async function list(layerId) {
|
|
5
5
|
if (!Config.ServiceUrl) {
|
|
6
6
|
return [];
|
package/http/layerField.d.ts
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -9,6 +9,8 @@ import { Draw } from "./components/draw/index.js";
|
|
|
9
9
|
import { Export } from "./components/export/index.js";
|
|
10
10
|
import { Import } from "./components/import/index.js";
|
|
11
11
|
import { Identify } from "./components/identify/index.js";
|
|
12
|
+
import { MousePositon } from "./components/mouse-position/index.js";
|
|
13
|
+
import { ScaleLine } from "./components/scale-line/index.js";
|
|
12
14
|
export {
|
|
13
15
|
Clear,
|
|
14
16
|
Draw,
|
|
@@ -16,7 +18,9 @@ export {
|
|
|
16
18
|
HorizontallyTopToolbar,
|
|
17
19
|
Identify,
|
|
18
20
|
Import,
|
|
21
|
+
MousePositon,
|
|
19
22
|
MultiScreen,
|
|
23
|
+
ScaleLine,
|
|
20
24
|
Select,
|
|
21
25
|
SwipeLayer,
|
|
22
26
|
TocCard
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ym-giswidget-2d",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"element-plus": "^2.9.0",
|
|
11
11
|
"jszip": "^3.10.1",
|
|
12
12
|
"ol": "^9.2.4",
|
|
13
|
-
"ym-
|
|
13
|
+
"ym-gis-2d": "1.0.0"
|
|
14
14
|
}
|
|
15
15
|
}
|