ym-giswidget-2d 1.0.48 → 1.0.50

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 (42) hide show
  1. package/README.md +33 -33
  2. package/assets/font/iconfont.css +39 -39
  3. package/assets/font/iconfont.json +51 -51
  4. package/components/area-measurement/AreaMeasurement.vue.d.ts +20 -1
  5. package/components/area-measurement/AreaMeasurement.vue.js +78 -65
  6. package/components/area-measurement/index.d.ts +30 -2
  7. package/components/draw/Draw.vue.d.ts +3 -0
  8. package/components/draw/Draw.vue.js +8 -3
  9. package/components/draw/index.d.ts +4 -0
  10. package/components/export/Export.vue.js +1 -1
  11. package/components/export/index.css +1 -1
  12. package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.js +1 -1
  13. package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue2.js +3 -1
  14. package/components/horizontally-top-toolbar/index.css +9 -9
  15. package/components/identify/Identify.vue.d.ts +2 -2
  16. package/components/identify/Identify.vue.js +1 -1
  17. package/components/identify/index.d.ts +19 -19
  18. package/components/layer-tree/LayerTree.vue.d.ts +5 -2
  19. package/components/layer-tree/LayerTree.vue.js +1 -1
  20. package/components/layer-tree/LayerTree.vue2.js +27 -8
  21. package/components/layer-tree/index.css +31 -16
  22. package/components/layer-tree/index.d.ts +3 -0
  23. package/components/map-view/MapView.vue.d.ts +22 -3
  24. package/components/map-view/MapView.vue.js +17 -1
  25. package/components/map-view/index.d.ts +17 -1
  26. package/components/multi-screen/MultiScreen.vue.d.ts +15 -1
  27. package/components/multi-screen/index.d.ts +15 -1
  28. package/components/popup/Popup.vue.d.ts +1 -1
  29. package/components/popup/Popup.vue.js +1 -1
  30. package/components/popup/Popup.vue2.js +6 -1
  31. package/components/popup/index.css +10 -10
  32. package/components/popup/index.d.ts +1 -1
  33. package/components/select/Select.vue.d.ts +1 -1
  34. package/components/select/Select.vue.js +1 -1
  35. package/components/select/index.d.ts +1 -1
  36. package/components/toc-card/TocCard.vue.d.ts +2 -0
  37. package/components/toc-card/TocCard.vue.js +1 -1
  38. package/components/toc-card/TocCard.vue2.js +4 -2
  39. package/components/toc-card/index.css +1 -1
  40. package/components/toc-card/index.d.ts +3 -0
  41. package/package.json +2 -2
  42. package/panel/index.css +15 -15
