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.
- package/API.md +399 -0
- package/README.md +37 -19
- package/components/address-search/AddressSearch.vue.d.ts +3 -0
- package/components/address-search/AddressSearch.vue.js +1 -1
- package/components/address-search/AddressSearch.vue2.js +62 -25
- package/components/address-search/index.css +17 -17
- package/components/address-search/index.d.ts +3 -0
- package/components/difference/Difference.vue.js +1 -1
- package/components/export/Export.vue.js +1 -1
- package/components/export/Export.vue2.js +1 -0
- package/components/export/index.css +1 -1
- package/components/heatmap/Heatmap.vue.d.ts +1 -1
- package/components/heatmap/Heatmap.vue.js +1 -1
- package/components/heatmap/Heatmap.vue2.js +135 -132
- package/components/heatmap/index.css +17 -3
- package/components/multi-screen/MultiScreen.vue.js +1 -1
- package/components/multi-screen/index.css +10 -3
- package/components/swipe-layer/SwipeLayer.vue.d.ts +4 -1
- package/components/swipe-layer/SwipeLayer.vue.js +9 -7
- package/components/swipe-layer/index.d.ts +5 -1
- package/config/Config.d.ts +8 -0
- package/config/Config.js +2 -0
- package/http/poi.d.ts +22 -1
- package/http/poi.js +61 -9
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.search-container[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,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-
|
|
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,
|
|
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: "
|
|
15
|
-
const _hoisted_2 = { class: "panel
|
|
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
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
createElementVNode("
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["height"]), [
|
|
253
|
+
[vShow, unref(reactiveValue).visible]
|
|
254
|
+
])
|
|
252
255
|
]);
|
|
253
256
|
};
|
|
254
257
|
}
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
.
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
}>, {
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
}>, {
|
|
11
|
+
}>, {
|
|
12
|
+
dockedVisible: "Left" | "Right" | "Bottom" | "Top";
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
14
|
locationRef: ({
|
|
11
15
|
$: import('vue').ComponentInternalInstance;
|
|
12
16
|
$data: {};
|
package/config/Config.d.ts
CHANGED
package/config/Config.js
CHANGED