ym-giswidget-2d 1.0.79 → 1.0.80

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.
@@ -1,11 +1,11 @@
1
- .search-container[data-v-85cbdb6a] {
1
+ .search-container[data-v-84185d52] {
2
2
  width: 320px;
3
3
  position: absolute;
4
4
  right: 165px;
5
5
  top: 6.34444vh;
6
6
  z-index: 999;
7
7
  }
8
- .search-container .input-container[data-v-85cbdb6a] {
8
+ .search-container .input-container[data-v-84185d52] {
9
9
  width: 100%;
10
10
  display: flex;
11
11
  align-items: center;
@@ -13,7 +13,7 @@
13
13
  padding-left: 45px;
14
14
  box-sizing: border-box;
15
15
  }
16
- .search-container .input-container .drag-header[data-v-85cbdb6a] {
16
+ .search-container .input-container .drag-header[data-v-84185d52] {
17
17
  width: 60px;
18
18
  height: 32px;
19
19
  position: absolute;
@@ -29,34 +29,34 @@
29
29
  box-shadow: 0px 0px 7.9673px 1.9923px var(--system-primary-border-color) inset !important;
30
30
  font-size: var(--system-primary-text-size);
31
31
  }
32
- .search-container .input-container .el-form[data-v-85cbdb6a] {
32
+ .search-container .input-container .el-form[data-v-84185d52] {
33
33
  width: 100%;
34
34
  }
35
- .search-container .input-container .el-form .el-form-item[data-v-85cbdb6a] {
35
+ .search-container .input-container .el-form .el-form-item[data-v-84185d52] {
36
36
  margin: 0;
37
37
  }
38
- .search-container .input-container .el-input .el-input-group__append[data-v-85cbdb6a] {
38
+ .search-container .input-container .el-input .el-input-group__append[data-v-84185d52] {
39
39
  color: var(--system-primary-text-color);
40
40
  font-size: var(--system-primary-text-size);
41
41
  box-shadow: none;
42
42
  background-color: var(--system-primary-color);
43
43
  }
44
- .search-container .input-container .el-input[data-v-85cbdb6a]:active {
44
+ .search-container .input-container .el-input[data-v-84185d52]:active {
45
45
  color: var(--system-primary-text-active-color);
46
46
  }
47
- .search-container .input-container .el-input[data-v-85cbdb6a] .el-input__wrapper {
47
+ .search-container .input-container .el-input[data-v-84185d52] .el-input__wrapper {
48
48
  border-radius: 0;
49
49
  box-shadow: 1px 1px var(--box-inset-shadow-color) inset !important;
50
50
  background-color: var(--system-primary-color);
51
51
  }
52
- .search-container .input-container .el-input[data-v-85cbdb6a] .el-input__prefix {
52
+ .search-container .input-container .el-input[data-v-84185d52] .el-input__prefix {
53
53
  color: var(--system-primary-text-color);
54
54
  font-size: var(--system-primary-text-size);
55
55
  }
56
- .search-container .input-container .el-input[data-v-85cbdb6a] .el-input__inner {
56
+ .search-container .input-container .el-input[data-v-84185d52] .el-input__inner {
57
57
  color: var(--system-primary-text-color);
58
58
  }
59
- .search-container .result-container[data-v-85cbdb6a] {
59
+ .search-container .result-container[data-v-84185d52] {
60
60
  max-height: 60vh;
61
61
  box-sizing: border-box;
62
62
  transition: all 0.3s;
@@ -66,31 +66,31 @@
66
66
  padding: 10px 0;
67
67
  background: var(--system-primary-color);
68
68
  }
69
- .search-container .result-container .result-item[data-v-85cbdb6a] {
69
+ .search-container .result-container .result-item[data-v-84185d52] {
70
70
  display: flex;
71
71
  flex-direction: column;
72
72
  padding: 8px 15px;
73
73
  color: var(--system-primary-text-color);
74
74
  font-size: var(--system-primary-text-size);
75
75
  }
76
- .search-container .result-container .result-item .name[data-v-85cbdb6a] {
76
+ .search-container .result-container .result-item .name[data-v-84185d52] {
77
77
  font-weight: 700;
78
78
  cursor: pointer;
79
79
  }
80
- .search-container .result-container .result-item .address[data-v-85cbdb6a] {
80
+ .search-container .result-container .result-item .address[data-v-84185d52] {
81
81
  color: var(--system-primary-text-color);
82
82
  cursor: pointer;
83
83
  }
84
- .search-container .result-container .result-item .active[data-v-85cbdb6a] {
84
+ .search-container .result-container .result-item .active[data-v-84185d52] {
85
85
  color: var(--system-primary-text-active-color);
86
86
  }
87
- .el-button[data-v-85cbdb6a] {
87
+ .el-button[data-v-84185d52] {
88
88
  display: flex;
89
89
  font-size: var(--system-primary-text-size);
90
90
  border-top-left-radius: 0px;
91
91
  border-bottom-left-radius: 0px;
92
92
  }
93
- .el-button[data-v-85cbdb6a] .el-icon {
93
+ .el-button[data-v-84185d52] .el-icon {
94
94
  color: var(--system-primary-text-color);
95
95
  cursor: pointer;
96
96
  }
@@ -2,11 +2,14 @@ export declare const AddressSearch: import('../../utils').WithInstall<import('vu
2
2
  map: import('ym-gis-2d/mapView/Map').default;
3
3
  zoom?: number;
4
4
  locationImg?: string;
5
+ source?: import('../../http/poi').PoiDataSource;
5
6
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
7
  map: import('ym-gis-2d/mapView/Map').default;
7
8
  zoom?: number;
8
9
  locationImg?: string;
10
+ source?: import('../../http/poi').PoiDataSource;
9
11
  }> & Readonly<{}>, {
12
+ source: import('../../http/poi').PoiDataSource;
10
13
  zoom: number;
11
14
  locationImg: string;
12
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  const featureManager = new FeatureManager(props.map);
22
22
  const editFeatures = featureManager.getEditFeatures(props.fieldName, props.fieldValues);
23
23
  if (!editFeatures || editFeatures.length === 0) {
24
- emit("activeInteraction", { success: false, message: "请先选择分割的地块" });
24
+ emit("activeInteraction", { success: false, message: "请先选择可挖除的面要素" });
25
25
  return;
26
26
  }
27
27
  reactiveData.differenceTool = new Difference(editFeatures, {
@@ -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-e716c04f"]]);
4
+ const _Export = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a0d22455"]]);
5
5
  export {
6
6
  _Export as default
7
7
  };
@@ -214,6 +214,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
214
214
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(reactiveValue).exportLayer = $event),
215
215
  "value-key": "id",
216
216
  class: "el-current",
217
+ placeholder: "请选择导出图层",
217
218
  "popper-class": "el-current"
218
219
  }, {
219
220
  default: withCtx(() => [
@@ -1,3 +1,3 @@
1
- .panel-content[data-v-e716c04f] .el-form-item {
1
+ .panel-content[data-v-a0d22455] .el-form-item {
2
2
  margin-bottom: 10px;
3
3
  }
@@ -159,5 +159,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
159
159
  footer?(_: {}): any;
160
160
  };
161
161
  }) | null;
162
- }, HTMLDivElement>;
162
+ }, any>;
163
163
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Heatmap.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _Heatmap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39ea422b"]]);
4
+ const _Heatmap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2062a8dc"]]);
5
5
  export {
6
6
  _Heatmap as default
7
7
  };
@@ -5,15 +5,16 @@ import "element-plus/es/components/slider/style/css";
5
5
  import "element-plus/es/components/form-item/style/css";
6
6
  import "element-plus/es/components/select/style/css";
7
7
  import "element-plus/es/components/option/style/css";
8
- import { defineComponent, ref, reactive, computed, onMounted, onUnmounted, withDirectives, createBlock, openBlock, withCtx, createElementVNode, createVNode, unref, createCommentVNode, createElementBlock, Fragment, renderList, normalizeStyle, vShow } from "vue";
8
+ import { defineComponent, ref, reactive, computed, onMounted, onUnmounted, createElementBlock, openBlock, withDirectives, createVNode, withCtx, createElementVNode, unref, createBlock, createCommentVNode, Fragment, renderList, normalizeStyle, vShow } from "vue";
9
9
  import DraggablePanel from "../../panel/DraggablePanel.vue.js";
10
10
  import { Heatmap } from "ol/layer";
11
11
  import { Vector } from "ol/source";
12
12
  import { Feature } from "ol";
13
13
  import { Point } from "ol/geom";
14
- const _hoisted_1 = { class: "control-panel" };
15
- const _hoisted_2 = { class: "panel-section" };
14
+ const _hoisted_1 = { class: "heatmap-widget-host" };
15
+ const _hoisted_2 = { class: "control-panel" };
16
16
  const _hoisted_3 = { class: "panel-section" };
17
+ const _hoisted_4 = { class: "panel-section" };
17
18
  const heatmapId = "heatmap456321";
18
19
  const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  __name: "Heatmap",
@@ -118,137 +119,139 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
119
  const _component_el_form_item = ElFormItem;
119
120
  const _component_el_slider = ElSlider;
120
121
  const _component_el_form = ElForm;
121
- return withDirectives((openBlock(), createBlock(DraggablePanel, {
122
- ref: "locationRef",
123
- class: "el-current",
124
- title: "热力图控制",
125
- drag: true,
126
- width: 320,
127
- height: props.data.length > 1 ? 458 : 408,
128
- showMaximize: false,
129
- showOk: true,
130
- "show-cancel": true,
131
- "cancel-text": "关闭",
132
- "ok-text": "确认",
133
- onOk: handleOk,
134
- onClose: handleClose
135
- }, {
136
- default: withCtx(() => [
137
- createElementVNode("div", _hoisted_1, [
122
+ return openBlock(), createElementBlock("div", _hoisted_1, [
123
+ withDirectives(createVNode(DraggablePanel, {
124
+ ref: "locationRef",
125
+ class: "el-current",
126
+ title: "热力图控制",
127
+ drag: false,
128
+ width: 320,
129
+ height: props.data.length > 1 ? 458 : 408,
130
+ showMaximize: false,
131
+ showOk: true,
132
+ "show-cancel": true,
133
+ "cancel-text": "关闭",
134
+ "ok-text": "确认",
135
+ onOk: handleOk,
136
+ onClose: handleClose
137
+ }, {
138
+ default: withCtx(() => [
138
139
  createElementVNode("div", _hoisted_2, [
139
- createVNode(_component_el_form, {
140
- model: unref(reactiveValue).heatOptions,
141
- "label-width": "auto"
142
- }, {
143
- default: withCtx(() => [
144
- props.data.length > 1 ? (openBlock(), createBlock(_component_el_form_item, {
145
- key: 0,
146
- label: "数据源"
147
- }, {
148
- default: withCtx(() => [
149
- createVNode(_component_el_select, {
150
- modelValue: unref(reactiveValue).sourceData,
151
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(reactiveValue).sourceData = $event),
152
- "value-key": "title",
153
- placeholder: "请选择",
154
- onChange: changeSourceData
155
- }, {
156
- default: withCtx(() => [
157
- (openBlock(true), createElementBlock(Fragment, null, renderList(props.data, (item) => {
158
- return openBlock(), createBlock(_component_el_option, {
159
- key: item.title,
160
- label: item.title,
161
- value: item
162
- }, null, 8, ["label", "value"]);
163
- }), 128))
164
- ]),
165
- _: 1
166
- }, 8, ["modelValue"])
167
- ]),
168
- _: 1
169
- })) : createCommentVNode("", true),
170
- createVNode(_component_el_form_item, { label: "点半径" }, {
171
- default: withCtx(() => [
172
- createVNode(_component_el_slider, {
173
- modelValue: unref(reactiveValue).heatOptions.pointRadius,
174
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(reactiveValue).heatOptions.pointRadius = $event),
175
- min: 1,
176
- max: 50,
177
- step: 1,
178
- onInput: updateHeatmapStyle
179
- }, null, 8, ["modelValue"])
180
- ]),
181
- _: 1
182
- }),
183
- createVNode(_component_el_form_item, { label: "模糊度" }, {
184
- default: withCtx(() => [
185
- createVNode(_component_el_slider, {
186
- modelValue: unref(reactiveValue).heatOptions.blurSize,
187
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(reactiveValue).heatOptions.blurSize = $event),
188
- min: 1,
189
- max: 50,
190
- step: 1,
191
- onInput: updateHeatmapStyle
192
- }, null, 8, ["modelValue"])
193
- ]),
194
- _: 1
195
- }),
196
- createVNode(_component_el_form_item, { label: "颜色渐变" }, {
197
- default: withCtx(() => [
198
- createVNode(_component_el_select, {
199
- modelValue: unref(reactiveValue).heatOptions.selectedGradient,
200
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(reactiveValue).heatOptions.selectedGradient = $event),
201
- placeholder: "请选择",
202
- onChange: updateHeatmapStyle
203
- }, {
204
- default: withCtx(() => [
205
- (openBlock(true), createElementBlock(Fragment, null, renderList(gradients.value, (grad, name) => {
206
- return openBlock(), createBlock(_component_el_option, {
207
- key: name,
208
- label: name,
209
- value: name
210
- }, null, 8, ["label", "value"]);
211
- }), 128))
212
- ]),
213
- _: 1
214
- }, 8, ["modelValue"])
215
- ]),
216
- _: 1
217
- }),
218
- createVNode(_component_el_form_item, { label: "不透明度" }, {
219
- default: withCtx(() => [
220
- createVNode(_component_el_slider, {
221
- modelValue: unref(reactiveValue).heatOptions.opacity,
222
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(reactiveValue).heatOptions.opacity = $event),
223
- min: 0,
224
- max: 1,
225
- step: 0.1,
226
- onInput: updateHeatmapStyle
227
- }, null, 8, ["modelValue"])
228
- ]),
229
- _: 1
230
- })
231
- ]),
232
- _: 1
233
- }, 8, ["model"])
234
- ]),
235
- createElementVNode("div", _hoisted_3, [
236
- _cache[5] || (_cache[5] = createElementVNode("h3", null, "热力分布说明", -1)),
237
- createElementVNode("div", {
238
- class: "gradient-preview",
239
- style: normalizeStyle(gradientStyle.value)
240
- }, null, 4),
241
- _cache[6] || (_cache[6] = createElementVNode("div", { class: "legend" }, [
242
- createElementVNode("span", null, "低密度"),
243
- createElementVNode("span", null, "中密度"),
244
- createElementVNode("span", null, "高密度")
245
- ], -1))
140
+ createElementVNode("div", _hoisted_3, [
141
+ createVNode(_component_el_form, {
142
+ model: unref(reactiveValue).heatOptions,
143
+ "label-width": "auto"
144
+ }, {
145
+ default: withCtx(() => [
146
+ props.data.length > 1 ? (openBlock(), createBlock(_component_el_form_item, {
147
+ key: 0,
148
+ label: "数据源"
149
+ }, {
150
+ default: withCtx(() => [
151
+ createVNode(_component_el_select, {
152
+ modelValue: unref(reactiveValue).sourceData,
153
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(reactiveValue).sourceData = $event),
154
+ "value-key": "title",
155
+ placeholder: "请选择",
156
+ onChange: changeSourceData
157
+ }, {
158
+ default: withCtx(() => [
159
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.data, (item) => {
160
+ return openBlock(), createBlock(_component_el_option, {
161
+ key: item.title,
162
+ label: item.title,
163
+ value: item
164
+ }, null, 8, ["label", "value"]);
165
+ }), 128))
166
+ ]),
167
+ _: 1
168
+ }, 8, ["modelValue"])
169
+ ]),
170
+ _: 1
171
+ })) : createCommentVNode("", true),
172
+ createVNode(_component_el_form_item, { label: "点半径" }, {
173
+ default: withCtx(() => [
174
+ createVNode(_component_el_slider, {
175
+ modelValue: unref(reactiveValue).heatOptions.pointRadius,
176
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(reactiveValue).heatOptions.pointRadius = $event),
177
+ min: 1,
178
+ max: 50,
179
+ step: 1,
180
+ onInput: updateHeatmapStyle
181
+ }, null, 8, ["modelValue"])
182
+ ]),
183
+ _: 1
184
+ }),
185
+ createVNode(_component_el_form_item, { label: "模糊度" }, {
186
+ default: withCtx(() => [
187
+ createVNode(_component_el_slider, {
188
+ modelValue: unref(reactiveValue).heatOptions.blurSize,
189
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(reactiveValue).heatOptions.blurSize = $event),
190
+ min: 1,
191
+ max: 50,
192
+ step: 1,
193
+ onInput: updateHeatmapStyle
194
+ }, null, 8, ["modelValue"])
195
+ ]),
196
+ _: 1
197
+ }),
198
+ createVNode(_component_el_form_item, { label: "颜色渐变" }, {
199
+ default: withCtx(() => [
200
+ createVNode(_component_el_select, {
201
+ modelValue: unref(reactiveValue).heatOptions.selectedGradient,
202
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(reactiveValue).heatOptions.selectedGradient = $event),
203
+ placeholder: "请选择",
204
+ onChange: updateHeatmapStyle
205
+ }, {
206
+ default: withCtx(() => [
207
+ (openBlock(true), createElementBlock(Fragment, null, renderList(gradients.value, (grad, name) => {
208
+ return openBlock(), createBlock(_component_el_option, {
209
+ key: name,
210
+ label: name,
211
+ value: name
212
+ }, null, 8, ["label", "value"]);
213
+ }), 128))
214
+ ]),
215
+ _: 1
216
+ }, 8, ["modelValue"])
217
+ ]),
218
+ _: 1
219
+ }),
220
+ createVNode(_component_el_form_item, { label: "不透明度" }, {
221
+ default: withCtx(() => [
222
+ createVNode(_component_el_slider, {
223
+ modelValue: unref(reactiveValue).heatOptions.opacity,
224
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(reactiveValue).heatOptions.opacity = $event),
225
+ min: 0,
226
+ max: 1,
227
+ step: 0.1,
228
+ onInput: updateHeatmapStyle
229
+ }, null, 8, ["modelValue"])
230
+ ]),
231
+ _: 1
232
+ })
233
+ ]),
234
+ _: 1
235
+ }, 8, ["model"])
236
+ ]),
237
+ createElementVNode("div", _hoisted_4, [
238
+ _cache[5] || (_cache[5] = createElementVNode("h3", null, "热力分布说明", -1)),
239
+ createElementVNode("div", {
240
+ class: "gradient-preview",
241
+ style: normalizeStyle(gradientStyle.value)
242
+ }, null, 4),
243
+ _cache[6] || (_cache[6] = createElementVNode("div", { class: "legend" }, [
244
+ createElementVNode("span", null, "低密度"),
245
+ createElementVNode("span", null, "中密度"),
246
+ createElementVNode("span", null, "高密度")
247
+ ], -1))
248
+ ])
246
249
  ])
247
- ])
248
- ]),
249
- _: 1
250
- }, 8, ["height"])), [
251
- [vShow, unref(reactiveValue).visible]
250
+ ]),
251
+ _: 1
252
+ }, 8, ["height"]), [
253
+ [vShow, unref(reactiveValue).visible]
254
+ ])
252
255
  ]);
253
256
  };
254
257
  }
@@ -1,13 +1,27 @@
1
- .control-panel[data-v-39ea422b] {
1
+ .heatmap-widget-host[data-v-2062a8dc] {
2
+ position: absolute;
3
+ inset: 0;
4
+ z-index: 10;
5
+ pointer-events: none;
6
+ }
7
+ .heatmap-widget-host[data-v-2062a8dc] .el-current.draggable-panel {
8
+ position: absolute !important;
9
+ left: 12px;
10
+ top: 12px;
11
+ transform: none !important;
12
+ pointer-events: auto;
13
+ max-height: calc(100% - 24px);
14
+ }
15
+ .control-panel[data-v-2062a8dc] {
2
16
  padding: 0px 10px;
3
17
  }
4
- .control-panel .gradient-preview[data-v-39ea422b] {
18
+ .control-panel .gradient-preview[data-v-2062a8dc] {
5
19
  height: 25px;
6
20
  border-radius: 5px;
7
21
  margin-bottom: 10px;
8
22
  border: 1px solid #ddd;
9
23
  }
10
- .control-panel .legend[data-v-39ea422b] {
24
+ .control-panel .legend[data-v-2062a8dc] {
11
25
  display: flex;
12
26
  justify-content: space-between;
13
27
  font-size: 0.85rem;
@@ -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-5105d950"]]);
4
+ const _MultiScreen = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-33476129"]]);
5
5
  export {
6
6
  _MultiScreen as default
7
7
  };
@@ -1,12 +1,19 @@
1
- .multi-screen-container[data-v-5105d950] {
1
+ .multi-screen-container[data-v-33476129] {
2
2
  display: flex;
3
3
  height: 100%;
4
4
  width: 100%;
5
5
  }
6
- .multi-screen-container .multi-screen[data-v-5105d950] {
6
+ .multi-screen-container .multi-screen[data-v-33476129] {
7
+ position: relative;
7
8
  border: 1px solid black;
9
+ overflow: hidden;
8
10
  }
9
- .multi-screen-container .multi-screen .multi-screen__map[data-v-5105d950] {
11
+ .multi-screen-container .multi-screen .multi-screen__map[data-v-33476129] {
10
12
  width: 100%;
11
13
  height: 100%;
14
+ }
15
+ .multi-screen-container .multi-screen[data-v-33476129] .toc-card {
16
+ left: 10px;
17
+ top: 10px;
18
+ z-index: 2;
12
19
  }
@@ -1,12 +1,15 @@
1
1
  import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  type __VLS_Props = {
3
3
  map: OLMap;
4
+ dockedVisible?: 'Left' | 'Right' | 'Bottom' | 'Top';
4
5
  };
5
6
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  activeInteraction: (...args: any[]) => void;
7
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
9
  onActiveInteraction?: ((...args: any[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ }>, {
11
+ dockedVisible: "Left" | "Right" | "Bottom" | "Top";
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
13
  locationRef: ({
11
14
  $: import('vue').ComponentInternalInstance;
12
15
  $data: {};
@@ -11,7 +11,8 @@ import SwipeLayerControl from "ym-gis-2d/controls/SwipeLayerControl";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "SwipeLayer",
13
13
  props: {
14
- map: {}
14
+ map: {},
15
+ dockedVisible: { default: "Right" }
15
16
  },
16
17
  emits: ["activeInteraction"],
17
18
  setup(__props, { emit: __emit }) {
@@ -39,12 +40,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
40
  ElMessage.error("图层不存在");
40
41
  return;
41
42
  }
42
- if (!reactiveValue.swipeLayerControl) {
43
- reactiveValue.swipeLayerControl = new SwipeLayerControl({ swipeLayer: layer, dockedVisible: "Right", target: props.map.getTarget() });
44
- props.map.controlManager.addControl("swipe", reactiveValue.swipeLayerControl);
45
- } else {
46
- reactiveValue.swipeLayerControl.setSwipeLayer(layer);
47
- }
43
+ props.map.controlManager.removeControl("swipe");
44
+ reactiveValue.swipeLayerControl = new SwipeLayerControl({
45
+ swipeLayer: layer,
46
+ dockedVisible: props.dockedVisible,
47
+ target: props.map.getTarget()
48
+ });
49
+ props.map.controlManager.addControl("swipe", reactiveValue.swipeLayerControl);
48
50
  }
49
51
  return (_ctx, _cache) => {
50
52
  const _component_el_option = ElOption;
@@ -1,12 +1,16 @@
1
1
  export declare const SwipeLayer: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
2
  map: import('ym-gis-2d/mapView/Map').default;
3
+ dockedVisible?: "Left" | "Right" | "Bottom" | "Top";
3
4
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
5
  activeInteraction: (...args: any[]) => void;
5
6
  }, string, import('vue').PublicProps, Readonly<{
6
7
  map: import('ym-gis-2d/mapView/Map').default;
8
+ dockedVisible?: "Left" | "Right" | "Bottom" | "Top";
7
9
  }> & Readonly<{
8
10
  onActiveInteraction?: ((...args: any[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
11
+ }>, {
12
+ dockedVisible: "Left" | "Right" | "Bottom" | "Top";
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
14
  locationRef: ({
11
15
  $: import('vue').ComponentInternalInstance;
12
16
  $data: {};
@@ -11,4 +11,12 @@ export default class Config {
11
11
  */
12
12
  static GisServiceUrl: string;
13
13
  static tdtToken: string;
14
+ /**
15
+ * 高德 Web 服务 Key(POI 查询)
16
+ */
17
+ static amapKey: string;
18
+ /**
19
+ * 百度地图 AK(POI 查询)
20
+ */
21
+ static baiduAk: string;
14
22
  }
package/config/Config.js CHANGED
@@ -3,6 +3,8 @@ const _Config = class _Config {
3
3
  _Config.ServiceUrl = "";
4
4
  _Config.GisServiceUrl = "";
5
5
  _Config.tdtToken = "fc64354e7ed2459b95753417233d0b51";
6
+ _Config.amapKey = "";
7
+ _Config.baiduAk = "";
6
8
  let Config = _Config;
7
9
  export {
8
10
  Config as default