@@ -1,4 +1,4 @@
1
- .toolbar-contain[data-v-f42f3be5] {
1
+ .toolbar-contain[data-v-75b81512] {
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-f42f3be5] {
12
+ .toolbar-contain .toolbar-item-contain[data-v-75b81512] {
13
13
  height: 43px;
14
14
  line-height: 43px;
15
15
  display: flex;
@@ -18,17 +18,17 @@
18
18
  align-items: center;
19
19
  cursor: pointer;
20
20
  }
21
- .toolbar-contain .toolbar-item-contain .toolbar-item[data-v-f42f3be5] {
21
+ .toolbar-contain .toolbar-item-contain .toolbar-item[data-v-75b81512] {
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-f42f3be5] {
26
+ .toolbar-contain .toolbar-item-contain .toolbar-icon[data-v-75b81512] {
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-f42f3be5] {
31
+ .toolbar-contain .toolbar-item-contain .toolbar-children-contain[data-v-75b81512] {
32
32
  position: absolute;
33
33
  top: 50px;
34
34
  background: var(--system-primary-color);
@@ -36,24 +36,24 @@
36
36
  border-radius: 3px;
37
37
  margin: 0px -1px;
38
38
  }
39
- .toolbar-contain .active[data-v-f42f3be5] {
39
+ .toolbar-contain .active[data-v-75b81512] {
40
40
  color: var(--system-primary-text-active-color);
41
41
  }
42
- .toolbar-contain .toolbar-split[data-v-f42f3be5] {
42
+ .toolbar-contain .toolbar-split[data-v-75b81512] {
43
43
  width: 2px;
44
44
  height: 20px;
45
45
  background: #7EA08E;
46
46
  margin: auto;
47
47
  opacity: 0.5;
48
48
  }
49
- .toolbar-contain .toolbar-h-split[data-v-f42f3be5] {
49
+ .toolbar-contain .toolbar-h-split[data-v-75b81512] {
50
50
  height: 2px;
51
51
  background: #7EA08E;
52
52
  margin: auto;
53
53
  opacity: 0.5;
54
54
  margin: 0px 10px;
55
55
  }
56
- .component-position[data-v-f42f3be5] {
56
+ .component-position[data-v-75b81512] {
57
57
  position: absolute;
58
58
  right: 300px;
59
59
  }
@@ -1,5 +1,5 @@
1
1
  import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
- import { default as IStyle } from 'ym-gis-2d/entity/IStyle';
2
+ import { default as IStyle } from 'ym-gis-2d/entity/style/IStyle';
3
3
  import { IMapService } from 'ym-gis-2d/entity';
4
4
  type __VLS_Props = {
5
5
  map: OLMap;
@@ -17,7 +17,7 @@ declare function __VLS_template(): {
17
17
  footer?(_: {
18
18
  feature: {
19
19
  isSelected?: boolean | undefined;
20
- fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | undefined;
20
+ fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | "measure" | undefined;
21
21
  layerId?: string | undefined;
22
22
  tag?: string | undefined;
23
23
  tempLayer?: {
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  });
36
36
  props.map.interactionManager.addInteraction("identify", select);
37
37
  let loadingInstance = null;
38
- select.on("selectstart", (event) => {
38
+ select.on("selectStart", (event) => {
39
39
  loadingInstance = ElLoading.service({ text: "正在查询...", background: "rgba(0, 0, 0, 0.5)", target: props.map.getTarget() });
40
40
  });
41
41
  select.on("selected", (event) => {
@@ -2,12 +2,12 @@ export declare const Identify: import('../../utils').WithInstall<{
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
3
  map: import('ym-gis-2d/mapView/Map').default;
4
4
  selectLayers?: import('ym-gis-2d/entity').IMapService[];
5
- pointStyle?: IStyle;
6
- cancePointStyle?: IStyle;
7
- lineStyle?: IStyle;
8
- canceLineStyle?: IStyle;
9
- polygonStyle?: IStyle;
10
- cancePolygonStyle?: IStyle;
5
+ pointStyle?: import('ym-gis-2d/entity/style/IStyle').default;
6
+ cancePointStyle?: import('ym-gis-2d/entity/style/IStyle').default;
7
+ lineStyle?: import('ym-gis-2d/entity/style/IStyle').default;
8
+ canceLineStyle?: import('ym-gis-2d/entity/style/IStyle').default;
9
+ polygonStyle?: import('ym-gis-2d/entity/style/IStyle').default;
10
+ cancePolygonStyle?: import('ym-gis-2d/entity/style/IStyle').default;
11
11
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
12
12
  P: {};
13
13
  B: {};
@@ -18,12 +18,12 @@ export declare const Identify: import('../../utils').WithInstall<{
18
18
  }, Readonly<{
19
19
  map: import('ym-gis-2d/mapView/Map').default;
20
20
  selectLayers?: import('ym-gis-2d/entity').IMapService[];
21
- pointStyle?: IStyle;
22
- cancePointStyle?: IStyle;
23
- lineStyle?: IStyle;
24
- canceLineStyle?: IStyle;
25
- polygonStyle?: IStyle;
26
- cancePolygonStyle?: IStyle;
21
+ pointStyle?: import('ym-gis-2d/entity/style/IStyle').default;
22
+ cancePointStyle?: import('ym-gis-2d/entity/style/IStyle').default;
23
+ lineStyle?: import('ym-gis-2d/entity/style/IStyle').default;
24
+ canceLineStyle?: import('ym-gis-2d/entity/style/IStyle').default;
25
+ polygonStyle?: import('ym-gis-2d/entity/style/IStyle').default;
26
+ cancePolygonStyle?: import('ym-gis-2d/entity/style/IStyle').default;
27
27
  }> & Readonly<{}>, {}, {}, {}, {}, {}>;
28
28
  __isFragment?: never;
29
29
  __isTeleport?: never;
@@ -31,18 +31,18 @@ export declare const Identify: import('../../utils').WithInstall<{
31
31
  } & import('vue').ComponentOptionsBase<Readonly<{
32
32
  map: import('ym-gis-2d/mapView/Map').default;
33
33
  selectLayers?: import('ym-gis-2d/entity').IMapService[];
34
- pointStyle?: IStyle;
35
- cancePointStyle?: IStyle;
36
- lineStyle?: IStyle;
37
- canceLineStyle?: IStyle;
38
- polygonStyle?: IStyle;
39
- cancePolygonStyle?: IStyle;
34
+ pointStyle?: import('ym-gis-2d/entity/style/IStyle').default;
35
+ cancePointStyle?: import('ym-gis-2d/entity/style/IStyle').default;
36
+ lineStyle?: import('ym-gis-2d/entity/style/IStyle').default;
37
+ canceLineStyle?: import('ym-gis-2d/entity/style/IStyle').default;
38
+ polygonStyle?: import('ym-gis-2d/entity/style/IStyle').default;
39
+ cancePolygonStyle?: import('ym-gis-2d/entity/style/IStyle').default;
40
40
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
41
41
  $slots: {
42
42
  footer?(_: {
43
43
  feature: {
44
44
  isSelected?: boolean | undefined;
45
- fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | undefined;
45
+ fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | "measure" | undefined;
46
46
  layerId?: string | undefined;
47
47
  tag?: string | undefined;
48
48
  tempLayer?: {
@@ -1,3 +1,4 @@
1
+ import { FilterNodeMethodFunction } from 'element-plus';
1
2
  import { IMapService } from 'ym-gis-2d/entity';
2
3
  import { default as OLMap } from 'ym-gis-2d/mapView/Map';
3
4
  type __VLS_Props = {
@@ -5,6 +6,7 @@ type __VLS_Props = {
5
6
  map: OLMap;
6
7
  editLayerTag?: string;
7
8
  showOpacity?: boolean;
9
+ showFilter?: boolean;
8
10
  };
9
11
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
12
  loaded: (...args: any[]) => void;
@@ -12,6 +14,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
12
14
  onLoaded?: ((...args: any[]) => any) | undefined;
13
15
  }>, {
14
16
  showOpacity: boolean;
17
+ showFilter: boolean;
15
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
16
19
  tocTree: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
17
20
  data: {
@@ -209,7 +212,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
209
212
  data: import('element-plus').TreeNodeData[];
210
213
  lazy: boolean;
211
214
  load: import('element-plus').LoadFunction;
212
- filterNodeMethod: import('element-plus').FilterNodeMethodFunction;
215
+ filterNodeMethod: import('element-plus/es/components/tree/src/tree.type').FilterNodeMethodFunction;
213
216
  key: import('element-plus').TreeKey;
214
217
  defaultCheckedKeys: import('element-plus').TreeKey[];
215
218
  checkStrictly: boolean;
@@ -597,7 +600,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
597
600
  data: import('element-plus').TreeNodeData[];
598
601
  lazy: boolean;
599
602
  load: import('element-plus').LoadFunction;
600
- filterNodeMethod: import('element-plus').FilterNodeMethodFunction;
603
+ filterNodeMethod: import('element-plus/es/components/tree/src/tree.type').FilterNodeMethodFunction;
601
604
  key: import('element-plus').TreeKey;
602
605
  defaultCheckedKeys: import('element-plus').TreeKey[];
603
606
  checkStrictly: boolean;
@@ -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-567f3aad"]]);
4
+ const _LayerTree = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9b73a639"]]);
5
5
  export {
6
6
  _LayerTree as default
7
7
  };
@@ -1,8 +1,9 @@
1
- import { ElTooltip, ElSlider } from "element-plus/es";
1
+ import { ElInput, ElTooltip, ElSlider } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/slider/style/css";
4
4
  import "element-plus/es/components/tooltip/style/css";
5
- import { defineComponent, ref, toRaw, reactive, onMounted, computed, createElementBlock, openBlock, createVNode, unref, withCtx, createElementVNode, createCommentVNode, withModifiers, normalizeClass, createTextVNode, toDisplayString, nextTick } from "vue";
5
+ import "element-plus/es/components/input/style/css";
6
+ import { defineComponent, ref, toRaw, reactive, watch, onMounted, computed, createElementBlock, openBlock, createBlock, createCommentVNode, createVNode, unref, withCtx, createElementVNode, withModifiers, normalizeClass, createTextVNode, toDisplayString, nextTick } from "vue";
6
7
  import { ElMessage, ElTree } from "element-plus";
7
8
  import LayerManager from "ym-gis-2d/layers/LayerManager";
8
9
  import { mapServiceTreeTransform } from "ym-gis-2d/utils/LayerUtil";
@@ -15,17 +16,19 @@ import editLayerImg from "../../assets/img/editLayerIcon.png.js";
15
16
  const _hoisted_1 = { class: "custom-tree-node" };
16
17
  const _hoisted_2 = { class: "icontest" };
17
18
  const _hoisted_3 = ["src", "id", "onClick"];
18
- const _hoisted_4 = { class: "opacity-text" };
19
+ const _hoisted_4 = { class: "opacity-font opacity-text" };
19
20
  const _sfc_main = /* @__PURE__ */ defineComponent({
20
21
  __name: "LayerTree",
21
22
  props: {
22
23
  data: {},
23
24
  map: {},
24
25
  editLayerTag: {},
25
- showOpacity: { type: Boolean, default: false }
26
+ showOpacity: { type: Boolean, default: false },
27
+ showFilter: { type: Boolean, default: false }
26
28
  },
27
29
  emits: ["loaded"],
28
30
  setup(__props, { emit: __emit }) {
31
+ const filterText = ref("");
29
32
  const tocTree = ref();
30
33
  const emit = __emit;
31
34
  const props = __props;
@@ -37,6 +40,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
40
  currentEditLayerId: ""
38
41
  });
39
42
  const treenodecontentheight = ref("49px");
43
+ watch(filterText, (val) => {
44
+ tocTree.value.filter(val);
45
+ });
40
46
  onMounted(async () => {
41
47
  if (!props.showOpacity) {
42
48
  treenodecontentheight.value = "26px";
@@ -61,6 +67,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
67
  return layerImg;
62
68
  }
63
69
  });
70
+ function filterNode(value, data) {
71
+ if (!value) return true;
72
+ return data.title.includes(value);
73
+ }
64
74
  function initLayers(isMounted) {
65
75
  if (!props.data) {
66
76
  return;
@@ -185,9 +195,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
185
195
  return result;
186
196
  }
187
197
  return (_ctx, _cache) => {
198
+ const _component_el_input = ElInput;
188
199
  const _component_el_tooltip = ElTooltip;
189
200
  const _component_el_slider = ElSlider;
190
201
  return openBlock(), createElementBlock("div", null, [
202
+ props.showFilter ? (openBlock(), createBlock(_component_el_input, {
203
+ key: 0,
204
+ modelValue: filterText.value,
205
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterText.value = $event),
206
+ placeholder: "请输入服务名称"
207
+ }, null, 8, ["modelValue"])) : createCommentVNode("", true),
191
208
  createVNode(unref(ElTree), {
192
209
  class: "toc-tree el-current",
193
210
  data: unref(reactiveValue).layerData,
@@ -201,14 +218,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
201
218
  draggable: false,
202
219
  onCheckChange: onCheckLayer,
203
220
  onNodeDrop: handleDrop,
204
- "allow-drop": handleEnter
221
+ "allow-drop": handleEnter,
222
+ "filter-node-method": filterNode
205
223
  }, {
206
224
  default: withCtx(({ node, data }) => [
207
225
  createElementVNode("div", _hoisted_1, [
208
226
  createElementVNode("span", _hoisted_2, [
209
227
  createElementVNode("img", {
210
228
  onClick: [
211
- _cache[0] || (_cache[0] = withModifiers(() => {
229
+ _cache[1] || (_cache[1] = withModifiers(() => {
212
230
  }, ["stop"])),
213
231
  ($event) => iconClick(data)
214
232
  ],
@@ -233,12 +251,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
233
251
  ]),
234
252
  props.showOpacity && data.url ? (openBlock(), createElementBlock("div", {
235
253
  key: 0,
236
- onClick: _cache[2] || (_cache[2] = withModifiers(() => {
254
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {
237
255
  }, ["stop"])),
238
256
  class: "opacity-container"
239
257
  }, [
258
+ _cache[4] || (_cache[4] = createElementVNode("span", { class: "opacity-font opacity-label" }, "透明度", -1)),
240
259
  createVNode(_component_el_slider, {
241
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {
260
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {
242
261
  }, ["stop"])),
243
262
  modelValue: data.opacity,
244
263
  "onUpdate:modelValue": ($event) => data.opacity = $event,
@@ -1,5 +1,5 @@
1
1
  @charset "UTF-8";
2
- .layer-btn[data-v-567f3aad] {
2
+ .layer-btn[data-v-9b73a639] {
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,31 +12,31 @@
12
12
  cursor: pointer;
13
13
  border-radius: 3px;
14
14
  }
15
- .add-toc-tree[data-v-567f3aad] {
15
+ .add-toc-tree[data-v-9b73a639] {
16
16
  color: var(--el-text-color-regular) !important;
17
17
  }
18
- .el-tree[data-v-567f3aad] {
18
+ .el-tree[data-v-9b73a639] {
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-567f3aad] .el-tree-node :hover {
25
+ .el-tree[data-v-9b73a639] .el-tree-node :hover {
26
26
  background: unset;
27
27
  }
28
- .el-tree[data-v-567f3aad] .el-tree-node :focus {
28
+ .el-tree[data-v-9b73a639] .el-tree-node :focus {
29
29
  background: unset;
30
30
  }
31
- .el-tree[data-v-567f3aad] .el-tree-node .el-tree-node__content {
31
+ .el-tree[data-v-9b73a639] .el-tree-node .el-tree-node__content {
32
32
  background: unset;
33
33
  align-items: unset;
34
34
  height: 100%;
35
35
  }
36
- .el-tree .active[data-v-567f3aad] {
36
+ .el-tree .active[data-v-9b73a639] {
37
37
  color: var(--system-primary-text-active-color);
38
38
  }
39
- .el-tree .layer-span[data-v-567f3aad] .el-only-child__content {
39
+ .el-tree .layer-span[data-v-9b73a639] .el-only-child__content {
40
40
  display: block;
41
41
  width: 95px;
42
42
  word-wrap: break-word;
@@ -48,30 +48,45 @@
48
48
  white-space: nowrap;
49
49
  /*强制不换行*/
50
50
  }
51
- .el-tree .custom-tree-node .icontest[data-v-567f3aad] {
51
+ .el-tree .custom-tree-node[data-v-9b73a639] {
52
+ min-width: 140px;
53
+ }
54
+ .el-tree .custom-tree-node .icontest[data-v-9b73a639] {
52
55
  display: flex;
53
56
  font-size: var(--system-primary-text-size);
54
57
  }
55
- .el-tree .custom-tree-node .icontest .treeIconImg[data-v-567f3aad] {
58
+ .el-tree .custom-tree-node .icontest .treeIconImg[data-v-9b73a639] {
56
59
  height: 17px;
57
60
  margin: 2px;
58
61
  }
59
- .el-tree .custom-tree-node .opacity-container[data-v-567f3aad] {
62
+ .el-tree .custom-tree-node .opacity-container[data-v-9b73a639] {
60
63
  display: flex;
61
64
  }
62
- .el-tree .custom-tree-node .opacity-container .opacity-text[data-v-567f3aad] {
65
+ .el-tree .custom-tree-node .opacity-container .opacity-font[data-v-9b73a639] {
66
+ font-size: 12px;
67
+ }
68
+ .el-tree .custom-tree-node .opacity-container .opacity-label[data-v-9b73a639] {
69
+ margin-right: 13px;
70
+ }
71
+ .el-tree .custom-tree-node .opacity-container .opacity-text[data-v-9b73a639] {
63
72
  margin-left: 13px;
64
73
  }
65
- .el-tree .el-slider[data-v-567f3aad] {
74
+ .el-tree .el-slider[data-v-9b73a639] {
66
75
  height: 20px;
67
76
  margin-bottom: 8px;
68
77
  }
69
- .el-tree .el-slider[data-v-567f3aad] .el-slider__runway {
78
+ .el-tree .el-slider[data-v-9b73a639] .el-slider__runway {
70
79
  background-color: var(--el-slider-runway-bg-color) !important;
71
80
  }
72
- .el-tree .el-slider[data-v-567f3aad] .el-slider__runway .el-slider__bar {
81
+ .el-tree .el-slider[data-v-9b73a639] .el-slider__runway .el-slider__bar {
73
82
  background-color: var(--el-slider-main-bg-color) !important;
74
83
  }
75
- [data-v-567f3aad] .el-checkbox__label {
84
+ [data-v-9b73a639] .el-checkbox__label {
76
85
  margin-left: 14px;
86
+ }
87
+ .el-input[data-v-9b73a639] .el-input__wrapper {
88
+ background-color: unset;
89
+ }
90
+ .el-input[data-v-9b73a639] .el-input__wrapper .el-input__inner {
91
+ color: var(--system-primary-text-color);
77
92
  }
@@ -3,6 +3,7 @@ export declare const LayerTree: import('../../utils').WithInstall<import('vue').
3
3
  map: import('ym-gis-2d/mapView/Map').default;
4
4
  editLayerTag?: string;
5
5
  showOpacity?: boolean;
6
+ showFilter?: boolean;
6
7
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
8
  loaded: (...args: any[]) => void;
8
9
  }, string, import('vue').PublicProps, Readonly<{
@@ -10,10 +11,12 @@ export declare const LayerTree: import('../../utils').WithInstall<import('vue').
10
11
  map: import('ym-gis-2d/mapView/Map').default;
11
12
  editLayerTag?: string;
12
13
  showOpacity?: boolean;
14
+ showFilter?: boolean;
13
15
  }> & Readonly<{
14
16
  onLoaded?: ((...args: any[]) => any) | undefined;
15
17
  }>, {
16
18
  showOpacity: boolean;
19
+ showFilter: boolean;
17
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
21
  tocTree: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
19
22
  data: {
@@ -1,3 +1,4 @@
1
+ import { default as IStyle } from 'ym-gis-2d/entity/style/IStyle';
1
2
  type __VLS_Props = {
2
3
  projection?: number;
3
4
  center?: number[];
@@ -9,6 +10,8 @@ type __VLS_Props = {
9
10
  maxResolution?: number;
10
11
  constrainResolution?: boolean;
11
12
  };
13
+ declare function addWKT(wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: IStyle): void;
14
+ declare function addWKTs(wkts: string[], proj: string, tag?: string, location?: boolean, style?: IStyle, properties?: any): void;
12
15
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
13
16
  mapView: {
14
17
  currentEditLayer?: {
@@ -50,7 +53,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
50
53
  fieldLength?: number | undefined;
51
54
  fieldPrecision?: number | undefined;
52
55
  editDefaultValue?: string | undefined;
53
- fieldDomain?: string | undefined;
56
+ fieldDomain?: {
57
+ dicCode: string;
58
+ dicValue: string;
59
+ }[] | undefined;
54
60
  updateTime: string;
55
61
  createTime: string;
56
62
  createUserId: string;
@@ -101,6 +107,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
101
107
  "fill-opacity": string;
102
108
  }[];
103
109
  } | undefined;
110
+ Raster?: {
111
+ colormap: {
112
+ entries: {
113
+ color: string;
114
+ label: string;
115
+ quantity: number;
116
+ }[];
117
+ type: string;
118
+ };
119
+ opacity: number;
120
+ } | undefined;
104
121
  imgUrl?: string | undefined;
105
122
  }[];
106
123
  }[];
@@ -391,8 +408,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
391
408
  resetViewProjection: (projection: string) => void;
392
409
  sortTemLayer: () => void;
393
410
  getExtent: () => import('ol/extent').Extent;
394
- addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/style/IStyle').default) => import('ym-gis-2d/entity/Feature').default | undefined;
395
- addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/style/IStyle').default, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
411
+ addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: IStyle) => import('ym-gis-2d/entity/Feature').default | undefined;
412
+ addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: IStyle, properties?: any) => import('ym-gis-2d/entity/Feature').default[] | undefined;
396
413
  locationWKT: (wkt: string, proj?: string, ratio?: number, isFlash?: boolean) => void;
397
414
  locationWKTs: (wkts: string[], proj?: string, ratio?: number, isFlash?: boolean) => void;
398
415
  locationGeometry: (geometry: import('ol/geom').Geometry, proj?: string, ratio?: number, isFlash?: boolean) => void;
@@ -480,6 +497,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
480
497
  removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
481
498
  dispose: () => void;
482
499
  } | undefined;
500
+ addWKT: typeof addWKT;
501
+ addWKTs: typeof addWKTs;
483
502
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
484
503
  init: (...args: any[]) => void;
485
504
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -35,8 +35,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  });
36
36
  emit("init", reactiveValue.mapView);
37
37
  });
38
+ function addWKT(wkt, proj, tag, location = true, properties, style = { color: "rgba(255, 0, 0, 0.2)", opacity: 0.2, outlineColor: "rgba(255, 0, 0, 1)", outlineWidth: 2 }) {
39
+ if (reactiveValue.mapView) {
40
+ reactiveValue.mapView.addWKT(wkt, proj, tag, location, properties, style);
41
+ } else {
42
+ console.error("地图未初始化完成,无法添加WKT数据");
43
+ }
44
+ }
45
+ function addWKTs(wkts, proj, tag, location = true, style = { color: "rgba(255, 0, 0, 0.2)", opacity: 0.2, outlineColor: "rgba(255, 0, 0, 1)", outlineWidth: 2 }, properties) {
46
+ if (reactiveValue.mapView) {
47
+ reactiveValue.mapView.addWKTs(wkts, proj, tag, location, style, properties);
48
+ } else {
49
+ console.error("地图未初始化完成,无法添加WKT数据");
50
+ }
51
+ }
38
52
  __expose({
39
- mapView: reactiveValue.mapView
53
+ mapView: reactiveValue.mapView,
54
+ addWKT,
55
+ addWKTs
40
56
  });
41
57
  return (_ctx, _cache) => {
42
58
  return openBlock(), createElementBlock("div", {
@@ -49,7 +49,10 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
49
49
  fieldLength?: number | undefined;
50
50
  fieldPrecision?: number | undefined;
51
51
  editDefaultValue?: string | undefined;
52
- fieldDomain?: string | undefined;
52
+ fieldDomain?: {
53
+ dicCode: string;
54
+ dicValue: string;
55
+ }[] | undefined;
53
56
  updateTime: string;
54
57
  createTime: string;
55
58
  createUserId: string;
@@ -100,6 +103,17 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
100
103
  "fill-opacity": string;
101
104
  }[];
102
105
  } | undefined;
106
+ Raster?: {
107
+ colormap: {
108
+ entries: {
109
+ color: string;
110
+ label: string;
111
+ quantity: number;
112
+ }[];
113
+ type: string;
114
+ };
115
+ opacity: number;
116
+ } | undefined;
103
117
  imgUrl?: string | undefined;
104
118
  }[];
105
119
  }[];
@@ -479,6 +493,8 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
479
493
  removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
480
494
  dispose: () => void;
481
495
  } | undefined;
496
+ addWKT: (wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: import('ym-gis-2d/entity/style/IStyle').default) => void;
497
+ addWKTs: (wkts: string[], proj: string, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/style/IStyle').default, properties?: any) => void;
482
498
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
483
499
  init: (...args: any[]) => void;
484
500
  }, string, import('vue').PublicProps, Readonly<{
@@ -56,7 +56,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
56
56
  fieldLength?: number | undefined;
57
57
  fieldPrecision?: number | undefined;
58
58
  editDefaultValue?: string | undefined;
59
- fieldDomain?: string | undefined;
59
+ fieldDomain?: {
60
+ dicCode: string;
61
+ dicValue: string;
62
+ }[] | undefined;
60
63
  updateTime: string;
61
64
  createTime: string;
62
65
  createUserId: string;
@@ -107,6 +110,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
107
110
  "fill-opacity": string;
108
111
  }[];
109
112
  } | undefined;
113
+ Raster?: {
114
+ colormap: {
115
+ entries: {
116
+ color: string;
117
+ label: string;
118
+ quantity: number;
119
+ }[];
120
+ type: string;
121
+ };
122
+ opacity: number;
123
+ } | undefined;
110
124
  imgUrl?: string | undefined;
111
125
  }[];
112
126
  }[];
@@ -52,7 +52,10 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
52
52
  fieldLength?: number | undefined;
53
53
  fieldPrecision?: number | undefined;
54
54
  editDefaultValue?: string | undefined;
55
- fieldDomain?: string | undefined;
55
+ fieldDomain?: {
56
+ dicCode: string;
57
+ dicValue: string;
58
+ }[] | undefined;
56
59
  updateTime: string;
57
60
  createTime: string;
58
61
  createUserId: string;
@@ -103,6 +106,17 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
103
106
  "fill-opacity": string;
104
107
  }[];
105
108
  } | undefined;
109
+ Raster?: {
110
+ colormap: {
111
+ entries: {
112
+ color: string;
113
+ label: string;
114
+ quantity: number;
115
+ }[];
116
+ type: string;
117
+ };
118
+ opacity: number;
119
+ } | undefined;
106
120
  imgUrl?: string | undefined;
107
121
  }[];
108
122
  }[];
@@ -14,7 +14,7 @@ declare function __VLS_template(): {
14
14
  footer?(_: {
15
15
  feature: {
16
16
  isSelected?: boolean | undefined;
17
- fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | undefined;
17
+ fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | "measure" | undefined;
18
18
  layerId?: string | undefined;
19
19
  tag?: string | undefined;
20
20
  tempLayer?: {
@@ -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-a382b570"]]);
5
+ const _Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a89c3ac4"]]);
6
6
  export {
7
7
  _Popup as default
8
8
  };
@@ -165,7 +165,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
165
165
  continue;
166
166
  }
167
167
  let value = attributes[key];
168
- if (field.fieldType == 4 && value) {
168
+ if (field.fieldDomain && field.fieldDomain.length > 0) {
169
+ const domain = field.fieldDomain.find((t) => t.dicCode === value);
170
+ if (domain) {
171
+ value = domain.dicValue;
172
+ }
173
+ } else if (field.fieldType == 4 && value) {
169
174
  value = new Date(attributes[key]).toLocaleDateString();
170
175
  }
171
176
  attributesInfos.push({ ...field, value });