ym-giswidget-2d 1.0.15 → 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.
Files changed (64) hide show
  1. package/components/clear/Clear.vue.d.ts +1 -1
  2. package/components/clear/index.d.ts +2 -2
  3. package/components/draw/Draw.vue.d.ts +1 -1
  4. package/components/draw/Draw.vue.js +1 -1
  5. package/components/draw/index.d.ts +2 -2
  6. package/components/export/Export.vue.d.ts +1 -1
  7. package/components/export/Export.vue.js +1 -1
  8. package/components/export/Export.vue2.js +4 -4
  9. package/components/export/index.css +1 -1
  10. package/components/export/index.d.ts +2 -2
  11. package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.d.ts +1 -1
  12. package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.js +1 -1
  13. package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue2.js +1 -1
  14. package/components/horizontally-top-toolbar/index.css +9 -9
  15. package/components/identify/Identify.vue.d.ts +1 -1
  16. package/components/identify/Identify.vue.js +3 -3
  17. package/components/identify/index.d.ts +2 -2
  18. package/components/import/Import.vue.d.ts +1 -1
  19. package/components/import/Import.vue.js +5 -5
  20. package/components/import/index.d.ts +2 -2
  21. package/components/layer-tree/LayerTree.vue.d.ts +16 -22
  22. package/components/layer-tree/LayerTree.vue.js +1 -1
  23. package/components/layer-tree/LayerTree.vue2.js +2 -2
  24. package/components/layer-tree/index.css +11 -11
  25. package/components/layer-tree/index.d.ts +4 -4
  26. package/components/mouse-position/MousePositon.vue.d.ts +17 -0
  27. package/components/mouse-position/MousePositon.vue.js +7 -0
  28. package/components/mouse-position/MousePositon.vue2.js +47 -0
  29. package/components/mouse-position/index.css +19 -0
  30. package/components/mouse-position/index.d.ts +17 -0
  31. package/components/mouse-position/index.js +8 -0
  32. package/components/multi-screen/MultiScreen.vue.d.ts +19 -9
  33. package/components/multi-screen/MultiScreen.vue.js +1 -1
  34. package/components/multi-screen/MultiScreen.vue2.js +3 -3
  35. package/components/multi-screen/index.css +3 -3
  36. package/components/multi-screen/index.d.ts +25 -15
  37. package/components/multi-screen-panel/PanelMultiScreen.vue.js +1 -1
  38. package/components/multi-screen-panel/index.css +1 -1
  39. package/components/popup/Popup.vue.d.ts +2 -2
  40. package/components/popup/Popup.vue.js +1 -1
  41. package/components/popup/Popup.vue2.js +1 -1
  42. package/components/popup/index.css +10 -10
  43. package/components/popup/index.d.ts +4 -4
  44. package/components/scale-line/ScaleLine.vue.d.ts +11 -0
  45. package/components/scale-line/ScaleLine.vue.js +7 -0
  46. package/components/scale-line/ScaleLine.vue2.js +47 -0
  47. package/components/scale-line/index.css +19 -0
  48. package/components/scale-line/index.d.ts +12 -0
  49. package/components/scale-line/index.js +8 -0
  50. package/components/select/Select.vue.d.ts +1 -1
  51. package/components/select/Select.vue.js +4 -4
  52. package/components/select/index.d.ts +2 -2
  53. package/components/swipe-layer/SwipeLayer.vue.d.ts +1 -1
  54. package/components/swipe-layer/SwipeLayer.vue.js +1 -1
  55. package/components/swipe-layer/index.d.ts +2 -2
  56. package/components/toc-card/TocCard.vue.d.ts +2 -2
  57. package/components/toc-card/TocCard.vue.js +1 -1
  58. package/components/toc-card/index.css +1 -1
  59. package/components/toc-card/index.d.ts +4 -4
  60. package/http/LayerField.js +1 -1
  61. package/http/layerField.d.ts +1 -1
  62. package/index.d.ts +2 -0
  63. package/index.js +4 -0
  64. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  type __VLS_Props = {
3
3
  map: OLMap;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  export declare const Clear: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
- map: import('ym-giscomm-2d/mapView/Map').default;
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-giscomm-2d/mapView/Map').default;
4
+ map: import('ym-gis-2d/mapView/Map').default;
5
5
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
6
6
  export default Clear;
@@ -1,4 +1,4 @@
1
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  type __VLS_Props = {
3
3
  map: OLMap;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, onUnmounted } from "vue";
2
- import Draw from "ym-giscomm-2d/interaction/Draw";
2
+ import Draw from "ym-gis-2d/interaction/Draw";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "Draw",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  export declare const Draw: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
- map: import('ym-giscomm-2d/mapView/Map').default;
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-giscomm-2d/mapView/Map').default;
4
+ map: import('ym-gis-2d/mapView/Map').default;
5
5
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
6
6
  export default Draw;
@@ -1,4 +1,4 @@
1
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  type __VLS_Props = {
3
3
  map: OLMap;
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Export.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _Export = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c8a32131"]]);
4
+ const _Export = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b476454e"]]);
5
5
  export {
6
6
  _Export as default
7
7
  };
@@ -7,14 +7,14 @@ import "element-plus/es/components/select/style/css";
7
7
  import "element-plus/es/components/option/style/css";
8
8
  import { defineComponent, reactive, ref, onMounted, onUnmounted, withDirectives, createBlock, openBlock, withCtx, createVNode, unref, createCommentVNode, createElementBlock, Fragment, renderList, vShow } from "vue";
9
9
  import DraggablePanel from "../../panel/DraggablePanel.vue.js";
10
- import FeatureManager from "ym-giscomm-2d/feature/FeatureManager";
11
- import { toKml } from "ym-giscomm-2d/conver/kml";
10
+ import FeatureManager from "ym-gis-2d/feature/FeatureManager";
11
+ import { toKml } from "ym-gis-2d/conver/kml";
12
12
  import GeoJSON from "ol/format/GeoJSON";
13
- import { downloadBlob } from "ym-giscomm-2d/utils/UrlUtil";
13
+ import { downloadBlob } from "ym-gis-2d/utils/UrlUtil";
14
14
  import JSZip from "jszip";
15
15
  import { exportFeatures } from "../../http/SpaceFile.js";
16
16
  import { ElLoading, ElMessage } from "element-plus";
17
- import { base64ToBlob } from "ym-giscomm-2d/utils/StringUtil";
17
+ import { base64ToBlob } from "ym-gis-2d/utils/StringUtil";
18
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  __name: "Export",
20
20
  props: {
@@ -1,3 +1,3 @@
1
- .panel-content[data-v-c8a32131] .el-form-item {
1
+ .panel-content[data-v-b476454e] .el-form-item {
2
2
  margin-bottom: 10px;
3
3
  }
@@ -1,9 +1,9 @@
1
1
  export declare const Export: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
- map: import('ym-giscomm-2d/mapView/Map').default;
2
+ map: import('ym-gis-2d/mapView/Map').default;
3
3
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
4
  activeInteraction: (...args: any[]) => void;
5
5
  }, string, import('vue').PublicProps, Readonly<{
6
- map: import('ym-giscomm-2d/mapView/Map').default;
6
+ map: import('ym-gis-2d/mapView/Map').default;
7
7
  }> & Readonly<{
8
8
  onActiveInteraction?: ((...args: any[]) => any) | undefined;
9
9
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -1,5 +1,5 @@
1
1
  import { default as IToolConfig } from '../../entity/iToool';
2
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
2
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
3
3
  interface ITool extends IToolConfig {
4
4
  component?: any;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./HorizontallyTopToolbar.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _HorizontallyTopToolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4542e16b"]]);
4
+ const _HorizontallyTopToolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d5f93128"]]);
5
5
  export {
6
6
  _HorizontallyTopToolbar as default
7
7
  };
@@ -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"), "../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"), "../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"), "../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: [],
@@ -1,4 +1,4 @@
1
- .toolbar-contain[data-v-4542e16b] {
1
+ .toolbar-contain[data-v-d5f93128] {
2
2
  position: absolute;
3
3
  top: 44px;
4
4
  display: flex;
@@ -9,7 +9,7 @@
9
9
  border: 1px solid var(--system-primary-border-color);
10
10
  border-radius: 3px;
11
11
  }
12
- .toolbar-contain .toolbar-item-contain[data-v-4542e16b] {
12
+ .toolbar-contain .toolbar-item-contain[data-v-d5f93128] {
13
13
  height: 43px;
14
14
  line-height: 43px;
15
15
  display: flex;
@@ -18,41 +18,41 @@
18
18
  align-items: center;
19
19
  cursor: pointer;
20
20
  }
21
- .toolbar-contain .toolbar-item-contain .toolbar-item[data-v-4542e16b] {
21
+ .toolbar-contain .toolbar-item-contain .toolbar-item[data-v-d5f93128] {
22
22
  display: flex;
23
23
  align-items: center;
24
24
  padding: 0px 10px;
25
25
  }
26
- .toolbar-contain .toolbar-item-contain .toolbar-icon[data-v-4542e16b] {
26
+ .toolbar-contain .toolbar-item-contain .toolbar-icon[data-v-d5f93128] {
27
27
  width: 24px;
28
28
  height: 24px;
29
29
  margin-right: 6px;
30
30
  }
31
- .toolbar-contain .toolbar-item-contain .toolbar-children-contain[data-v-4542e16b] {
31
+ .toolbar-contain .toolbar-item-contain .toolbar-children-contain[data-v-d5f93128] {
32
32
  position: absolute;
33
33
  top: 50px;
34
34
  background: var(--system-primary-color);
35
35
  border: 1px solid var(--system-primary-border-color);
36
36
  border-radius: 3px;
37
37
  }
38
- .toolbar-contain .active[data-v-4542e16b] {
38
+ .toolbar-contain .active[data-v-d5f93128] {
39
39
  color: var(--system-primary-text-active-color);
40
40
  }
41
- .toolbar-contain .toolbar-split[data-v-4542e16b] {
41
+ .toolbar-contain .toolbar-split[data-v-d5f93128] {
42
42
  width: 2px;
43
43
  height: 20px;
44
44
  background: #7EA08E;
45
45
  margin: auto;
46
46
  opacity: 0.5;
47
47
  }
48
- .toolbar-contain .toolbar-h-split[data-v-4542e16b] {
48
+ .toolbar-contain .toolbar-h-split[data-v-d5f93128] {
49
49
  height: 2px;
50
50
  background: #7EA08E;
51
51
  margin: auto;
52
52
  opacity: 0.5;
53
53
  margin: 0px 10px;
54
54
  }
55
- .component-position[data-v-4542e16b] {
55
+ .component-position[data-v-d5f93128] {
56
56
  position: absolute;
57
57
  right: 300px;
58
58
  }
@@ -1,4 +1,4 @@
1
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  import { default as Style } from 'ol/style/Style';
3
3
  type __VLS_Props = {
4
4
  map: OLMap;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, reactive, onMounted, onUnmounted, createBlock, createCommentVNode, openBlock, unref } from "vue";
2
- import Select from "ym-giscomm-2d/interaction/Select";
2
+ import Select from "ym-gis-2d/interaction/Select";
3
3
  import { ElLoading } from "element-plus";
4
4
  import { Popup } from "../popup/index.js";
5
- import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-giscomm-2d/style/StyleManager";
6
- import FeatureManager from "ym-giscomm-2d/feature/FeatureManager";
5
+ import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-gis-2d/style/StyleManager";
6
+ import FeatureManager from "ym-gis-2d/feature/FeatureManager";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "Identify",
9
9
  props: {
@@ -1,5 +1,5 @@
1
1
  export declare const Identify: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
- map: import('ym-giscomm-2d/mapView/Map').default;
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 Identify: import('../../utils').WithInstall<import('vue').D
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-giscomm-2d/mapView/Map').default;
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,4 +1,4 @@
1
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  import { default as Style } from 'ol/style/Style';
3
3
  type __VLS_Props = {
4
4
  map: OLMap;
@@ -5,13 +5,13 @@ import "element-plus/es/components/button/style/css";
5
5
  import { defineComponent, ref, onMounted, createElementBlock, openBlock, withDirectives, createVNode, withCtx, vShow } from "vue";
6
6
  import { ElLoading, ElMessage } from "element-plus";
7
7
  import { importFile } from "../../http/SpaceFile.js";
8
- import { getEsriSpatialReference } from "ym-giscomm-2d/utils/EsriUtil";
9
- import Feature from "ym-giscomm-2d/entity/Feature";
8
+ import { getEsriSpatialReference } from "ym-gis-2d/utils/EsriUtil";
9
+ import Feature from "ym-gis-2d/entity/Feature";
10
10
  import WKT from "ol/format/WKT";
11
11
  import GeoJSON from "ol/format/GeoJSON";
12
- import { getSelectPointStyle, getSelectLineStyle, getSelectPolygonStyle } from "ym-giscomm-2d/style/StyleManager";
13
- import { union } from "ym-giscomm-2d/utils/GeometryUtil";
14
- import { toGeoJSON } from "ym-giscomm-2d/conver/kml";
12
+ import { getSelectPointStyle, getSelectLineStyle, getSelectPolygonStyle } from "ym-gis-2d/style/StyleManager";
13
+ import { union } from "ym-gis-2d/utils/GeometryUtil";
14
+ import { toGeoJSON } from "ym-gis-2d/conver/kml";
15
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  __name: "Import",
17
17
  props: {
@@ -1,10 +1,10 @@
1
1
  export declare const Import: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
- map: import('ym-giscomm-2d/mapView/Map').default;
2
+ map: import('ym-gis-2d/mapView/Map').default;
3
3
  pointStyle?: import('ol/style').Style;
4
4
  lineStyle?: import('ol/style').Style;
5
5
  polygonStyle?: import('ol/style').Style;
6
6
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
- map: import('ym-giscomm-2d/mapView/Map').default;
7
+ map: import('ym-gis-2d/mapView/Map').default;
8
8
  pointStyle?: import('ol/style').Style;
9
9
  lineStyle?: import('ol/style').Style;
10
10
  polygonStyle?: import('ol/style').Style;
@@ -1,5 +1,5 @@
1
- import { IMapService } from 'ym-giscomm-2d/entity';
2
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
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;
@@ -150,15 +150,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
150
150
  collapse: () => void;
151
151
  shouldLoadData: () => boolean;
152
152
  updateLeafState: () => void;
153
- setChecked: (value
154
- /**
155
- * 拖拽成功完成时触发的事件
156
- * @param draggingNode 被拖拽节点对应的 Node
157
- * @param dropNode 目标节点对应的 Node
158
- * @param dropType 被拖拽的节点放置在目标节点的位置:('before'、'inner' 和 'after')分别表示放置在目标节点前、插入至目标节点和放置在目标节点后
159
- * @param event event 对象
160
- */
161
- ?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
153
+ setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
162
154
  getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[];
163
155
  updateChildren: () => void;
164
156
  loadData: (callback: (node: import('element-plus/es/components/tree/src/model/node').default) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
@@ -367,7 +359,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
367
359
  getCheckedKeys: (leafOnly?: boolean) => import('element-plus').TreeKey[];
368
360
  getCurrentNode: () => import('element-plus').TreeNodeData;
369
361
  getCurrentKey: () => any;
370
- setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly?: boolean) => void;
362
+ setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly
363
+ /**
364
+ * 将树数据转成数组
365
+ * @param nodeData
366
+ */
367
+ ?: boolean) => void;
371
368
  setCheckedKeys: (keys: import('element-plus').TreeKey[], leafOnly?: boolean) => void;
372
369
  setChecked: (data: import('element-plus').TreeKey | import('element-plus').TreeNodeData, checked: boolean, deep: boolean) => void;
373
370
  getHalfCheckedNodes: () => import('element-plus').TreeNodeData[];
@@ -546,15 +543,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
546
543
  collapse: () => void;
547
544
  shouldLoadData: () => boolean;
548
545
  updateLeafState: () => void;
549
- setChecked: (value
550
- /**
551
- * 拖拽成功完成时触发的事件
552
- * @param draggingNode 被拖拽节点对应的 Node
553
- * @param dropNode 目标节点对应的 Node
554
- * @param dropType 被拖拽的节点放置在目标节点的位置:('before'、'inner' 和 'after')分别表示放置在目标节点前、插入至目标节点和放置在目标节点后
555
- * @param event event 对象
556
- */
557
- ?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
546
+ setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
558
547
  getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[];
559
548
  updateChildren: () => void;
560
549
  loadData: (callback: (node: import('element-plus/es/components/tree/src/model/node').default) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
@@ -763,7 +752,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
763
752
  getCheckedKeys: (leafOnly?: boolean) => import('element-plus').TreeKey[];
764
753
  getCurrentNode: () => import('element-plus').TreeNodeData;
765
754
  getCurrentKey: () => any;
766
- setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly?: boolean) => void;
755
+ setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly
756
+ /**
757
+ * 将树数据转成数组
758
+ * @param nodeData
759
+ */
760
+ ?: boolean) => void;
767
761
  setCheckedKeys: (keys: import('element-plus').TreeKey[], leafOnly?: boolean) => void;
768
762
  setChecked: (data: import('element-plus').TreeKey | import('element-plus').TreeNodeData, checked: boolean, deep: boolean) => void;
769
763
  getHalfCheckedNodes: () => import('element-plus').TreeNodeData[];
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./LayerTree.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _LayerTree = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4c2adf40"]]);
4
+ const _LayerTree = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d8dd9ae4"]]);
5
5
  export {
6
6
  _LayerTree as default
7
7
  };
@@ -3,8 +3,8 @@ import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/tooltip/style/css";
4
4
  import { defineComponent, ref, toRaw, reactive, onMounted, computed, createElementBlock, openBlock, createVNode, unref, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, nextTick } from "vue";
5
5
  import { ElMessage, ElTree } from "element-plus";
6
- import LayerManager from "ym-giscomm-2d/layers/LayerManager";
7
- import { mapServiceTreeTransform } from "ym-giscomm-2d/utils/LayerUtil";
6
+ import LayerManager from "ym-gis-2d/layers/LayerManager";
7
+ import { mapServiceTreeTransform } from "ym-gis-2d/utils/LayerUtil";
8
8
  import folderImg from "../../assets/img/folder.png.js";
9
9
  import layerImg from "../../assets/img/layer.png.js";
10
10
  import lineImg from "../../assets/img/line_layer.png.js";
@@ -1,5 +1,5 @@
1
1
  @charset "UTF-8";
2
- .layer-btn[data-v-4c2adf40] {
2
+ .layer-btn[data-v-d8dd9ae4] {
3
3
  background-color: var(--system-primary-color);
4
4
  color: var(--system-primary-text-color);
5
5
  font-size: var(--system-primary-text-size);
@@ -12,29 +12,29 @@
12
12
  cursor: pointer;
13
13
  border-radius: 3px;
14
14
  }
15
- .add-toc-tree[data-v-4c2adf40] {
15
+ .add-toc-tree[data-v-d8dd9ae4] {
16
16
  color: var(--el-text-color-regular) !important;
17
17
  }
18
- .el-tree[data-v-4c2adf40] {
18
+ .el-tree[data-v-d8dd9ae4] {
19
19
  background: unset;
20
20
  color: var(--system-primary-text-color);
21
21
  font-size: var(--system-primary-text-size);
22
22
  overflow: auto;
23
23
  max-height: 400px;
24
24
  }
25
- .el-tree[data-v-4c2adf40] .el-tree-node :hover {
25
+ .el-tree[data-v-d8dd9ae4] .el-tree-node :hover {
26
26
  background: unset;
27
27
  }
28
- .el-tree[data-v-4c2adf40] .el-tree-node :focus {
28
+ .el-tree[data-v-d8dd9ae4] .el-tree-node :focus {
29
29
  background: unset;
30
30
  }
31
- .el-tree[data-v-4c2adf40] .el-tree-node .el-tree-node__content {
31
+ .el-tree[data-v-d8dd9ae4] .el-tree-node .el-tree-node__content {
32
32
  background: unset;
33
33
  }
34
- .el-tree .active[data-v-4c2adf40] {
34
+ .el-tree .active[data-v-d8dd9ae4] {
35
35
  color: var(--system-primary-text-active-color);
36
36
  }
37
- .el-tree .layer-span[data-v-4c2adf40] .el-only-child__content {
37
+ .el-tree .layer-span[data-v-d8dd9ae4] .el-only-child__content {
38
38
  display: block;
39
39
  width: 95px;
40
40
  word-wrap: break-word;
@@ -46,14 +46,14 @@
46
46
  white-space: nowrap;
47
47
  /*强制不换行*/
48
48
  }
49
- .el-tree .icontest[data-v-4c2adf40] {
49
+ .el-tree .icontest[data-v-d8dd9ae4] {
50
50
  display: flex;
51
51
  font-size: var(--system-primary-text-size);
52
52
  }
53
- .el-tree .icontest .treeIconImg[data-v-4c2adf40] {
53
+ .el-tree .icontest .treeIconImg[data-v-d8dd9ae4] {
54
54
  height: 17px;
55
55
  margin: 2px;
56
56
  }
57
- [data-v-4c2adf40] .el-checkbox__label {
57
+ [data-v-d8dd9ae4] .el-checkbox__label {
58
58
  margin-left: 14px;
59
59
  }
@@ -1,12 +1,12 @@
1
1
  export declare const LayerTree: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
- data: import('ym-giscomm-2d/entity').IMapService[];
3
- map: import('ym-giscomm-2d/mapView/Map').default;
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-giscomm-2d/entity').IMapService[];
9
- map: import('ym-giscomm-2d/mapView/Map').default;
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;
@@ -0,0 +1,17 @@
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
+ /**
3
+ * showGeodetic 是否显示经纬度坐标,默认为false。如果是true,则显示经纬度坐标,否则根据地图坐标系显示坐标
4
+ */
5
+ type __VLS_Props = {
6
+ map: OLMap;
7
+ showSpheroid?: boolean;
8
+ position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
9
+ fractionDigits?: number;
10
+ };
11
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ fractionDigits: number;
13
+ position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ mousePositionRef: HTMLDivElement;
16
+ }, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./MousePositon.vue2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const _MousePositon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-50933065"]]);
5
+ export {
6
+ _MousePositon as default
7
+ };
@@ -0,0 +1,47 @@
1
+ import { defineComponent, ref, computed, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass } from "vue";
2
+ import MousePositionControl from "ym-gis-2d/controls/MousePositionControl";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "MousePositon",
5
+ props: {
6
+ map: {},
7
+ showSpheroid: { type: Boolean },
8
+ position: { default: "bottom-left" },
9
+ fractionDigits: { default: 2 }
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const mousePositionRef = ref();
14
+ const nodeposition = computed(() => {
15
+ switch (props.position) {
16
+ case "bottom-left":
17
+ return "bottom-left";
18
+ case "bottom-right":
19
+ return "bottom-right";
20
+ case "top-left":
21
+ return "top-left";
22
+ case "top-right":
23
+ return "top-right";
24
+ }
25
+ });
26
+ onMounted(() => {
27
+ const control = new MousePositionControl({
28
+ target: mousePositionRef.value,
29
+ className: ""
30
+ });
31
+ props.map.controlManager.addControl("mouse-position", control);
32
+ });
33
+ onUnmounted(() => {
34
+ props.map.controlManager.removeControl("mouse-position");
35
+ });
36
+ return (_ctx, _cache) => {
37
+ return openBlock(), createElementBlock("div", {
38
+ ref_key: "mousePositionRef",
39
+ ref: mousePositionRef,
40
+ class: normalizeClass(["mouse-position", nodeposition.value])
41
+ }, null, 2);
42
+ };
43
+ }
44
+ });
45
+ export {
46
+ _sfc_main as default
47
+ };
@@ -0,0 +1,19 @@
1
+ .mouse-position[data-v-50933065] {
2
+ position: absolute;
3
+ }
4
+ .bottom-left[data-v-50933065] {
5
+ bottom: 10px;
6
+ left: 10px;
7
+ }
8
+ .bottom-right[data-v-50933065] {
9
+ bottom: 10px;
10
+ right: 10px;
11
+ }
12
+ .top-left[data-v-50933065] {
13
+ top: 10px;
14
+ left: 10px;
15
+ }
16
+ .top-right[data-v-50933065] {
17
+ top: 10px;
18
+ right: 10px;
19
+ }
@@ -0,0 +1,17 @@
1
+ export declare const MousePositon: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
+ map: import('ym-gis-2d/mapView/Map').default;
3
+ showSpheroid?: boolean;
4
+ position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
5
+ fractionDigits?: number;
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
+ map: import('ym-gis-2d/mapView/Map').default;
8
+ showSpheroid?: boolean;
9
+ position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
10
+ fractionDigits?: number;
11
+ }> & Readonly<{}>, {
12
+ fractionDigits: number;
13
+ position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ mousePositionRef: HTMLDivElement;
16
+ }, HTMLDivElement>>;
17
+ export default MousePositon;
@@ -0,0 +1,8 @@
1
+ import "./index.css";
2
+ import { withInstall } from "../../utils/wthInstall.js";
3
+ import _MousePositon from "./MousePositon.vue.js";
4
+ const MousePositon = withInstall(_MousePositon);
5
+ export {
6
+ MousePositon,
7
+ MousePositon as default
8
+ };
@@ -1,6 +1,6 @@
1
- import { default as OLMap, OlMapOptions } from 'ym-giscomm-2d/mapView/Map';
2
- import { default as IMapService } from 'ym-giscomm-2d/entity/layer/IMapService';
3
- import { default as OLView } from 'ym-giscomm-2d/mapView/View';
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,19 +314,29 @@ 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-giscomm-2d/layers/IBaseLayer').IBaseLayer) => void;
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-giscomm-2d/entity/Feature').default>;
326
- getPointTempLayer: () => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
327
- getLineTempLayer: () => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
328
- getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
329
- getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
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;
331
341
  sortTemLayer: () => void;
332
342
  getExtent: () => import('ol/extent').Extent;
@@ -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-174306d9"]]);
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-giscomm-2d/mapView/Map";
2
+ import OLMap from "ym-gis-2d/mapView/Map";
3
3
  import { TocCard } from "../toc-card/index.js";
4
- import OLView from "ym-giscomm-2d/mapView/View";
5
- import { registerProj } from "ym-giscomm-2d/utils/RegisterProjUtil";
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-174306d9] {
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-174306d9] {
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-174306d9] {
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-giscomm-2d/entity').IMapService[];
2
+ layers: import('ym-gis-2d/entity').IMapService[];
3
3
  screenNum: number;
4
- mainMap?: import('ym-giscomm-2d/mapView/Map').default;
5
- options?: import('ym-giscomm-2d/mapView/Map').OlMapOptions;
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,19 +310,29 @@ 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
- getView: () => import('ym-giscomm-2d/mapView/View').default;
314
- fitLayer: (layer: import('ym-giscomm-2d/layers/IBaseLayer').IBaseLayer) => void;
315
- addMapLayer: (layerInfo: import('ym-giscomm-2d/entity').IMapService) => Promise<import('ol/layer/Base').default>;
316
- addMapLayers: (layerInfo: import('ym-giscomm-2d/entity').IMapService[]) => Promise<import('ol/layer/Base').default[]>;
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-giscomm-2d/entity/Feature').default>;
322
- getPointTempLayer: () => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
323
- getLineTempLayer: () => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
324
- getPolygonTempLayer: () => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
325
- getTempLayerByGeoType: (geoType: string) => import('ol/layer').Vector<import('ym-giscomm-2d/entity/Feature').default>;
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;
327
337
  sortTemLayer: () => void;
328
338
  getExtent: () => import('ol/extent').Extent;
@@ -415,10 +425,10 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
415
425
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
416
426
  loaded: (...args: any[]) => void;
417
427
  }, string, import('vue').PublicProps, Readonly<{
418
- layers: import('ym-giscomm-2d/entity').IMapService[];
428
+ layers: import('ym-gis-2d/entity').IMapService[];
419
429
  screenNum: number;
420
- mainMap?: import('ym-giscomm-2d/mapView/Map').default;
421
- options?: import('ym-giscomm-2d/mapView/Map').OlMapOptions;
430
+ mainMap?: import('ym-gis-2d/mapView/Map').default;
431
+ options?: import('ym-gis-2d/mapView/Map').OlMapOptions;
422
432
  }> & Readonly<{
423
433
  onLoaded?: ((...args: any[]) => any) | undefined;
424
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-f99aa501"]]);
4
+ const _PanelMultiScreen = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a9968831"]]);
5
5
  export {
6
6
  _PanelMultiScreen as default
7
7
  };
@@ -1,3 +1,3 @@
1
- .multi-screen-panel1[data-v-f99aa501] {
1
+ .multi-screen-panel1[data-v-a9968831] {
2
2
  width: 100%;
3
3
  }
@@ -1,5 +1,5 @@
1
- import { default as Feature } from 'ym-giscomm-2d/entity/Feature';
2
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
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-61fb39d3"]]);
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-giscomm-2d/feature/FeatureManager";
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-61fb39d3] {
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-61fb39d3]::after, .identify-popup[data-v-61fb39d3]::before {
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-61fb39d3]::after {
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-61fb39d3]::before {
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-61fb39d3] {
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-61fb39d3] {
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-61fb39d3] {
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-61fb39d3] {
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-61fb39d3] {
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-61fb39d3] .el-icon {
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-giscomm-2d/mapView/Map').default;
3
- features: import('ym-giscomm-2d/entity/Feature').default[];
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-giscomm-2d/mapView/Map').default;
9
- features: import('ym-giscomm-2d/entity/Feature').default[];
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;
@@ -0,0 +1,8 @@
1
+ import "./index.css";
2
+ import { withInstall } from "../../utils/wthInstall.js";
3
+ import _ScaleLine from "./ScaleLine.vue.js";
4
+ const ScaleLine = withInstall(_ScaleLine);
5
+ export {
6
+ ScaleLine,
7
+ ScaleLine as default
8
+ };
@@ -1,4 +1,4 @@
1
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  import { default as Style } from 'ol/style/Style';
3
3
  type __VLS_Props = {
4
4
  map: OLMap;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, onMounted, onUnmounted } from "vue";
2
- import Select from "ym-giscomm-2d/interaction/Select";
2
+ import Select from "ym-gis-2d/interaction/Select";
3
3
  import { ElLoading } from "element-plus";
4
- import FeatureManager from "ym-giscomm-2d/feature/FeatureManager";
5
- import { intersects } from "ym-giscomm-2d/utils/GeometryUtil";
6
- import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-giscomm-2d/style/StyleManager";
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-giscomm-2d/mapView/Map').default;
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-giscomm-2d/mapView/Map').default;
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,4 +1,4 @@
1
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
1
+ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  type __VLS_Props = {
3
3
  map: OLMap;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, onUnmounted } from "vue";
2
- import SwipeLayerControl from "ym-giscomm-2d/controls/SwipeLayerControl";
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-giscomm-2d/mapView/Map').default;
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-giscomm-2d/mapView/Map').default;
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-giscomm-2d/entity';
2
- import { default as OLMap } from 'ym-giscomm-2d/mapView/Map';
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-cdfeea6d"]]);
4
+ const _TocCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8745417a"]]);
5
5
  export {
6
6
  _TocCard as default
7
7
  };
@@ -1,4 +1,4 @@
1
- .toc-card[data-v-cdfeea6d] {
1
+ .toc-card[data-v-8745417a] {
2
2
  background-color: var(--system-primary-color);
3
3
  position: absolute;
4
4
  width: 245px;
@@ -1,12 +1,12 @@
1
1
  export declare const TocCard: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
- data: import('ym-giscomm-2d/entity').IMapService[];
3
- map: import('ym-giscomm-2d/mapView/Map').default;
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-giscomm-2d/entity').IMapService[];
9
- map: import('ym-giscomm-2d/mapView/Map').default;
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;
@@ -1,6 +1,6 @@
1
1
  import { post } from "./Axios.js";
2
2
  import Config from "../config/Config.js";
3
- import { getSourceLayerFields } from "ym-giscomm-2d/capabilities";
3
+ import { getSourceLayerFields } from "ym-gis-2d/capabilities";
4
4
  async function list(layerId) {
5
5
  if (!Config.ServiceUrl) {
6
6
  return [];
@@ -1,4 +1,4 @@
1
- import { IMapService, ILayerField } from 'ym-giscomm-2d/entity';
1
+ import { IMapService, ILayerField } from 'ym-gis-2d/entity';
2
2
  /**
3
3
  * 根据地图服务id获取字段列表
4
4
  * @param query
package/index.d.ts CHANGED
@@ -8,3 +8,5 @@ export * from './components/draw';
8
8
  export * from './components/export';
9
9
  export * from './components/import';
10
10
  export * from './components/identify';
11
+ export * from './components/mouse-position';
12
+ export * from './components/scale-line';
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.15",
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-giscomm-2d": "1.0.11"
13
+ "ym-gis-2d": "1.0.0"
14
14
  }
15
15
  }