vue-openlayers-plugin 1.0.87 → 1.0.89
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/lib/{BasemapPanel-6d2a04e9.mjs → BasemapPanel-cba3afd6.mjs} +6 -6
- package/lib/{CoordinateLocationDialog-de357c83.mjs → CoordinateLocationDialog-6e8a5f24.mjs} +1 -1
- package/lib/{FilterPanel-d40a133c.mjs → FilterPanel-9a8e2aca.mjs} +1 -1
- package/lib/{MapPrintDialog-74d86245.mjs → LayerPanel-be35370b.mjs} +1 -1
- package/lib/{LayerPanel-de7c698a.mjs → MapPrintDialog-03c0823b.mjs} +1 -1
- package/lib/{MeasurementDialog-d29c4928.mjs → MeasurementDialog-7fce097a.mjs} +7 -7
- package/lib/{MyMarkersDialog-b4318073.mjs → MyMarkersDialog-7dd24d9a.mjs} +2 -2
- package/lib/{ViewBookmarksDialog-cdf56611.mjs → ViewBookmarksDialog-60c9e851.mjs} +2 -2
- package/lib/{index-b5b0a094.mjs → index-05da77ba.mjs} +501 -589
- package/lib/{index-dfd59202.mjs → index-7aae577e.mjs} +1 -1
- package/lib/{index-5bc5966e.mjs → index-b3c7ea8d.mjs} +1 -1
- package/lib/{index.es-1fe2c0bd.mjs → index.es-e4a6ccb9.mjs} +1 -1
- package/lib/index.esm.js +63 -63
- package/lib/index.umd.js +437 -525
- package/lib/style.css +318 -354
- package/package.json +4 -4
- package/types/src/components/CustomDialog/CustomDialog.vue.d.ts +1 -1
- package/types/src/components/OlDialogs/BasemapPanel.vue.d.ts +1 -0
- package/types/src/components/OlDialogs/BasemapPanel.vue.d.ts.map +1 -1
- package/types/src/components/OlDialogs/LayerPanel.vue.d.ts.map +1 -1
- package/types/src/components/OlDialogs/MeasurementDialog.vue.d.ts +1 -0
- package/types/src/components/OlDialogs/MeasurementDialog.vue.d.ts.map +1 -1
- package/types/src/components/OlDrawToolbar.vue.d.ts.map +1 -1
- package/types/src/components/OlLegendPanel.vue.d.ts +2 -26
- package/types/src/components/OlLegendPanel.vue.d.ts.map +1 -1
- package/types/src/core/layers/BaseLayer.d.ts +8 -0
- package/types/src/core/layers/BaseLayer.d.ts.map +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -377,21 +377,6 @@ var __publicField = (obj, key, value) => {
|
|
|
377
377
|
]));
|
|
378
378
|
}
|
|
379
379
|
}), flag_default = _sfc_main106;
|
|
380
|
-
var _sfc_main107 = /* @__PURE__ */ vue.defineComponent({
|
|
381
|
-
name: "Fold",
|
|
382
|
-
__name: "fold",
|
|
383
|
-
setup(__props) {
|
|
384
|
-
return (_ctx, _cache) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
385
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
386
|
-
viewBox: "0 0 1024 1024"
|
|
387
|
-
}, [
|
|
388
|
-
vue.createElementVNode("path", {
|
|
389
|
-
fill: "currentColor",
|
|
390
|
-
d: "M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"
|
|
391
|
-
})
|
|
392
|
-
]));
|
|
393
|
-
}
|
|
394
|
-
}), fold_default = _sfc_main107;
|
|
395
380
|
var _sfc_main111 = /* @__PURE__ */ vue.defineComponent({
|
|
396
381
|
name: "FolderOpened",
|
|
397
382
|
__name: "folder-opened",
|
|
@@ -81323,21 +81308,6 @@ For more detail, please visit: ${ref}
|
|
|
81323
81308
|
this.layer.setOpacity(normalizedOpacity);
|
|
81324
81309
|
}
|
|
81325
81310
|
}
|
|
81326
|
-
/**
|
|
81327
|
-
* 设置图层层级
|
|
81328
|
-
*/
|
|
81329
|
-
setZIndex(zIndex2) {
|
|
81330
|
-
if (this.layer) {
|
|
81331
|
-
this.layer.setZIndex(zIndex2);
|
|
81332
|
-
}
|
|
81333
|
-
}
|
|
81334
|
-
/**
|
|
81335
|
-
* 获取当前图层层级
|
|
81336
|
-
*/
|
|
81337
|
-
getZIndex() {
|
|
81338
|
-
var _a3;
|
|
81339
|
-
return (_a3 = this.layer) == null ? void 0 : _a3.getZIndex();
|
|
81340
|
-
}
|
|
81341
81311
|
/**
|
|
81342
81312
|
* 设置图层可见性
|
|
81343
81313
|
*/
|
|
@@ -112128,7 +112098,7 @@ For more detail, please visit: ${ref}
|
|
|
112128
112098
|
function r$2(A5) {
|
|
112129
112099
|
return y$7(A5)[3];
|
|
112130
112100
|
}
|
|
112131
|
-
var Y$
|
|
112101
|
+
var Y$2 = { extname: r$2, basename: N$3, dirname: e$4, sep: "/", delimiter: ":", relative: h$3, join: K$2, isAbsolute: t$2, normalize: n$3, resolve: M$3 };
|
|
112132
112102
|
function H$2(A5, g2) {
|
|
112133
112103
|
if (A5.filter)
|
|
112134
112104
|
return A5.filter(g2);
|
|
@@ -112140,7 +112110,7 @@ For more detail, please visit: ${ref}
|
|
|
112140
112110
|
return A5.substr(g2, I2);
|
|
112141
112111
|
} : function(A5, g2, I2) {
|
|
112142
112112
|
return g2 < 0 && (g2 = A5.length + g2), A5.substr(g2, I2);
|
|
112143
|
-
}, w$2 = E$4(Object.freeze({ __proto__: null, resolve: M$3, normalize: n$3, isAbsolute: t$2, join: K$2, relative: h$3, sep: "/", delimiter: ":", dirname: e$4, basename: N$3, extname: r$2, default: Y$
|
|
112113
|
+
}, w$2 = E$4(Object.freeze({ __proto__: null, resolve: M$3, normalize: n$3, isAbsolute: t$2, join: K$2, relative: h$3, sep: "/", delimiter: ":", dirname: e$4, basename: N$3, extname: r$2, default: Y$2 }));
|
|
112144
112114
|
!function(A5, g2) {
|
|
112145
112115
|
var I2 = function(g3) {
|
|
112146
112116
|
g3 = void 0 !== g3 ? g3 : {};
|
|
@@ -298688,7 +298658,7 @@ ${publicKeyStr}
|
|
|
298688
298658
|
}
|
|
298689
298659
|
}
|
|
298690
298660
|
return "";
|
|
298691
|
-
}, W$1 = /^\[object .+?Constructor\]$/, q$1 = Function.prototype, Y$
|
|
298661
|
+
}, W$1 = /^\[object .+?Constructor\]$/, q$1 = Function.prototype, Y$1 = Object.prototype, J$1 = q$1.toString, X$2 = Y$1.hasOwnProperty, K$1 = RegExp("^" + J$1.call(X$2).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
298692
298662
|
var Q$1 = function(e3) {
|
|
298693
298663
|
return !(!D$2(e3) || V$2(e3)) && (z$2(e3) ? K$1 : W$1).test(H$1(e3));
|
|
298694
298664
|
};
|
|
@@ -298699,7 +298669,7 @@ ${publicKeyStr}
|
|
|
298699
298669
|
var t2 = Z$2(e3, n2);
|
|
298700
298670
|
return Q$1(t2) ? t2 : void 0;
|
|
298701
298671
|
}, ne$1 = ee$1(k$1, "Map"), te$1 = ee$1(Object, "create");
|
|
298702
|
-
var re$
|
|
298672
|
+
var re$2 = function() {
|
|
298703
298673
|
this.__data__ = te$1 ? te$1(null) : {}, this.size = 0;
|
|
298704
298674
|
};
|
|
298705
298675
|
var oe$1 = function(e3) {
|
|
@@ -298729,7 +298699,7 @@ ${publicKeyStr}
|
|
|
298729
298699
|
this.set(r2[0], r2[1]);
|
|
298730
298700
|
}
|
|
298731
298701
|
}
|
|
298732
|
-
de$2.prototype.clear = re$
|
|
298702
|
+
de$2.prototype.clear = re$2, de$2.prototype.delete = oe$1, de$2.prototype.get = ae$1, de$2.prototype.has = ce$2, de$2.prototype.set = se$1;
|
|
298733
298703
|
var fe$2 = de$2;
|
|
298734
298704
|
var he$2 = function() {
|
|
298735
298705
|
this.size = 0, this.__data__ = { hash: new fe$2(), map: new (ne$1 || w$1)(), string: new fe$2() };
|
|
@@ -298738,22 +298708,22 @@ ${publicKeyStr}
|
|
|
298738
298708
|
var n2 = typeof e3;
|
|
298739
298709
|
return "string" == n2 || "number" == n2 || "symbol" == n2 || "boolean" == n2 ? "__proto__" !== e3 : null === e3;
|
|
298740
298710
|
};
|
|
298741
|
-
var ve$
|
|
298711
|
+
var ve$1 = function(e3, n2) {
|
|
298742
298712
|
var t2 = e3.__data__;
|
|
298743
298713
|
return le$1(n2) ? t2["string" == typeof n2 ? "string" : "hash"] : t2.map;
|
|
298744
298714
|
};
|
|
298745
298715
|
var pe$2 = function(e3) {
|
|
298746
|
-
var n2 = ve$
|
|
298716
|
+
var n2 = ve$1(this, e3).delete(e3);
|
|
298747
298717
|
return this.size -= n2 ? 1 : 0, n2;
|
|
298748
298718
|
};
|
|
298749
298719
|
var ge$2 = function(e3) {
|
|
298750
|
-
return ve$
|
|
298720
|
+
return ve$1(this, e3).get(e3);
|
|
298751
298721
|
};
|
|
298752
298722
|
var ye$1 = function(e3) {
|
|
298753
|
-
return ve$
|
|
298723
|
+
return ve$1(this, e3).has(e3);
|
|
298754
298724
|
};
|
|
298755
298725
|
var be$1 = function(e3, n2) {
|
|
298756
|
-
var t2 = ve$
|
|
298726
|
+
var t2 = ve$1(this, e3), r2 = t2.size;
|
|
298757
298727
|
return t2.set(e3, n2), this.size += t2.size == r2 ? 0 : 1, this;
|
|
298758
298728
|
};
|
|
298759
298729
|
function me$2(e3) {
|
|
@@ -467889,7 +467859,7 @@ ${this.attributes_.map(
|
|
|
467889
467859
|
};
|
|
467890
467860
|
const _hoisted_4$l = { class: "image-popup-main" };
|
|
467891
467861
|
const _hoisted_5$l = { class: "image-container" };
|
|
467892
|
-
const _hoisted_6$
|
|
467862
|
+
const _hoisted_6$g = ["src", "alt"];
|
|
467893
467863
|
const _hoisted_7$f = {
|
|
467894
467864
|
key: 0,
|
|
467895
467865
|
class: "image-loading"
|
|
@@ -467912,12 +467882,12 @@ ${this.attributes_.map(
|
|
|
467912
467882
|
};
|
|
467913
467883
|
const _hoisted_12$9 = ["onClick"];
|
|
467914
467884
|
const _hoisted_13$9 = ["src", "alt"];
|
|
467915
|
-
const _hoisted_14$
|
|
467885
|
+
const _hoisted_14$7 = {
|
|
467916
467886
|
key: 3,
|
|
467917
467887
|
class: "slideshow-controls"
|
|
467918
467888
|
};
|
|
467919
|
-
const _hoisted_15$
|
|
467920
|
-
const _hoisted_16$
|
|
467889
|
+
const _hoisted_15$6 = { class: "fullscreen-container" };
|
|
467890
|
+
const _hoisted_16$6 = ["src", "alt"];
|
|
467921
467891
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
467922
467892
|
__name: "ImagePopup",
|
|
467923
467893
|
props: {
|
|
@@ -468074,7 +468044,7 @@ ${this.attributes_.map(
|
|
|
468074
468044
|
onLoad: handleImageLoad,
|
|
468075
468045
|
onError: handleImageError,
|
|
468076
468046
|
onClick: handleImageClick
|
|
468077
|
-
}, null, 40, _hoisted_6$
|
|
468047
|
+
}, null, 40, _hoisted_6$g),
|
|
468078
468048
|
imageLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$f, [..._cache[4] || (_cache[4] = [
|
|
468079
468049
|
vue.createElementVNode("div", { class: "loading-spinner" }, null, -1),
|
|
468080
468050
|
vue.createElementVNode("span", null, "加载中...", -1)
|
|
@@ -468125,7 +468095,7 @@ ${this.attributes_.map(
|
|
|
468125
468095
|
], 10, _hoisted_12$9);
|
|
468126
468096
|
}), 128))
|
|
468127
468097
|
])) : vue.createCommentVNode("", true),
|
|
468128
|
-
_ctx.config.slideshow && imageList.value.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$
|
|
468098
|
+
_ctx.config.slideshow && imageList.value.length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$7, [
|
|
468129
468099
|
vue.createVNode(vue.unref(ElButton), {
|
|
468130
468100
|
class: vue.normalizeClass(["slideshow-btn", { active: isSlideshow.value }]),
|
|
468131
468101
|
onClick: toggleSlideshow,
|
|
@@ -468144,14 +468114,14 @@ ${this.attributes_.map(
|
|
|
468144
468114
|
class: "image-fullscreen",
|
|
468145
468115
|
onClick: closeFullscreen
|
|
468146
468116
|
}, [
|
|
468147
|
-
vue.createElementVNode("div", _hoisted_15$
|
|
468117
|
+
vue.createElementVNode("div", _hoisted_15$6, [
|
|
468148
468118
|
vue.createElementVNode("img", {
|
|
468149
468119
|
src: currentImage.value,
|
|
468150
468120
|
alt: `全屏图片 ${currentIndex.value + 1}`,
|
|
468151
468121
|
class: "fullscreen-image",
|
|
468152
468122
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
468153
468123
|
}, ["stop"]))
|
|
468154
|
-
}, null, 8, _hoisted_16$
|
|
468124
|
+
}, null, 8, _hoisted_16$6),
|
|
468155
468125
|
vue.createVNode(vue.unref(ElButton), {
|
|
468156
468126
|
class: "fullscreen-close",
|
|
468157
468127
|
onClick: closeFullscreen,
|
|
@@ -468190,7 +468160,7 @@ ${this.attributes_.map(
|
|
|
468190
468160
|
key: 3,
|
|
468191
468161
|
class: "search-container"
|
|
468192
468162
|
};
|
|
468193
|
-
const _hoisted_6$
|
|
468163
|
+
const _hoisted_6$f = {
|
|
468194
468164
|
key: 4,
|
|
468195
468165
|
class: "data-stats"
|
|
468196
468166
|
};
|
|
@@ -468207,19 +468177,19 @@ ${this.attributes_.map(
|
|
|
468207
468177
|
class: "sort-indicator"
|
|
468208
468178
|
};
|
|
468209
468179
|
const _hoisted_13$8 = ["onClick"];
|
|
468210
|
-
const _hoisted_14$
|
|
468211
|
-
const _hoisted_15$
|
|
468212
|
-
const _hoisted_16$
|
|
468213
|
-
const _hoisted_17$
|
|
468214
|
-
const _hoisted_18$
|
|
468215
|
-
const _hoisted_19$
|
|
468216
|
-
const _hoisted_20$
|
|
468217
|
-
const _hoisted_21$
|
|
468180
|
+
const _hoisted_14$6 = { key: 0 };
|
|
468181
|
+
const _hoisted_15$5 = ["src", "alt"];
|
|
468182
|
+
const _hoisted_16$5 = { key: 1 };
|
|
468183
|
+
const _hoisted_17$5 = ["href"];
|
|
468184
|
+
const _hoisted_18$5 = { key: 2 };
|
|
468185
|
+
const _hoisted_19$4 = { key: 3 };
|
|
468186
|
+
const _hoisted_20$4 = { key: 4 };
|
|
468187
|
+
const _hoisted_21$2 = {
|
|
468218
468188
|
key: 6,
|
|
468219
468189
|
class: "list-view"
|
|
468220
468190
|
};
|
|
468221
|
-
const _hoisted_22$
|
|
468222
|
-
const _hoisted_23$
|
|
468191
|
+
const _hoisted_22$1 = ["onClick"];
|
|
468192
|
+
const _hoisted_23$1 = { class: "field-label" };
|
|
468223
468193
|
const _hoisted_24$1 = { class: "field-value" };
|
|
468224
468194
|
const _hoisted_25$1 = ["src", "alt"];
|
|
468225
468195
|
const _hoisted_26$1 = ["href"];
|
|
@@ -468454,7 +468424,7 @@ ${this.attributes_.map(
|
|
|
468454
468424
|
clearable: ""
|
|
468455
468425
|
}, null, 8, ["modelValue"])
|
|
468456
468426
|
])) : vue.createCommentVNode("", true),
|
|
468457
|
-
_ctx.config.showStats ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
468427
|
+
_ctx.config.showStats ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$f, [
|
|
468458
468428
|
vue.createElementVNode("span", null, "共 " + vue.toDisplayString(filteredData.value.length) + " 条记录", 1),
|
|
468459
468429
|
searchQuery.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$e, "(已过滤 " + vue.toDisplayString(arrayData.value.length - filteredData.value.length) + " 条)", 1)) : vue.createCommentVNode("", true)
|
|
468460
468430
|
])) : vue.createCommentVNode("", true),
|
|
@@ -468485,19 +468455,19 @@ ${this.attributes_.map(
|
|
|
468485
468455
|
return vue.openBlock(), vue.createElementBlock("td", {
|
|
468486
468456
|
key: field.key
|
|
468487
468457
|
}, [
|
|
468488
|
-
field.type === "image" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$
|
|
468458
|
+
field.type === "image" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$6, [
|
|
468489
468459
|
vue.createElementVNode("img", {
|
|
468490
468460
|
src: getFieldValue(item, field.key || field.name),
|
|
468491
468461
|
alt: field.label,
|
|
468492
468462
|
class: "table-image"
|
|
468493
|
-
}, null, 8, _hoisted_15$
|
|
468494
|
-
])) : field.type === "link" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_16$
|
|
468463
|
+
}, null, 8, _hoisted_15$5)
|
|
468464
|
+
])) : field.type === "link" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_16$5, [
|
|
468495
468465
|
vue.createElementVNode("a", {
|
|
468496
468466
|
href: getFieldValue(item, field.key || field.name),
|
|
468497
468467
|
target: "_blank",
|
|
468498
468468
|
class: "table-link"
|
|
468499
|
-
}, vue.toDisplayString(getFieldValue(item, field.key || field.name)), 9, _hoisted_17$
|
|
468500
|
-
])) : field.type === "date" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_18$
|
|
468469
|
+
}, vue.toDisplayString(getFieldValue(item, field.key || field.name)), 9, _hoisted_17$5)
|
|
468470
|
+
])) : field.type === "date" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_18$5, vue.toDisplayString(formatDate(getFieldValue(item, field.key || field.name))), 1)) : field.type === "number" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_19$4, vue.toDisplayString(formatNumber2(getFieldValue(item, field.key || field.name))), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_20$4, vue.toDisplayString(getFieldValue(item, field.key || field.name)), 1))
|
|
468501
468471
|
]);
|
|
468502
468472
|
}), 128))
|
|
468503
468473
|
], 8, _hoisted_13$8);
|
|
@@ -468506,7 +468476,7 @@ ${this.attributes_.map(
|
|
|
468506
468476
|
])
|
|
468507
468477
|
])
|
|
468508
468478
|
])) : vue.createCommentVNode("", true),
|
|
468509
|
-
currentView.value === "list" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21$
|
|
468479
|
+
currentView.value === "list" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21$2, [
|
|
468510
468480
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(paginatedData.value, (item, index2) => {
|
|
468511
468481
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
468512
468482
|
key: index2,
|
|
@@ -468518,7 +468488,7 @@ ${this.attributes_.map(
|
|
|
468518
468488
|
key: field.key,
|
|
468519
468489
|
class: "list-field"
|
|
468520
468490
|
}, [
|
|
468521
|
-
vue.createElementVNode("span", _hoisted_23$
|
|
468491
|
+
vue.createElementVNode("span", _hoisted_23$1, vue.toDisplayString(field.label) + ":", 1),
|
|
468522
468492
|
vue.createElementVNode("span", _hoisted_24$1, [
|
|
468523
468493
|
field.type === "image" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
468524
468494
|
key: 0,
|
|
@@ -468534,7 +468504,7 @@ ${this.attributes_.map(
|
|
|
468534
468504
|
])
|
|
468535
468505
|
]);
|
|
468536
468506
|
}), 128))
|
|
468537
|
-
], 8, _hoisted_22$
|
|
468507
|
+
], 8, _hoisted_22$1);
|
|
468538
468508
|
}), 128))
|
|
468539
468509
|
])) : vue.createCommentVNode("", true),
|
|
468540
468510
|
currentView.value === "card" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_30$1, [
|
|
@@ -470279,7 +470249,7 @@ ${this.attributes_.map(
|
|
|
470279
470249
|
const OlMapContainer_vue_vue_type_style_index_0_lang = "";
|
|
470280
470250
|
const defaultComponents = {
|
|
470281
470251
|
"measurement": () => Promise.resolve().then(() => MeasurementDialog$1),
|
|
470282
|
-
"basemap": () => Promise.resolve().then(() => BasemapPanel),
|
|
470252
|
+
"basemap": () => Promise.resolve().then(() => BasemapPanel$1),
|
|
470283
470253
|
"print": () => Promise.resolve().then(() => MapPrintDialog),
|
|
470284
470254
|
"layer-panel": () => Promise.resolve().then(() => LayerPanel),
|
|
470285
470255
|
"coordinate": () => Promise.resolve().then(() => CoordinateLocationDialog),
|
|
@@ -470659,7 +470629,7 @@ ${this.attributes_.map(
|
|
|
470659
470629
|
};
|
|
470660
470630
|
}
|
|
470661
470631
|
});
|
|
470662
|
-
const
|
|
470632
|
+
const OlDrawToolbar_vue_vue_type_style_index_0_scoped_b8c938a3_lang = "";
|
|
470663
470633
|
const _export_sfc = (sfc, props) => {
|
|
470664
470634
|
const target = sfc.__vccOpts || sfc;
|
|
470665
470635
|
for (const [key2, val] of props) {
|
|
@@ -470667,7 +470637,7 @@ ${this.attributes_.map(
|
|
|
470667
470637
|
}
|
|
470668
470638
|
return target;
|
|
470669
470639
|
};
|
|
470670
|
-
const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
470640
|
+
const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b8c938a3"]]);
|
|
470671
470641
|
const TIANDITU_CONFIG = {
|
|
470672
470642
|
baseUrl: "https://api.tianditu.gov.cn/v2/search",
|
|
470673
470643
|
key: "9a7244dd5d1a1299a52946a3d0f8ff68"
|
|
@@ -471398,7 +471368,7 @@ ${this.attributes_.map(
|
|
|
471398
471368
|
};
|
|
471399
471369
|
const _hoisted_4$j = { class: "section-title" };
|
|
471400
471370
|
const _hoisted_5$j = ["onClick"];
|
|
471401
|
-
const _hoisted_6$
|
|
471371
|
+
const _hoisted_6$e = { class: "item-content" };
|
|
471402
471372
|
const _hoisted_7$d = { class: "item-name" };
|
|
471403
471373
|
const _hoisted_8$a = { class: "item-address" };
|
|
471404
471374
|
const _hoisted_9$8 = {
|
|
@@ -471412,17 +471382,17 @@ ${this.attributes_.map(
|
|
|
471412
471382
|
const _hoisted_11$7 = { class: "result-count" };
|
|
471413
471383
|
const _hoisted_12$7 = ["onClick"];
|
|
471414
471384
|
const _hoisted_13$7 = { class: "item-content" };
|
|
471415
|
-
const _hoisted_14$
|
|
471416
|
-
const _hoisted_15$
|
|
471417
|
-
const _hoisted_16$
|
|
471385
|
+
const _hoisted_14$5 = ["innerHTML"];
|
|
471386
|
+
const _hoisted_15$4 = ["innerHTML"];
|
|
471387
|
+
const _hoisted_16$4 = {
|
|
471418
471388
|
key: 0,
|
|
471419
471389
|
class: "item-type"
|
|
471420
471390
|
};
|
|
471421
|
-
const _hoisted_17$
|
|
471391
|
+
const _hoisted_17$4 = {
|
|
471422
471392
|
key: 0,
|
|
471423
471393
|
class: "item-confidence"
|
|
471424
471394
|
};
|
|
471425
|
-
const _hoisted_18$
|
|
471395
|
+
const _hoisted_18$4 = {
|
|
471426
471396
|
key: 0,
|
|
471427
471397
|
class: "no-results"
|
|
471428
471398
|
};
|
|
@@ -471773,7 +471743,7 @@ ${this.attributes_.map(
|
|
|
471773
471743
|
]),
|
|
471774
471744
|
_: 1
|
|
471775
471745
|
}),
|
|
471776
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
471746
|
+
vue.createElementVNode("div", _hoisted_6$e, [
|
|
471777
471747
|
vue.createElementVNode("div", _hoisted_7$d, vue.toDisplayString(item.name), 1),
|
|
471778
471748
|
vue.createElementVNode("div", _hoisted_8$a, vue.toDisplayString(item.address), 1)
|
|
471779
471749
|
])
|
|
@@ -471815,14 +471785,14 @@ ${this.attributes_.map(
|
|
|
471815
471785
|
vue.createElementVNode("div", {
|
|
471816
471786
|
class: "item-name",
|
|
471817
471787
|
innerHTML: highlightText(result.name, searchQuery.value)
|
|
471818
|
-
}, null, 8, _hoisted_14$
|
|
471788
|
+
}, null, 8, _hoisted_14$5),
|
|
471819
471789
|
vue.createElementVNode("div", {
|
|
471820
471790
|
class: "item-address",
|
|
471821
471791
|
innerHTML: highlightText(result.address, searchQuery.value)
|
|
471822
|
-
}, null, 8, _hoisted_15$
|
|
471823
|
-
result.type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$
|
|
471792
|
+
}, null, 8, _hoisted_15$4),
|
|
471793
|
+
result.type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$4, vue.toDisplayString(result.type), 1)) : vue.createCommentVNode("", true)
|
|
471824
471794
|
]),
|
|
471825
|
-
result.confidence ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$
|
|
471795
|
+
result.confidence ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$4, vue.toDisplayString(Math.round(result.confidence * 100)) + "%", 1)) : vue.createCommentVNode("", true)
|
|
471826
471796
|
], 10, _hoisted_12$7)
|
|
471827
471797
|
]);
|
|
471828
471798
|
}), 128))
|
|
@@ -471832,7 +471802,7 @@ ${this.attributes_.map(
|
|
|
471832
471802
|
searchResults: searchResults.value,
|
|
471833
471803
|
isLoading: isLoading.value
|
|
471834
471804
|
}, () => [
|
|
471835
|
-
searchQuery.value && searchResults.value.length === 0 && !isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$
|
|
471805
|
+
searchQuery.value && searchResults.value.length === 0 && !isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$4, [
|
|
471836
471806
|
vue.createVNode(vue.unref(ElIcon), null, {
|
|
471837
471807
|
default: vue.withCtx(() => [
|
|
471838
471808
|
vue.createVNode(vue.unref(info_filled_default))
|
|
@@ -472529,367 +472499,290 @@ ${this.attributes_.map(
|
|
|
472529
472499
|
};
|
|
472530
472500
|
}
|
|
472531
472501
|
});
|
|
472532
|
-
const
|
|
472533
|
-
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
472534
|
-
const _hoisted_1$j = { class: "
|
|
472535
|
-
const _hoisted_2$i = { class: "
|
|
472536
|
-
const _hoisted_3$i = { class: "
|
|
472537
|
-
const _hoisted_4$i =
|
|
472538
|
-
const _hoisted_5$i = { class: "legend-content
|
|
472539
|
-
const _hoisted_6$
|
|
472540
|
-
|
|
472541
|
-
|
|
472542
|
-
const _hoisted_9$7 = { class: "text-xs text-gray-600" };
|
|
472543
|
-
const _hoisted_10$7 = { key: 2 };
|
|
472544
|
-
const _hoisted_11$6 = { class: "relative mb-2" };
|
|
472545
|
-
const _hoisted_12$6 = { class: "flex justify-between mt-1 text-xs text-gray-500" };
|
|
472546
|
-
const _hoisted_13$6 = { class: "text-center text-xs text-gray-500" };
|
|
472547
|
-
const _hoisted_14$5 = { key: 3 };
|
|
472548
|
-
const _hoisted_15$4 = { class: "flex-1 text-xs text-gray-600" };
|
|
472549
|
-
const _hoisted_16$4 = { key: 4 };
|
|
472550
|
-
const _hoisted_17$4 = ["src", "alt"];
|
|
472551
|
-
const _hoisted_18$4 = {
|
|
472552
|
-
key: 1,
|
|
472553
|
-
class: "w-4 h-4 mr-2 border border-gray-300 rounded-sm bg-gray-100"
|
|
472502
|
+
const OlControlPanel_vue_vue_type_style_index_0_scoped_2fc6cae7_lang = "";
|
|
472503
|
+
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-2fc6cae7"]]);
|
|
472504
|
+
const _hoisted_1$j = { class: "ol-legend-header" };
|
|
472505
|
+
const _hoisted_2$i = { class: "header-actions" };
|
|
472506
|
+
const _hoisted_3$i = { class: "ol-legend-body custom-scrollbar" };
|
|
472507
|
+
const _hoisted_4$i = ["title"];
|
|
472508
|
+
const _hoisted_5$i = { class: "legend-content" };
|
|
472509
|
+
const _hoisted_6$d = {
|
|
472510
|
+
key: 0,
|
|
472511
|
+
class: "legend-gradient-box"
|
|
472554
472512
|
};
|
|
472555
|
-
const
|
|
472556
|
-
const
|
|
472557
|
-
key:
|
|
472558
|
-
class: "
|
|
472513
|
+
const _hoisted_7$c = { class: "gradient-labels" };
|
|
472514
|
+
const _hoisted_8$9 = {
|
|
472515
|
+
key: 0,
|
|
472516
|
+
class: "gradient-unit"
|
|
472559
472517
|
};
|
|
472560
|
-
const
|
|
472561
|
-
const
|
|
472562
|
-
|
|
472563
|
-
|
|
472518
|
+
const _hoisted_9$7 = ["innerHTML"];
|
|
472519
|
+
const _hoisted_10$7 = ["src"];
|
|
472520
|
+
const _hoisted_11$6 = ["title"];
|
|
472521
|
+
const _hoisted_12$6 = {
|
|
472522
|
+
key: 3,
|
|
472523
|
+
class: "legend-desc"
|
|
472564
472524
|
};
|
|
472565
|
-
const
|
|
472525
|
+
const _hoisted_13$6 = {
|
|
472566
472526
|
key: 1,
|
|
472567
|
-
class: "
|
|
472527
|
+
class: "empty-state"
|
|
472568
472528
|
};
|
|
472569
472529
|
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
472570
472530
|
__name: "OlLegendPanel",
|
|
472571
472531
|
props: {
|
|
472572
|
-
position: { default: "
|
|
472573
|
-
width: { default:
|
|
472574
|
-
collapsible: { type: Boolean, default: true },
|
|
472532
|
+
position: { default: "left" },
|
|
472533
|
+
width: { default: 260 },
|
|
472575
472534
|
defaultCollapsed: { type: Boolean, default: false },
|
|
472576
472535
|
showOnlyVisible: { type: Boolean, default: true },
|
|
472577
|
-
|
|
472578
|
-
|
|
472579
|
-
|
|
472580
|
-
|
|
472581
|
-
bottomOffset: { default: void 0 }
|
|
472536
|
+
leftOffset: {},
|
|
472537
|
+
rightOffset: {},
|
|
472538
|
+
topOffset: {},
|
|
472539
|
+
bottomOffset: {}
|
|
472582
472540
|
},
|
|
472583
|
-
|
|
472584
|
-
setup(__props, { emit: __emit }) {
|
|
472541
|
+
setup(__props) {
|
|
472585
472542
|
const props = __props;
|
|
472586
|
-
const activeNames = vue.ref([]);
|
|
472587
472543
|
const isCollapsed = vue.ref(props.defaultCollapsed);
|
|
472588
|
-
const
|
|
472544
|
+
const activeNames = vue.ref([]);
|
|
472589
472545
|
const legends = vue.ref([]);
|
|
472590
|
-
const
|
|
472591
|
-
console.log("Layers initialized, updating legends", layers);
|
|
472592
|
-
initializeLegendsFromConfig(layers);
|
|
472593
|
-
};
|
|
472594
|
-
layerEventBus.on("layers-initialized", handleLayersInitialized);
|
|
472546
|
+
const visibleLayerIds = vue.ref([]);
|
|
472595
472547
|
const panelStyle = vue.computed(() => {
|
|
472596
|
-
const
|
|
472597
|
-
width: `${props.width}px
|
|
472548
|
+
const style2 = {
|
|
472549
|
+
width: `${props.width}px`,
|
|
472550
|
+
backgroundColor: "var(--el-bg-color-overlay)",
|
|
472551
|
+
backdropFilter: "blur(10px)"
|
|
472552
|
+
};
|
|
472553
|
+
const setOffset = (key2, value) => {
|
|
472554
|
+
if (value !== void 0)
|
|
472555
|
+
style2[key2] = typeof value === "number" ? `${value}px` : value;
|
|
472556
|
+
};
|
|
472557
|
+
setOffset("top", props.topOffset);
|
|
472558
|
+
setOffset("bottom", props.bottomOffset);
|
|
472559
|
+
if (props.leftOffset !== void 0)
|
|
472560
|
+
setOffset("left", props.leftOffset);
|
|
472561
|
+
else if (props.rightOffset !== void 0)
|
|
472562
|
+
setOffset("right", props.rightOffset);
|
|
472563
|
+
else
|
|
472564
|
+
style2[props.position] = "20px";
|
|
472565
|
+
if (!style2.top && !style2.bottom)
|
|
472566
|
+
style2.bottom = "100px";
|
|
472567
|
+
return style2;
|
|
472568
|
+
});
|
|
472569
|
+
const visibleLegends = vue.computed(() => {
|
|
472570
|
+
const list2 = props.showOnlyVisible ? legends.value.filter((l2) => visibleLayerIds.value.includes(l2.layerId)) : legends.value;
|
|
472571
|
+
return list2;
|
|
472572
|
+
});
|
|
472573
|
+
const shouldShowLegend = vue.computed(() => visibleLegends.value.length > 0);
|
|
472574
|
+
const getGradientStyle = (legend) => {
|
|
472575
|
+
var _a3;
|
|
472576
|
+
if ((_a3 = legend.colors) == null ? void 0 : _a3.length) {
|
|
472577
|
+
return { background: `linear-gradient(to right, ${legend.colors.join(", ")})` };
|
|
472578
|
+
}
|
|
472579
|
+
return {};
|
|
472580
|
+
};
|
|
472581
|
+
const getIconWrapperStyle = (type, item) => {
|
|
472582
|
+
const size2 = item.size || 16;
|
|
472583
|
+
return {
|
|
472584
|
+
width: `${size2}px`,
|
|
472585
|
+
height: `${size2}px`,
|
|
472586
|
+
minWidth: `${size2}px`
|
|
472587
|
+
// 防止压缩
|
|
472598
472588
|
};
|
|
472599
|
-
|
|
472600
|
-
|
|
472601
|
-
|
|
472602
|
-
|
|
472589
|
+
};
|
|
472590
|
+
const getSymbolInnerStyle = (type, item) => {
|
|
472591
|
+
const style2 = {
|
|
472592
|
+
width: "100%",
|
|
472593
|
+
height: "100%",
|
|
472594
|
+
backgroundColor: item.color || "#ccc"
|
|
472595
|
+
};
|
|
472596
|
+
if (type === "symbol" && item.shape) {
|
|
472597
|
+
if (item.shape === "circle")
|
|
472598
|
+
style2.borderRadius = "50%";
|
|
472599
|
+
else if (item.shape === "triangle")
|
|
472600
|
+
style2.clipPath = "polygon(50% 0%, 0% 100%, 100% 100%)";
|
|
472601
|
+
else
|
|
472602
|
+
style2.borderRadius = "2px";
|
|
472603
472603
|
} else {
|
|
472604
|
-
|
|
472605
|
-
}
|
|
472606
|
-
if (props.topOffset !== void 0) {
|
|
472607
|
-
styles.top = typeof props.topOffset === "number" ? `${props.topOffset}px` : props.topOffset;
|
|
472604
|
+
style2.borderRadius = "2px";
|
|
472608
472605
|
}
|
|
472609
|
-
if (
|
|
472610
|
-
|
|
472606
|
+
if (item.borderColor) {
|
|
472607
|
+
style2.border = `1px solid ${item.borderColor}`;
|
|
472608
|
+
style2.boxSizing = "border-box";
|
|
472611
472609
|
}
|
|
472612
|
-
|
|
472613
|
-
|
|
472614
|
-
|
|
472615
|
-
if (!props.showOnlyVisible) {
|
|
472616
|
-
return legends.value;
|
|
472610
|
+
if (item.pattern) {
|
|
472611
|
+
style2.backgroundImage = `url(${item.pattern})`;
|
|
472612
|
+
style2.backgroundSize = "cover";
|
|
472617
472613
|
}
|
|
472618
|
-
return
|
|
472619
|
-
(legend) => visibleLayerIds.value.includes(legend.layerId)
|
|
472620
|
-
);
|
|
472621
|
-
});
|
|
472622
|
-
const shouldShowLegend = vue.computed(() => {
|
|
472623
|
-
return visibleLegends.value.length > 0;
|
|
472624
|
-
});
|
|
472625
|
-
const toggleCollapse = () => {
|
|
472626
|
-
isCollapsed.value = !isCollapsed.value;
|
|
472614
|
+
return style2;
|
|
472627
472615
|
};
|
|
472628
|
-
const
|
|
472616
|
+
const toggleCollapse = () => isCollapsed.value = !isCollapsed.value;
|
|
472617
|
+
const handleImageError = (e3) => e3.target.style.display = "none";
|
|
472618
|
+
const updateLegends = (layers) => {
|
|
472629
472619
|
const newLegends = [];
|
|
472630
|
-
const
|
|
472620
|
+
const newVisibleIds = [];
|
|
472631
472621
|
layers.forEach((layer2) => {
|
|
472632
472622
|
var _a3;
|
|
472633
|
-
if (layer2.visible)
|
|
472634
|
-
|
|
472635
|
-
|
|
472636
|
-
|
|
472637
|
-
|
|
472638
|
-
const newLegend = {
|
|
472623
|
+
if (layer2.visible)
|
|
472624
|
+
newVisibleIds.push(layer2.id);
|
|
472625
|
+
const config = layer2.legend || ((_a3 = layer2.config) == null ? void 0 : _a3.legend);
|
|
472626
|
+
if (config) {
|
|
472627
|
+
newLegends.push({
|
|
472639
472628
|
layerId: layer2.id,
|
|
472640
|
-
title:
|
|
472641
|
-
items:
|
|
472629
|
+
title: config.title || layer2.name || layer2.id,
|
|
472630
|
+
items: config.items || [],
|
|
472642
472631
|
visible: layer2.visible,
|
|
472643
|
-
type:
|
|
472644
|
-
|
|
472645
|
-
|
|
472646
|
-
|
|
472632
|
+
type: config.type || "color",
|
|
472633
|
+
colors: config.colors,
|
|
472634
|
+
min: config.min,
|
|
472635
|
+
max: config.max,
|
|
472636
|
+
unit: config.unit,
|
|
472637
|
+
content: config.content,
|
|
472638
|
+
description: config.description
|
|
472639
|
+
});
|
|
472640
|
+
if (!activeNames.value.includes(layer2.id))
|
|
472641
|
+
activeNames.value.push(layer2.id);
|
|
472647
472642
|
}
|
|
472648
472643
|
});
|
|
472649
472644
|
legends.value = newLegends;
|
|
472650
|
-
visibleLayerIds.value =
|
|
472645
|
+
visibleLayerIds.value = newVisibleIds;
|
|
472651
472646
|
};
|
|
472652
|
-
const
|
|
472653
|
-
if (
|
|
472654
|
-
if (!visibleLayerIds.value.includes(
|
|
472655
|
-
visibleLayerIds.value.push(
|
|
472656
|
-
}
|
|
472647
|
+
const handleLayerVisibility = ({ layerId, visible }) => {
|
|
472648
|
+
if (visible) {
|
|
472649
|
+
if (!visibleLayerIds.value.includes(layerId))
|
|
472650
|
+
visibleLayerIds.value.push(layerId);
|
|
472657
472651
|
} else {
|
|
472658
|
-
|
|
472659
|
-
if (index2 > -1) {
|
|
472660
|
-
visibleLayerIds.value.splice(index2, 1);
|
|
472661
|
-
}
|
|
472662
|
-
}
|
|
472663
|
-
const legendIndex = legends.value.findIndex((legend) => legend.layerId === event.layerId);
|
|
472664
|
-
if (legendIndex > -1) {
|
|
472665
|
-
legends.value[legendIndex].visible = event.visible;
|
|
472652
|
+
visibleLayerIds.value = visibleLayerIds.value.filter((id2) => id2 !== layerId);
|
|
472666
472653
|
}
|
|
472667
472654
|
};
|
|
472668
|
-
const handleLayerAdded = (
|
|
472669
|
-
var _a3;
|
|
472670
|
-
const layerConfig =
|
|
472671
|
-
if (
|
|
472672
|
-
|
|
472673
|
-
|
|
472674
|
-
|
|
472675
|
-
|
|
472676
|
-
|
|
472677
|
-
|
|
472678
|
-
|
|
472679
|
-
|
|
472680
|
-
|
|
472681
|
-
|
|
472682
|
-
legends.value.push(newLegend);
|
|
472683
|
-
if (event.visible) {
|
|
472684
|
-
visibleLayerIds.value.push(event.layerId);
|
|
472685
|
-
}
|
|
472686
|
-
}
|
|
472655
|
+
const handleLayerAdded = (evt) => {
|
|
472656
|
+
var _a3, _b3, _c2;
|
|
472657
|
+
const config = ((_a3 = evt.layerConfig) == null ? void 0 : _a3.legend) || ((_c2 = (_b3 = evt.layerConfig) == null ? void 0 : _b3.config) == null ? void 0 : _c2.legend);
|
|
472658
|
+
if (config) {
|
|
472659
|
+
legends.value.push({
|
|
472660
|
+
layerId: evt.layerId,
|
|
472661
|
+
title: config.title || evt.layerName,
|
|
472662
|
+
items: config.items || [],
|
|
472663
|
+
visible: evt.visible,
|
|
472664
|
+
type: config.type || "color"
|
|
472665
|
+
});
|
|
472666
|
+
if (evt.visible)
|
|
472667
|
+
visibleLayerIds.value.push(evt.layerId);
|
|
472668
|
+
activeNames.value.push(evt.layerId);
|
|
472687
472669
|
}
|
|
472688
472670
|
};
|
|
472689
|
-
const handleLayerRemoved = (
|
|
472690
|
-
|
|
472691
|
-
|
|
472692
|
-
legends.value.splice(legendIndex, 1);
|
|
472693
|
-
}
|
|
472694
|
-
const visibleIndex = visibleLayerIds.value.indexOf(event.layerId);
|
|
472695
|
-
if (visibleIndex > -1) {
|
|
472696
|
-
visibleLayerIds.value.splice(visibleIndex, 1);
|
|
472697
|
-
}
|
|
472671
|
+
const handleLayerRemoved = ({ layerId }) => {
|
|
472672
|
+
legends.value = legends.value.filter((l2) => l2.layerId !== layerId);
|
|
472673
|
+
visibleLayerIds.value = visibleLayerIds.value.filter((id2) => id2 !== layerId);
|
|
472698
472674
|
};
|
|
472699
472675
|
vue.onMounted(() => {
|
|
472700
|
-
|
|
472701
|
-
layerEventBus.on("layer-visibility-change",
|
|
472676
|
+
layerEventBus.on("layers-initialized", updateLegends);
|
|
472677
|
+
layerEventBus.on("layer-visibility-change", handleLayerVisibility);
|
|
472702
472678
|
layerEventBus.on("layer-added", handleLayerAdded);
|
|
472703
472679
|
layerEventBus.on("layer-removed", handleLayerRemoved);
|
|
472704
472680
|
});
|
|
472705
472681
|
vue.onUnmounted(() => {
|
|
472706
|
-
layerEventBus.off("
|
|
472682
|
+
layerEventBus.off("layers-initialized", updateLegends);
|
|
472683
|
+
layerEventBus.off("layer-visibility-change", handleLayerVisibility);
|
|
472707
472684
|
layerEventBus.off("layer-added", handleLayerAdded);
|
|
472708
472685
|
layerEventBus.off("layer-removed", handleLayerRemoved);
|
|
472709
|
-
layerEventBus.off("layers-initialized", handleLayersInitialized);
|
|
472710
472686
|
});
|
|
472711
|
-
const getSymbolStyle = (item) => {
|
|
472712
|
-
const style2 = {};
|
|
472713
|
-
if (item.shape === "circle") {
|
|
472714
|
-
style2.borderRadius = "50%";
|
|
472715
|
-
} else if (item.shape === "square") {
|
|
472716
|
-
style2.borderRadius = "2px";
|
|
472717
|
-
} else if (item.shape === "triangle") {
|
|
472718
|
-
style2.clipPath = "polygon(50% 0%, 0% 100%, 100% 100%)";
|
|
472719
|
-
}
|
|
472720
|
-
if (item.color) {
|
|
472721
|
-
style2.backgroundColor = item.color;
|
|
472722
|
-
}
|
|
472723
|
-
if (item.borderColor) {
|
|
472724
|
-
style2.border = `2px solid ${item.borderColor}`;
|
|
472725
|
-
}
|
|
472726
|
-
if (item.size) {
|
|
472727
|
-
style2.width = `${item.size}px`;
|
|
472728
|
-
style2.height = `${item.size}px`;
|
|
472729
|
-
}
|
|
472730
|
-
return style2;
|
|
472731
|
-
};
|
|
472732
|
-
const getGradientStyle = (legend) => {
|
|
472733
|
-
if (legend.colors && legend.colors.length > 1) {
|
|
472734
|
-
const gradient2 = legend.colors.join(", ");
|
|
472735
|
-
return {
|
|
472736
|
-
background: `linear-gradient(to right, ${gradient2})`
|
|
472737
|
-
};
|
|
472738
|
-
}
|
|
472739
|
-
return {};
|
|
472740
|
-
};
|
|
472741
|
-
const getCategoryStyle = (item) => {
|
|
472742
|
-
const style2 = {
|
|
472743
|
-
width: "16px",
|
|
472744
|
-
height: "16px",
|
|
472745
|
-
borderRadius: "2px"
|
|
472746
|
-
};
|
|
472747
|
-
if (item.color) {
|
|
472748
|
-
style2.backgroundColor = item.color;
|
|
472749
|
-
}
|
|
472750
|
-
if (item.pattern) {
|
|
472751
|
-
style2.backgroundImage = `url(${item.pattern})`;
|
|
472752
|
-
style2.backgroundSize = "cover";
|
|
472753
|
-
}
|
|
472754
|
-
return style2;
|
|
472755
|
-
};
|
|
472756
|
-
const getIconStyle = (item) => {
|
|
472757
|
-
const style2 = {
|
|
472758
|
-
width: item.size ? `${item.size}px` : "16px",
|
|
472759
|
-
height: item.size ? `${item.size}px` : "16px",
|
|
472760
|
-
maxWidth: "24px",
|
|
472761
|
-
maxHeight: "24px"
|
|
472762
|
-
};
|
|
472763
|
-
return style2;
|
|
472764
|
-
};
|
|
472765
|
-
const handleImageError = (event) => {
|
|
472766
|
-
const img = event.target;
|
|
472767
|
-
img.style.display = "none";
|
|
472768
|
-
console.warn("图例图标加载失败:", img.src);
|
|
472769
|
-
};
|
|
472770
472687
|
return (_ctx, _cache) => {
|
|
472771
|
-
const
|
|
472688
|
+
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
472772
472689
|
const _component_el_collapse_item = vue.resolveComponent("el-collapse-item");
|
|
472773
472690
|
const _component_el_collapse = vue.resolveComponent("el-collapse");
|
|
472774
472691
|
const _component_el_empty = vue.resolveComponent("el-empty");
|
|
472775
472692
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
472776
|
-
class: vue.normalizeClass(["
|
|
472693
|
+
class: vue.normalizeClass(["ol-legend-panel", { "is-collapsed": isCollapsed.value }]),
|
|
472777
472694
|
style: vue.normalizeStyle(panelStyle.value)
|
|
472778
472695
|
}, [
|
|
472779
472696
|
vue.createElementVNode("div", _hoisted_1$j, [
|
|
472780
|
-
_cache[1] || (_cache[1] = vue.createElementVNode("
|
|
472697
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("span", { class: "header-title" }, "图例", -1)),
|
|
472781
472698
|
vue.createElementVNode("div", _hoisted_2$i, [
|
|
472782
|
-
vue.createVNode(
|
|
472783
|
-
|
|
472784
|
-
size: "small",
|
|
472699
|
+
vue.createVNode(_component_el_icon, {
|
|
472700
|
+
class: "action-icon",
|
|
472785
472701
|
onClick: toggleCollapse,
|
|
472786
|
-
|
|
472787
|
-
}, null, 8, ["icon"])
|
|
472788
|
-
])
|
|
472789
|
-
]),
|
|
472790
|
-
vue.createElementVNode("div", _hoisted_3$i, [
|
|
472791
|
-
vue.createElementVNode("div", _hoisted_4$i, [
|
|
472792
|
-
visibleLegends.value.length > 0 ? (vue.openBlock(), vue.createBlock(_component_el_collapse, {
|
|
472793
|
-
key: 0,
|
|
472794
|
-
modelValue: activeNames.value,
|
|
472795
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeNames.value = $event),
|
|
472796
|
-
class: "legend-collapse"
|
|
472702
|
+
title: isCollapsed.value ? "展开" : "收起"
|
|
472797
472703
|
}, {
|
|
472798
472704
|
default: vue.withCtx(() => [
|
|
472799
|
-
(vue.openBlock(
|
|
472800
|
-
return vue.openBlock(), vue.createBlock(_component_el_collapse_item, {
|
|
472801
|
-
key: legend.layerId,
|
|
472802
|
-
title: legend.title || "未命名图例",
|
|
472803
|
-
name: legend.id,
|
|
472804
|
-
class: "legend-item"
|
|
472805
|
-
}, {
|
|
472806
|
-
default: vue.withCtx(() => [
|
|
472807
|
-
vue.createElementVNode("div", _hoisted_5$i, [
|
|
472808
|
-
legend.type === "symbol" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$e, [
|
|
472809
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(legend.items, (item) => {
|
|
472810
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
472811
|
-
key: item.value,
|
|
472812
|
-
class: "flex items-center mb-2"
|
|
472813
|
-
}, [
|
|
472814
|
-
vue.createElementVNode("div", {
|
|
472815
|
-
class: "w-4 h-4 mr-2 border border-gray-300",
|
|
472816
|
-
style: vue.normalizeStyle(getSymbolStyle(item))
|
|
472817
|
-
}, null, 4),
|
|
472818
|
-
vue.createElementVNode("span", _hoisted_7$c, vue.toDisplayString(item.label), 1)
|
|
472819
|
-
]);
|
|
472820
|
-
}), 128))
|
|
472821
|
-
])) : legend.type === "color" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$9, [
|
|
472822
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(legend.items, (item) => {
|
|
472823
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
472824
|
-
key: item.value,
|
|
472825
|
-
class: "flex items-center mb-1.5"
|
|
472826
|
-
}, [
|
|
472827
|
-
vue.createElementVNode("div", {
|
|
472828
|
-
class: "w-4 h-4 mr-2 border border-gray-300 rounded-sm",
|
|
472829
|
-
style: vue.normalizeStyle({ backgroundColor: item.color })
|
|
472830
|
-
}, null, 4),
|
|
472831
|
-
vue.createElementVNode("span", _hoisted_9$7, vue.toDisplayString(item.label), 1)
|
|
472832
|
-
]);
|
|
472833
|
-
}), 128))
|
|
472834
|
-
])) : legend.type === "gradient" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$7, [
|
|
472835
|
-
vue.createElementVNode("div", _hoisted_11$6, [
|
|
472836
|
-
vue.createElementVNode("div", {
|
|
472837
|
-
class: "w-full h-5 border border-gray-300 rounded-sm",
|
|
472838
|
-
style: vue.normalizeStyle(getGradientStyle(legend))
|
|
472839
|
-
}, null, 4),
|
|
472840
|
-
vue.createElementVNode("div", _hoisted_12$6, [
|
|
472841
|
-
vue.createElementVNode("span", null, vue.toDisplayString(legend.min), 1),
|
|
472842
|
-
vue.createElementVNode("span", null, vue.toDisplayString(legend.max), 1)
|
|
472843
|
-
])
|
|
472844
|
-
]),
|
|
472845
|
-
vue.createElementVNode("div", _hoisted_13$6, vue.toDisplayString(legend.unit || ""), 1)
|
|
472846
|
-
])) : legend.type === "category" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$5, [
|
|
472847
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(legend.items, (item) => {
|
|
472848
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
472849
|
-
key: item.value,
|
|
472850
|
-
class: "flex items-center mb-1.5"
|
|
472851
|
-
}, [
|
|
472852
|
-
vue.createElementVNode("div", {
|
|
472853
|
-
class: "mr-2 border border-gray-300",
|
|
472854
|
-
style: vue.normalizeStyle(getCategoryStyle(item))
|
|
472855
|
-
}, null, 4),
|
|
472856
|
-
vue.createElementVNode("span", _hoisted_15$4, vue.toDisplayString(item.label), 1)
|
|
472857
|
-
]);
|
|
472858
|
-
}), 128))
|
|
472859
|
-
])) : legend.type === "icon" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$4, [
|
|
472860
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(legend.items, (item) => {
|
|
472861
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
472862
|
-
key: item.value,
|
|
472863
|
-
class: "flex items-center mb-1.5"
|
|
472864
|
-
}, [
|
|
472865
|
-
item.image ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
472866
|
-
key: 0,
|
|
472867
|
-
src: item.image,
|
|
472868
|
-
alt: item.label,
|
|
472869
|
-
class: "mr-2 object-contain border border-gray-200 rounded-sm",
|
|
472870
|
-
style: vue.normalizeStyle(getIconStyle(item)),
|
|
472871
|
-
onError: handleImageError
|
|
472872
|
-
}, null, 44, _hoisted_17$4)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$4)),
|
|
472873
|
-
vue.createElementVNode("span", _hoisted_19$4, vue.toDisplayString(item.label), 1)
|
|
472874
|
-
]);
|
|
472875
|
-
}), 128))
|
|
472876
|
-
])) : legend.type === "custom" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$4, [
|
|
472877
|
-
vue.createElementVNode("div", {
|
|
472878
|
-
innerHTML: legend.content
|
|
472879
|
-
}, null, 8, _hoisted_21$2)
|
|
472880
|
-
])) : vue.createCommentVNode("", true),
|
|
472881
|
-
legend.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22$1, vue.toDisplayString(legend.description), 1)) : vue.createCommentVNode("", true)
|
|
472882
|
-
])
|
|
472883
|
-
]),
|
|
472884
|
-
_: 2
|
|
472885
|
-
}, 1032, ["title", "name"]);
|
|
472886
|
-
}), 128))
|
|
472705
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(isCollapsed.value ? "Expand" : "Fold")))
|
|
472887
472706
|
]),
|
|
472888
472707
|
_: 1
|
|
472889
|
-
}, 8, ["
|
|
472890
|
-
vue.createVNode(_component_el_empty, { description: "暂无图例" })
|
|
472891
|
-
]))
|
|
472708
|
+
}, 8, ["title"])
|
|
472892
472709
|
])
|
|
472710
|
+
]),
|
|
472711
|
+
vue.createElementVNode("div", _hoisted_3$i, [
|
|
472712
|
+
visibleLegends.value.length > 0 ? (vue.openBlock(), vue.createBlock(_component_el_collapse, {
|
|
472713
|
+
key: 0,
|
|
472714
|
+
modelValue: activeNames.value,
|
|
472715
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeNames.value = $event),
|
|
472716
|
+
class: "legend-collapse"
|
|
472717
|
+
}, {
|
|
472718
|
+
default: vue.withCtx(() => [
|
|
472719
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleLegends.value, (legend) => {
|
|
472720
|
+
return vue.openBlock(), vue.createBlock(_component_el_collapse_item, {
|
|
472721
|
+
key: legend.layerId,
|
|
472722
|
+
name: legend.layerId
|
|
472723
|
+
}, {
|
|
472724
|
+
title: vue.withCtx(() => [
|
|
472725
|
+
vue.createElementVNode("span", {
|
|
472726
|
+
class: "layer-title",
|
|
472727
|
+
title: legend.title
|
|
472728
|
+
}, vue.toDisplayString(legend.title || "未命名图例"), 9, _hoisted_4$i)
|
|
472729
|
+
]),
|
|
472730
|
+
default: vue.withCtx(() => [
|
|
472731
|
+
vue.createElementVNode("div", _hoisted_5$i, [
|
|
472732
|
+
legend.type === "gradient" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$d, [
|
|
472733
|
+
vue.createElementVNode("div", {
|
|
472734
|
+
class: "gradient-bar",
|
|
472735
|
+
style: vue.normalizeStyle(getGradientStyle(legend))
|
|
472736
|
+
}, null, 4),
|
|
472737
|
+
vue.createElementVNode("div", _hoisted_7$c, [
|
|
472738
|
+
vue.createElementVNode("span", null, vue.toDisplayString(legend.min), 1),
|
|
472739
|
+
vue.createElementVNode("span", null, vue.toDisplayString(legend.max), 1)
|
|
472740
|
+
]),
|
|
472741
|
+
legend.unit ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$9, vue.toDisplayString(legend.unit), 1)) : vue.createCommentVNode("", true)
|
|
472742
|
+
])) : legend.type === "custom" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
472743
|
+
key: 1,
|
|
472744
|
+
class: "legend-custom",
|
|
472745
|
+
innerHTML: legend.content
|
|
472746
|
+
}, null, 8, _hoisted_9$7)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(legend.items, (item, idx) => {
|
|
472747
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
472748
|
+
key: idx,
|
|
472749
|
+
class: "legend-row"
|
|
472750
|
+
}, [
|
|
472751
|
+
vue.createElementVNode("div", {
|
|
472752
|
+
class: "legend-icon",
|
|
472753
|
+
style: vue.normalizeStyle(getIconWrapperStyle(legend.type, item))
|
|
472754
|
+
}, [
|
|
472755
|
+
legend.type === "icon" && item.image ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
472756
|
+
key: 0,
|
|
472757
|
+
src: item.image,
|
|
472758
|
+
class: "icon-img",
|
|
472759
|
+
onError: handleImageError
|
|
472760
|
+
}, null, 40, _hoisted_10$7)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
472761
|
+
key: 1,
|
|
472762
|
+
class: "symbol-shape",
|
|
472763
|
+
style: vue.normalizeStyle(getSymbolInnerStyle(legend.type, item))
|
|
472764
|
+
}, null, 4))
|
|
472765
|
+
], 4),
|
|
472766
|
+
vue.createElementVNode("span", {
|
|
472767
|
+
class: "legend-label",
|
|
472768
|
+
title: item.label
|
|
472769
|
+
}, vue.toDisplayString(item.label), 9, _hoisted_11$6)
|
|
472770
|
+
]);
|
|
472771
|
+
}), 128)),
|
|
472772
|
+
legend.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$6, vue.toDisplayString(legend.description), 1)) : vue.createCommentVNode("", true)
|
|
472773
|
+
])
|
|
472774
|
+
]),
|
|
472775
|
+
_: 2
|
|
472776
|
+
}, 1032, ["name"]);
|
|
472777
|
+
}), 128))
|
|
472778
|
+
]),
|
|
472779
|
+
_: 1
|
|
472780
|
+
}, 8, ["modelValue"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$6, [
|
|
472781
|
+
vue.createVNode(_component_el_empty, {
|
|
472782
|
+
description: "暂无图例",
|
|
472783
|
+
"image-size": 60
|
|
472784
|
+
})
|
|
472785
|
+
]))
|
|
472893
472786
|
])
|
|
472894
472787
|
], 6)), [
|
|
472895
472788
|
[vue.vShow, shouldShowLegend.value]
|
|
@@ -472897,7 +472790,8 @@ ${this.attributes_.map(
|
|
|
472897
472790
|
};
|
|
472898
472791
|
}
|
|
472899
472792
|
});
|
|
472900
|
-
const
|
|
472793
|
+
const OlLegendPanel_vue_vue_type_style_index_0_scoped_b1b6d5ed_lang = "";
|
|
472794
|
+
const OlLegendPanel = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-b1b6d5ed"]]);
|
|
472901
472795
|
class ConfigLoader {
|
|
472902
472796
|
/**
|
|
472903
472797
|
* 从URL加载配置文件
|
|
@@ -474025,7 +473919,7 @@ ${this.attributes_.map(
|
|
|
474025
473919
|
const _hoisted_3$h = { class: "config-item" };
|
|
474026
473920
|
const _hoisted_4$h = { class: "value-text" };
|
|
474027
473921
|
const _hoisted_5$h = { class: "config-item" };
|
|
474028
|
-
const _hoisted_6$
|
|
473922
|
+
const _hoisted_6$c = { class: "value-text" };
|
|
474029
473923
|
const _hoisted_7$b = { class: "config-item" };
|
|
474030
473924
|
const _hoisted_8$8 = { class: "value-text" };
|
|
474031
473925
|
const _hoisted_9$6 = { class: "config-item" };
|
|
@@ -474086,7 +473980,7 @@ ${this.attributes_.map(
|
|
|
474086
473980
|
step: 1,
|
|
474087
473981
|
onInput: handleFilterChange
|
|
474088
473982
|
}, null, 8, ["modelValue"]),
|
|
474089
|
-
vue.createElementVNode("span", _hoisted_6$
|
|
473983
|
+
vue.createElementVNode("span", _hoisted_6$c, vue.toDisplayString(_ctx.filters.saturate) + "%", 1)
|
|
474090
473984
|
]),
|
|
474091
473985
|
vue.createElementVNode("div", _hoisted_7$b, [
|
|
474092
473986
|
_cache[13] || (_cache[13] = vue.createElementVNode("label", null, "亮度:", -1)),
|
|
@@ -474224,7 +474118,7 @@ ${this.attributes_.map(
|
|
|
474224
474118
|
};
|
|
474225
474119
|
const _hoisted_4$g = { class: "config-item" };
|
|
474226
474120
|
const _hoisted_5$g = { class: "value-text" };
|
|
474227
|
-
const _hoisted_6$
|
|
474121
|
+
const _hoisted_6$b = { class: "config-item" };
|
|
474228
474122
|
const _hoisted_7$a = { class: "value-text" };
|
|
474229
474123
|
const _hoisted_8$7 = {
|
|
474230
474124
|
key: 1,
|
|
@@ -474282,7 +474176,7 @@ ${this.attributes_.map(
|
|
|
474282
474176
|
}, null, 8, ["modelValue"]),
|
|
474283
474177
|
vue.createElementVNode("span", _hoisted_5$g, vue.toDisplayString(_ctx.layerData.clusterDistance) + "px", 1)
|
|
474284
474178
|
]),
|
|
474285
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
474179
|
+
vue.createElementVNode("div", _hoisted_6$b, [
|
|
474286
474180
|
_cache[7] || (_cache[7] = vue.createElementVNode("label", null, "最小距离:", -1)),
|
|
474287
474181
|
vue.createVNode(_component_el_slider, {
|
|
474288
474182
|
modelValue: _ctx.layerData.minDistance,
|
|
@@ -474507,7 +474401,7 @@ ${this.attributes_.map(
|
|
|
474507
474401
|
});
|
|
474508
474402
|
const LayerTreeNode_vue_vue_type_style_index_0_lang = "";
|
|
474509
474403
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
474510
|
-
var
|
|
474404
|
+
var re$1 = /* @__PURE__ */ vue.defineComponent({
|
|
474511
474405
|
name: "Close",
|
|
474512
474406
|
__name: "close",
|
|
474513
474407
|
setup(r2) {
|
|
@@ -474521,7 +474415,7 @@ ${this.attributes_.map(
|
|
|
474521
474415
|
})
|
|
474522
474416
|
]));
|
|
474523
474417
|
}
|
|
474524
|
-
}),
|
|
474418
|
+
}), ce$1 = re$1, de$1 = /* @__PURE__ */ vue.defineComponent({
|
|
474525
474419
|
name: "FullScreen",
|
|
474526
474420
|
__name: "full-screen",
|
|
474527
474421
|
setup(r2) {
|
|
@@ -474535,8 +474429,8 @@ ${this.attributes_.map(
|
|
|
474535
474429
|
})
|
|
474536
474430
|
]));
|
|
474537
474431
|
}
|
|
474538
|
-
}),
|
|
474539
|
-
const
|
|
474432
|
+
}), ue$1 = de$1;
|
|
474433
|
+
const fe$1 = { class: "custom-dialog-header" }, he$1 = ["id"], me$1 = { class: "custom-dialog-actions" }, pe$1 = {
|
|
474540
474434
|
key: 1,
|
|
474541
474435
|
class: "icon",
|
|
474542
474436
|
viewBox: "0 0 1025 1024",
|
|
@@ -474544,7 +474438,7 @@ ${this.attributes_.map(
|
|
|
474544
474438
|
xmlns: "http://www.w3.org/2000/svg",
|
|
474545
474439
|
width: "1em",
|
|
474546
474440
|
height: "1em"
|
|
474547
|
-
},
|
|
474441
|
+
}, ge$1 = ["onClick"], X$1 = /* @__PURE__ */ vue.defineComponent({
|
|
474548
474442
|
__name: "EPlusResizeDialog",
|
|
474549
474443
|
props: {
|
|
474550
474444
|
resizable: { type: Boolean, default: true },
|
|
@@ -474556,8 +474450,8 @@ ${this.attributes_.map(
|
|
|
474556
474450
|
closeOnClickModal: { type: Boolean, default: false }
|
|
474557
474451
|
},
|
|
474558
474452
|
setup(r2, { expose: S2 }) {
|
|
474559
|
-
const c2 = r2,
|
|
474560
|
-
const l2 =
|
|
474453
|
+
const c2 = r2, Y2 = vue.computed(() => c2.showFullscreen !== false), i2 = vue.ref(), $2 = vue.useAttrs(), j2 = vue.useSlots(), d2 = vue.ref(false), x2 = vue.computed(() => {
|
|
474454
|
+
const l2 = $2.modal;
|
|
474561
474455
|
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !c2.modalPenetrable;
|
|
474562
474456
|
}), a3 = {
|
|
474563
474457
|
width: "",
|
|
@@ -474567,7 +474461,7 @@ ${this.attributes_.map(
|
|
|
474567
474461
|
transform: "",
|
|
474568
474462
|
marginTop: "",
|
|
474569
474463
|
marginBottom: ""
|
|
474570
|
-
},
|
|
474464
|
+
}, V2 = () => {
|
|
474571
474465
|
d2.value ? (d2.value = false, vue.nextTick(() => {
|
|
474572
474466
|
e3 && (e3.style.width = a3.width, e3.style.height = a3.height, e3.style.left = a3.left, e3.style.top = a3.top, e3.style.transform = a3.transform, e3.style.marginTop = a3.marginTop, e3.style.marginBottom = a3.marginBottom);
|
|
474573
474467
|
})) : (e3 && (a3.width = e3.style.width, a3.height = e3.style.height, a3.left = e3.style.left, a3.top = e3.style.top, a3.transform = e3.style.transform, a3.marginTop = e3.style.marginTop, a3.marginBottom = e3.style.marginBottom, e3.style.width = "", e3.style.height = "", e3.style.transform = "", e3.style.left = "", e3.style.top = "", e3.style.marginTop = "", e3.style.marginBottom = ""), d2.value = true), vue.nextTick(() => {
|
|
@@ -474576,11 +474470,11 @@ ${this.attributes_.map(
|
|
|
474576
474470
|
};
|
|
474577
474471
|
S2({
|
|
474578
474472
|
dialogRef: i2,
|
|
474579
|
-
toggleFullscreen:
|
|
474473
|
+
toggleFullscreen: V2,
|
|
474580
474474
|
isFullscreen: d2
|
|
474581
474475
|
});
|
|
474582
|
-
let R2 = 0, H4 = 0, B3 = 0, C3 = 0,
|
|
474583
|
-
const
|
|
474476
|
+
let R2 = 0, H4 = 0, B3 = 0, C3 = 0, g2 = 0, v5 = 0, u2 = "", e3 = null;
|
|
474477
|
+
const U2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"], M5 = () => {
|
|
474584
474478
|
var s2;
|
|
474585
474479
|
if (c2.resizable === false || d2.value) {
|
|
474586
474480
|
e3 && e3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "none");
|
|
@@ -474589,11 +474483,11 @@ ${this.attributes_.map(
|
|
|
474589
474483
|
if (e3 && e3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !i2.value)
|
|
474590
474484
|
return;
|
|
474591
474485
|
const l2 = ((s2 = i2.value.dialogContentRef) == null ? void 0 : s2.$el) || i2.value.$el;
|
|
474592
|
-
!l2 || (e3 = l2.querySelector(".el-dialog") || l2, (!e3 || !e3.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e3 = l2 : e3 = document.querySelector(".el-dialog")), !e3) || (getComputedStyle(e3).position === "static" && (e3.style.position = "relative"), e3.querySelector(".resize-handle")) ||
|
|
474486
|
+
!l2 || (e3 = l2.querySelector(".el-dialog") || l2, (!e3 || !e3.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e3 = l2 : e3 = document.querySelector(".el-dialog")), !e3) || (getComputedStyle(e3).position === "static" && (e3.style.position = "relative"), e3.querySelector(".resize-handle")) || U2.forEach((t2) => {
|
|
474593
474487
|
const n2 = document.createElement("div");
|
|
474594
|
-
n2.className = `resize-handle resize-handle-${t2}`, n2.dataset.dir = t2, Object.assign(n2.style,
|
|
474488
|
+
n2.className = `resize-handle resize-handle-${t2}`, n2.dataset.dir = t2, Object.assign(n2.style, G2(t2)), n2.addEventListener("mousedown", (f2) => J2(f2, t2)), e3.appendChild(n2);
|
|
474595
474489
|
});
|
|
474596
|
-
},
|
|
474490
|
+
}, G2 = (l2) => {
|
|
474597
474491
|
const o2 = "10px", s2 = "-5px", t2 = {
|
|
474598
474492
|
position: "absolute",
|
|
474599
474493
|
zIndex: "100",
|
|
@@ -474602,42 +474496,42 @@ ${this.attributes_.map(
|
|
|
474602
474496
|
cursor: `${l2}-resize`
|
|
474603
474497
|
};
|
|
474604
474498
|
return l2.includes("n") && (t2.top = s2), l2.includes("s") && (t2.bottom = s2), l2.includes("w") && (t2.left = s2), l2.includes("e") && (t2.right = s2), l2 === "ne" && (t2.top = s2, t2.right = s2, t2.width = o2, t2.height = o2, t2.cursor = "ne-resize"), l2 === "nw" && (t2.top = s2, t2.left = s2, t2.width = o2, t2.height = o2, t2.cursor = "nw-resize"), l2 === "se" && (t2.bottom = s2, t2.right = s2, t2.width = o2, t2.height = o2, t2.cursor = "se-resize"), l2 === "sw" && (t2.bottom = s2, t2.left = s2, t2.width = o2, t2.height = o2, t2.cursor = "sw-resize"), t2;
|
|
474605
|
-
},
|
|
474499
|
+
}, J2 = (l2, o2) => {
|
|
474606
474500
|
if (l2.preventDefault(), l2.stopPropagation(), !e3)
|
|
474607
474501
|
return;
|
|
474608
474502
|
u2 = o2, R2 = l2.clientX, H4 = l2.clientY;
|
|
474609
474503
|
const s2 = window.getComputedStyle(e3);
|
|
474610
|
-
B3 = parseInt(s2.width), C3 = parseInt(s2.height),
|
|
474504
|
+
B3 = parseInt(s2.width), C3 = parseInt(s2.height), g2 = parseInt(s2.left) || 0, v5 = parseInt(s2.top) || 0;
|
|
474611
474505
|
const t2 = e3.getBoundingClientRect();
|
|
474612
474506
|
if (s2.position !== "absolute" && s2.position !== "fixed") {
|
|
474613
|
-
const n2 = e3.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 },
|
|
474614
|
-
e3.style.position = "absolute", e3.style.margin = "0", e3.style.left = `${
|
|
474507
|
+
const n2 = e3.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 }, y2 = t2.left - f2.left, w2 = t2.top - f2.top;
|
|
474508
|
+
e3.style.position = "absolute", e3.style.margin = "0", e3.style.left = `${y2}px`, e3.style.top = `${w2}px`, g2 = y2, v5 = w2;
|
|
474615
474509
|
} else
|
|
474616
|
-
|
|
474510
|
+
g2 = parseInt(s2.left), v5 = parseInt(s2.top);
|
|
474617
474511
|
document.addEventListener("mousemove", P6), document.addEventListener("mouseup", T2);
|
|
474618
474512
|
}, P6 = (l2) => {
|
|
474619
474513
|
if (!e3)
|
|
474620
474514
|
return;
|
|
474621
474515
|
const o2 = l2.clientX - R2, s2 = l2.clientY - H4;
|
|
474622
|
-
let t2 = B3, n2 = C3, f2 =
|
|
474623
|
-
const
|
|
474624
|
-
if (u2.includes("e") && (t2 = Math.max(
|
|
474625
|
-
const
|
|
474626
|
-
|
|
474516
|
+
let t2 = B3, n2 = C3, f2 = g2, y2 = v5;
|
|
474517
|
+
const w2 = c2.minWidth || 200, I2 = c2.minHeight || 150;
|
|
474518
|
+
if (u2.includes("e") && (t2 = Math.max(w2, B3 + o2)), u2.includes("s") && (n2 = Math.max(I2, C3 + s2)), u2.includes("w")) {
|
|
474519
|
+
const _2 = B3 - o2;
|
|
474520
|
+
_2 >= w2 && (t2 = _2, f2 = g2 + o2);
|
|
474627
474521
|
}
|
|
474628
474522
|
if (u2.includes("n")) {
|
|
474629
|
-
const
|
|
474630
|
-
|
|
474523
|
+
const _2 = C3 - s2;
|
|
474524
|
+
_2 >= I2 && (n2 = _2, y2 = v5 + s2);
|
|
474631
474525
|
}
|
|
474632
|
-
e3.style.width = `${t2}px`, e3.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e3.style.left = `${f2}px`, e3.style.top = `${
|
|
474526
|
+
e3.style.width = `${t2}px`, e3.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e3.style.left = `${f2}px`, e3.style.top = `${y2}px`);
|
|
474633
474527
|
}, T2 = () => {
|
|
474634
474528
|
document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup", T2);
|
|
474635
474529
|
};
|
|
474636
|
-
vue.watch(() =>
|
|
474530
|
+
vue.watch(() => $2.modelValue, (l2) => {
|
|
474637
474531
|
l2 && vue.nextTick(() => {
|
|
474638
474532
|
M5(), D2();
|
|
474639
474533
|
});
|
|
474640
|
-
}), vue.watch(() =>
|
|
474534
|
+
}), vue.watch(() => x2.value, () => {
|
|
474641
474535
|
vue.nextTick(() => {
|
|
474642
474536
|
D2();
|
|
474643
474537
|
});
|
|
@@ -474650,40 +474544,39 @@ ${this.attributes_.map(
|
|
|
474650
474544
|
if (!l2)
|
|
474651
474545
|
return;
|
|
474652
474546
|
let o2 = l2.closest(".el-overlay");
|
|
474653
|
-
o2 || (o2 = l2.closest(".el-overlay-dialog")), o2 && (
|
|
474547
|
+
o2 || (o2 = l2.closest(".el-overlay-dialog")), o2 && (x2.value ? o2.classList.remove("e-plus-modal-hidden-overlay") : o2.classList.add("e-plus-modal-hidden-overlay"));
|
|
474654
474548
|
};
|
|
474655
474549
|
return (l2, o2) => (vue.openBlock(), vue.createBlock(vue.unref(ElDialog), vue.mergeProps({
|
|
474656
474550
|
ref_key: "dialogRef",
|
|
474657
474551
|
ref: i2,
|
|
474658
|
-
class: ["e-plus-resize-dialog", { "is-modal-hidden": !
|
|
474552
|
+
class: ["e-plus-resize-dialog", { "is-modal-hidden": !x2.value }]
|
|
474659
474553
|
}, l2.$attrs, {
|
|
474660
|
-
modal:
|
|
474554
|
+
modal: x2.value,
|
|
474661
474555
|
"close-on-click-modal": r2.closeOnClickModal,
|
|
474662
474556
|
draggable: r2.draggable,
|
|
474663
474557
|
fullscreen: d2.value,
|
|
474664
474558
|
"show-close": false
|
|
474665
474559
|
}), vue.createSlots({
|
|
474666
474560
|
header: vue.withCtx(({ close: s2, titleId: t2, titleClass: n2 }) => [
|
|
474667
|
-
vue.createElementVNode("div",
|
|
474668
|
-
vue.createTextVNode(vue.toDisplayString(g2.value) + " ", 1),
|
|
474561
|
+
vue.createElementVNode("div", fe$1, [
|
|
474669
474562
|
vue.createElementVNode("span", {
|
|
474670
474563
|
id: t2,
|
|
474671
474564
|
class: vue.normalizeClass(n2)
|
|
474672
|
-
}, vue.toDisplayString(l2.$attrs.title), 11,
|
|
474673
|
-
vue.createElementVNode("div",
|
|
474674
|
-
|
|
474565
|
+
}, vue.toDisplayString(l2.$attrs.title), 11, he$1),
|
|
474566
|
+
vue.createElementVNode("div", me$1, [
|
|
474567
|
+
Y2.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
474675
474568
|
key: 0,
|
|
474676
474569
|
class: "custom-header-btn",
|
|
474677
|
-
onClick:
|
|
474570
|
+
onClick: V2
|
|
474678
474571
|
}, [
|
|
474679
474572
|
vue.createVNode(vue.unref(ElIcon), { size: "18" }, {
|
|
474680
474573
|
default: vue.withCtx(() => [
|
|
474681
|
-
d2.value ? (vue.openBlock(), vue.createElementBlock("svg",
|
|
474574
|
+
d2.value ? (vue.openBlock(), vue.createElementBlock("svg", pe$1, [...o2[0] || (o2[0] = [
|
|
474682
474575
|
vue.createElementVNode("path", {
|
|
474683
474576
|
d: "M222.392033 1024V801.607967H0v-60.262562h282.654595v282.654595z m521.502942 0V741.345405H1025.622454v60.262562H804.041648v222.392033z m-743.431417-741.693074v-60.262562h222.392033V0.463558h60.262562v281.843368z m743.431417 0V0.463558h60.262562v221.580806H1025.622454v60.262562z",
|
|
474684
474577
|
fill: "currentColor"
|
|
474685
474578
|
}, null, -1)
|
|
474686
|
-
])])) : (vue.openBlock(), vue.createBlock(vue.unref(
|
|
474579
|
+
])])) : (vue.openBlock(), vue.createBlock(vue.unref(ue$1), { key: 0 }))
|
|
474687
474580
|
]),
|
|
474688
474581
|
_: 1
|
|
474689
474582
|
})
|
|
@@ -474695,17 +474588,17 @@ ${this.attributes_.map(
|
|
|
474695
474588
|
}, [
|
|
474696
474589
|
vue.createVNode(vue.unref(ElIcon), { size: "20" }, {
|
|
474697
474590
|
default: vue.withCtx(() => [
|
|
474698
|
-
vue.createVNode(vue.unref(
|
|
474591
|
+
vue.createVNode(vue.unref(ce$1))
|
|
474699
474592
|
]),
|
|
474700
474593
|
_: 1
|
|
474701
474594
|
})
|
|
474702
|
-
], 8,
|
|
474595
|
+
], 8, ge$1)) : vue.createCommentVNode("", true)
|
|
474703
474596
|
])
|
|
474704
474597
|
])
|
|
474705
474598
|
]),
|
|
474706
474599
|
_: 2
|
|
474707
474600
|
}, [
|
|
474708
|
-
vue.renderList(vue.unref(
|
|
474601
|
+
vue.renderList(vue.unref(j2), (s2, t2) => ({
|
|
474709
474602
|
name: t2,
|
|
474710
474603
|
fn: vue.withCtx((n2) => [
|
|
474711
474604
|
vue.renderSlot(l2.$slots, t2, vue.normalizeProps(vue.guardReactiveProps(n2 || {})))
|
|
@@ -474714,8 +474607,8 @@ ${this.attributes_.map(
|
|
|
474714
474607
|
]), 1040, ["class", "modal", "close-on-click-modal", "draggable", "fullscreen"]));
|
|
474715
474608
|
}
|
|
474716
474609
|
});
|
|
474717
|
-
|
|
474718
|
-
r2.component("EPlusResizeDialog",
|
|
474610
|
+
X$1.install = (r2) => {
|
|
474611
|
+
r2.component("EPlusResizeDialog", X$1);
|
|
474719
474612
|
};
|
|
474720
474613
|
const style = "";
|
|
474721
474614
|
const _hoisted_1$f = { class: "flex-1 overflow-y-auto p-4" };
|
|
@@ -474723,7 +474616,7 @@ ${this.attributes_.map(
|
|
|
474723
474616
|
const _hoisted_3$e = { class: "text-xs font-semibold text-gray-700 px-1 py-1 border-b border-gray-200 mb-2" };
|
|
474724
474617
|
const _hoisted_4$e = { class: "global-style-panel" };
|
|
474725
474618
|
const _hoisted_5$e = { class: "config-section" };
|
|
474726
|
-
const _hoisted_6$
|
|
474619
|
+
const _hoisted_6$a = { class: "config-item" };
|
|
474727
474620
|
const _hoisted_7$9 = { class: "current-style-display" };
|
|
474728
474621
|
const _hoisted_8$6 = { class: "style-preview" };
|
|
474729
474622
|
const dialogType = "layer-panel";
|
|
@@ -475493,10 +475386,13 @@ ${this.attributes_.map(
|
|
|
475493
475386
|
const _component_el_tree = vue.resolveComponent("el-tree");
|
|
475494
475387
|
const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
|
|
475495
475388
|
const _component_el_tabs = vue.resolveComponent("el-tabs");
|
|
475496
|
-
return vue.openBlock(), vue.createBlock(vue.unref(
|
|
475389
|
+
return vue.openBlock(), vue.createBlock(vue.unref(X$1), vue.mergeProps({
|
|
475497
475390
|
modelValue: visible.value,
|
|
475498
475391
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event)
|
|
475499
|
-
}, dialogProps2.value, {
|
|
475392
|
+
}, dialogProps2.value, {
|
|
475393
|
+
"append-to-body": "",
|
|
475394
|
+
onClose: handleClose
|
|
475395
|
+
}), vue.createSlots({
|
|
475500
475396
|
default: vue.withCtx(() => [
|
|
475501
475397
|
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", {
|
|
475502
475398
|
key: 0,
|
|
@@ -475666,7 +475562,7 @@ ${this.attributes_.map(
|
|
|
475666
475562
|
}, {
|
|
475667
475563
|
default: vue.withCtx(() => [
|
|
475668
475564
|
vue.createElementVNode("div", _hoisted_5$e, [
|
|
475669
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
475565
|
+
vue.createElementVNode("div", _hoisted_6$a, [
|
|
475670
475566
|
vue.createVNode(vue.unref(ElInput), {
|
|
475671
475567
|
modelValue: vue.unref(globalCustomCss),
|
|
475672
475568
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(globalCustomCss) ? globalCustomCss.value = $event : null),
|
|
@@ -475891,7 +475787,7 @@ ${this.attributes_.map(
|
|
|
475891
475787
|
const _hoisted_3$c = { class: "flex items-center justify-between" };
|
|
475892
475788
|
const _hoisted_4$c = { class: "mb-5" };
|
|
475893
475789
|
const _hoisted_5$c = { class: "mb-3" };
|
|
475894
|
-
const _hoisted_6$
|
|
475790
|
+
const _hoisted_6$9 = {
|
|
475895
475791
|
key: 0,
|
|
475896
475792
|
class: "mb-3"
|
|
475897
475793
|
};
|
|
@@ -476467,7 +476363,7 @@ ${this.attributes_.map(
|
|
|
476467
476363
|
_: 1
|
|
476468
476364
|
}, 8, ["modelValue"])
|
|
476469
476365
|
]),
|
|
476470
|
-
printSettings.paperSize === "Custom" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
476366
|
+
printSettings.paperSize === "Custom" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$9, [
|
|
476471
476367
|
vue.createElementVNode("div", _hoisted_7$8, [
|
|
476472
476368
|
vue.createVNode(_component_el_input, {
|
|
476473
476369
|
modelValue: printSettings.customWidth,
|
|
@@ -476975,7 +476871,7 @@ ${this.attributes_.map(
|
|
|
476975
476871
|
const _hoisted_3$b = { key: 1 };
|
|
476976
476872
|
const _hoisted_4$b = { class: "layer-title" };
|
|
476977
476873
|
const _hoisted_5$b = ["onClick"];
|
|
476978
|
-
const _hoisted_6$
|
|
476874
|
+
const _hoisted_6$8 = { class: "property-key" };
|
|
476979
476875
|
const _hoisted_7$7 = { class: "property-value" };
|
|
476980
476876
|
const _hoisted_8$4 = ["innerHTML"];
|
|
476981
476877
|
const _hoisted_9$3 = { key: 3 };
|
|
@@ -477169,7 +477065,7 @@ ${this.attributes_.map(
|
|
|
477169
477065
|
key: key2,
|
|
477170
477066
|
class: "property-item"
|
|
477171
477067
|
}, [
|
|
477172
|
-
vue.createElementVNode("span", _hoisted_6$
|
|
477068
|
+
vue.createElementVNode("span", _hoisted_6$8, vue.toDisplayString(key2) + ":", 1),
|
|
477173
477069
|
vue.createElementVNode("span", _hoisted_7$7, vue.toDisplayString(formatValue(value)), 1)
|
|
477174
477070
|
]);
|
|
477175
477071
|
}), 128))
|
|
@@ -477216,15 +477112,17 @@ ${this.attributes_.map(
|
|
|
477216
477112
|
};
|
|
477217
477113
|
}
|
|
477218
477114
|
});
|
|
477219
|
-
const _hoisted_1$b = {
|
|
477220
|
-
|
|
477221
|
-
|
|
477222
|
-
|
|
477223
|
-
|
|
477224
|
-
|
|
477225
|
-
|
|
477226
|
-
const _hoisted_5$a = {
|
|
477227
|
-
|
|
477115
|
+
const _hoisted_1$b = { class: "flex items-center justify-between" };
|
|
477116
|
+
const _hoisted_2$a = { class: "max-h-50 overflow-y-auto p-2" };
|
|
477117
|
+
const _hoisted_3$a = { class: "flex-1 flex flex-col gap-0.5" };
|
|
477118
|
+
const _hoisted_4$a = {
|
|
477119
|
+
class: "text-xs",
|
|
477120
|
+
style: { "color": "var(--el-text-color-secondary)" }
|
|
477121
|
+
};
|
|
477122
|
+
const _hoisted_5$a = {
|
|
477123
|
+
class: "text-sm font-semibold font-mono",
|
|
477124
|
+
style: { "color": "var(--el-text-color-regular)" }
|
|
477125
|
+
};
|
|
477228
477126
|
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
477229
477127
|
__name: "OlMap",
|
|
477230
477128
|
props: {
|
|
@@ -478396,6 +478294,7 @@ ${this.attributes_.map(
|
|
|
478396
478294
|
var _a3;
|
|
478397
478295
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
478398
478296
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
478297
|
+
const _component_el_card = vue.resolveComponent("el-card");
|
|
478399
478298
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
478400
478299
|
class: vue.normalizeClass(["relative w-full h-full overflow-hidden", { "fixed top-0 left-0 w-screen h-screen z-9999": isFullscreen.value }])
|
|
478401
478300
|
}, [
|
|
@@ -478429,7 +478328,7 @@ ${this.attributes_.map(
|
|
|
478429
478328
|
formattedData,
|
|
478430
478329
|
coordinate,
|
|
478431
478330
|
pixel
|
|
478432
|
-
})
|
|
478331
|
+
}, void 0, true)
|
|
478433
478332
|
]),
|
|
478434
478333
|
_: 3
|
|
478435
478334
|
}, 8, ["config", "width", "height", "loading"]),
|
|
@@ -478518,20 +478417,19 @@ ${this.attributes_.map(
|
|
|
478518
478417
|
"left-offset": finalControlsConfig.value.leftOffset,
|
|
478519
478418
|
"right-offset": finalControlsConfig.value.rightOffset,
|
|
478520
478419
|
"top-offset": finalControlsConfig.value.topOffset,
|
|
478521
|
-
"bottom-offset": finalControlsConfig.value.bottomOffset
|
|
478522
|
-
class: "bg-white p-2 rounded-lg shadow-lg"
|
|
478420
|
+
"bottom-offset": finalControlsConfig.value.bottomOffset
|
|
478523
478421
|
}, {
|
|
478524
478422
|
custom: vue.withCtx(({ controls }) => [
|
|
478525
478423
|
vue.renderSlot(_ctx.$slots, "controls", {
|
|
478526
478424
|
controls,
|
|
478527
478425
|
map: map2.value
|
|
478528
|
-
})
|
|
478426
|
+
}, void 0, true)
|
|
478529
478427
|
]),
|
|
478530
478428
|
_: 3
|
|
478531
478429
|
}, 8, ["config", "position", "direction", "left-offset", "right-offset", "top-offset", "bottom-offset"])) : vue.createCommentVNode("", true),
|
|
478532
|
-
hasToolbarSlot.value ? vue.renderSlot(_ctx.$slots, "toolbar", { key: 5 }) : vue.createCommentVNode("", true),
|
|
478533
|
-
hasMapInfoSlot.value ? vue.renderSlot(_ctx.$slots, "mapInfo", { key: 6 }) : vue.createCommentVNode("", true),
|
|
478534
|
-
hasMapInfoSlot.value ? vue.renderSlot(_ctx.$slots, "map-info", { key: 7 }) : vue.createCommentVNode("", true),
|
|
478430
|
+
hasToolbarSlot.value ? vue.renderSlot(_ctx.$slots, "toolbar", { key: 5 }, void 0, true) : vue.createCommentVNode("", true),
|
|
478431
|
+
hasMapInfoSlot.value ? vue.renderSlot(_ctx.$slots, "mapInfo", { key: 6 }, void 0, true) : vue.createCommentVNode("", true),
|
|
478432
|
+
hasMapInfoSlot.value ? vue.renderSlot(_ctx.$slots, "map-info", { key: 7 }, void 0, true) : vue.createCommentVNode("", true),
|
|
478535
478433
|
finalEnableLayerPanel.value ? (vue.openBlock(), vue.createBlock(_sfc_main$f, {
|
|
478536
478434
|
key: 8,
|
|
478537
478435
|
modelValue: showLayerPanel.value,
|
|
@@ -478540,30 +478438,30 @@ ${this.attributes_.map(
|
|
|
478540
478438
|
hasLayerPanelSlot.value ? {
|
|
478541
478439
|
name: "default",
|
|
478542
478440
|
fn: vue.withCtx((panel) => [
|
|
478543
|
-
vue.renderSlot(_ctx.$slots, "layerPanel", vue.normalizeProps(vue.guardReactiveProps(panel))),
|
|
478544
|
-
vue.renderSlot(_ctx.$slots, "layer-panel", vue.normalizeProps(vue.guardReactiveProps(panel)))
|
|
478441
|
+
vue.renderSlot(_ctx.$slots, "layerPanel", vue.normalizeProps(vue.guardReactiveProps(panel)), void 0, true),
|
|
478442
|
+
vue.renderSlot(_ctx.$slots, "layer-panel", vue.normalizeProps(vue.guardReactiveProps(panel)), void 0, true)
|
|
478545
478443
|
]),
|
|
478546
478444
|
key: "0"
|
|
478547
478445
|
} : void 0,
|
|
478548
478446
|
hasLayerPanelTitleSlot.value ? {
|
|
478549
478447
|
name: "title",
|
|
478550
478448
|
fn: vue.withCtx(() => [
|
|
478551
|
-
vue.renderSlot(_ctx.$slots, "layerPanelTitle"),
|
|
478552
|
-
vue.renderSlot(_ctx.$slots, "layer-panel-title"),
|
|
478553
|
-
vue.renderSlot(_ctx.$slots, "title")
|
|
478449
|
+
vue.renderSlot(_ctx.$slots, "layerPanelTitle", {}, void 0, true),
|
|
478450
|
+
vue.renderSlot(_ctx.$slots, "layer-panel-title", {}, void 0, true),
|
|
478451
|
+
vue.renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
478554
478452
|
]),
|
|
478555
478453
|
key: "1"
|
|
478556
478454
|
} : void 0,
|
|
478557
478455
|
hasLayerPanelFooterSlot.value ? {
|
|
478558
478456
|
name: "footer",
|
|
478559
478457
|
fn: vue.withCtx((panel) => [
|
|
478560
|
-
vue.renderSlot(_ctx.$slots, "layerPanelFooter", vue.normalizeProps(vue.guardReactiveProps(panel))),
|
|
478561
|
-
vue.renderSlot(_ctx.$slots, "layer-panel-footer", vue.normalizeProps(vue.guardReactiveProps(panel)))
|
|
478458
|
+
vue.renderSlot(_ctx.$slots, "layerPanelFooter", vue.normalizeProps(vue.guardReactiveProps(panel)), void 0, true),
|
|
478459
|
+
vue.renderSlot(_ctx.$slots, "layer-panel-footer", vue.normalizeProps(vue.guardReactiveProps(panel)), void 0, true)
|
|
478562
478460
|
]),
|
|
478563
478461
|
key: "2"
|
|
478564
478462
|
} : void 0
|
|
478565
478463
|
]), 1032, ["modelValue"])) : vue.createCommentVNode("", true),
|
|
478566
|
-
showLegend.value ? (vue.openBlock(), vue.createBlock(
|
|
478464
|
+
showLegend.value ? (vue.openBlock(), vue.createBlock(OlLegendPanel, {
|
|
478567
478465
|
key: 9,
|
|
478568
478466
|
position: finalLegendPosition.value,
|
|
478569
478467
|
width: finalLegendWidth.value,
|
|
@@ -478575,42 +478473,55 @@ ${this.attributes_.map(
|
|
|
478575
478473
|
"top-offset": props.legendTopOffset,
|
|
478576
478474
|
"bottom-offset": props.legendBottomOffset
|
|
478577
478475
|
}, null, 8, ["position", "width", "collapsible", "default-collapsed", "show-only-visible", "left-offset", "right-offset", "top-offset", "bottom-offset"])) : vue.createCommentVNode("", true),
|
|
478578
|
-
hasLegendSlot.value ? vue.renderSlot(_ctx.$slots, "legend", { key: 10 }) : vue.createCommentVNode("", true),
|
|
478579
|
-
measurementResults.value.length > 0 ? (vue.openBlock(), vue.
|
|
478580
|
-
|
|
478581
|
-
|
|
478582
|
-
|
|
478583
|
-
|
|
478584
|
-
|
|
478585
|
-
|
|
478586
|
-
|
|
478587
|
-
|
|
478588
|
-
|
|
478589
|
-
|
|
478590
|
-
|
|
478591
|
-
|
|
478592
|
-
|
|
478476
|
+
hasLegendSlot.value ? vue.renderSlot(_ctx.$slots, "legend", { key: 10 }, void 0, true) : vue.createCommentVNode("", true),
|
|
478477
|
+
measurementResults.value.length > 0 ? (vue.openBlock(), vue.createBlock(_component_el_card, {
|
|
478478
|
+
key: 11,
|
|
478479
|
+
class: "measurement-card absolute top-15 right-2.5 w-62.5 max-h-75 z-1000 md:w-50 md:top-20 md:right-1.25",
|
|
478480
|
+
"body-style": { padding: "0px" },
|
|
478481
|
+
shadow: "always"
|
|
478482
|
+
}, {
|
|
478483
|
+
header: vue.withCtx(() => [
|
|
478484
|
+
vue.createElementVNode("div", _hoisted_1$b, [
|
|
478485
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("span", {
|
|
478486
|
+
class: "text-sm font-bold",
|
|
478487
|
+
style: { "color": "var(--el-text-color-primary)" }
|
|
478488
|
+
}, "测量结果", -1)),
|
|
478489
|
+
vue.createVNode(_component_el_button, {
|
|
478490
|
+
link: "",
|
|
478491
|
+
size: "small",
|
|
478492
|
+
onClick: clearAllMeasurements,
|
|
478493
|
+
icon: vue.unref(delete_default)
|
|
478494
|
+
}, {
|
|
478495
|
+
default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
478496
|
+
vue.createTextVNode(" 清除 ", -1)
|
|
478497
|
+
])]),
|
|
478498
|
+
_: 1
|
|
478499
|
+
}, 8, ["icon"])
|
|
478500
|
+
])
|
|
478593
478501
|
]),
|
|
478594
|
-
vue.
|
|
478595
|
-
|
|
478596
|
-
|
|
478597
|
-
|
|
478598
|
-
|
|
478599
|
-
|
|
478600
|
-
|
|
478601
|
-
vue.createElementVNode("
|
|
478602
|
-
|
|
478603
|
-
|
|
478604
|
-
|
|
478605
|
-
|
|
478606
|
-
|
|
478607
|
-
|
|
478608
|
-
|
|
478609
|
-
|
|
478610
|
-
|
|
478611
|
-
|
|
478612
|
-
|
|
478613
|
-
|
|
478502
|
+
default: vue.withCtx(() => [
|
|
478503
|
+
vue.createElementVNode("div", _hoisted_2$a, [
|
|
478504
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(measurementResults.value, (result, index2) => {
|
|
478505
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
478506
|
+
key: result.id,
|
|
478507
|
+
class: "measurement-item flex items-center justify-between px-3 py-2 mb-1 rounded transition-colors duration-200"
|
|
478508
|
+
}, [
|
|
478509
|
+
vue.createElementVNode("div", _hoisted_3$a, [
|
|
478510
|
+
vue.createElementVNode("span", _hoisted_4$a, vue.toDisplayString(result.type === "length" ? "长度" : "面积"), 1),
|
|
478511
|
+
vue.createElementVNode("span", _hoisted_5$a, vue.toDisplayString(formatMeasurementValue(result)), 1)
|
|
478512
|
+
]),
|
|
478513
|
+
vue.createVNode(_component_el_button, {
|
|
478514
|
+
link: "",
|
|
478515
|
+
size: "small",
|
|
478516
|
+
onClick: ($event) => removeMeasurement(result.id),
|
|
478517
|
+
icon: vue.unref(close_default)
|
|
478518
|
+
}, null, 8, ["onClick", "icon"])
|
|
478519
|
+
]);
|
|
478520
|
+
}), 128))
|
|
478521
|
+
])
|
|
478522
|
+
]),
|
|
478523
|
+
_: 1
|
|
478524
|
+
})) : vue.createCommentVNode("", true),
|
|
478614
478525
|
map2.value && ((_a3 = finalMapConfig.value.baseLayers) == null ? void 0 : _a3.length) ? (vue.openBlock(), vue.createBlock(OlBaseLayerSwitcher, {
|
|
478615
478526
|
key: 12,
|
|
478616
478527
|
map: map2.value,
|
|
@@ -478627,7 +478538,8 @@ ${this.attributes_.map(
|
|
|
478627
478538
|
};
|
|
478628
478539
|
}
|
|
478629
478540
|
});
|
|
478630
|
-
const
|
|
478541
|
+
const OlMap_vue_vue_type_style_index_0_scoped_736d12b7_lang = "";
|
|
478542
|
+
const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-736d12b7"]]);
|
|
478631
478543
|
const _hoisted_1$a = ["href"];
|
|
478632
478544
|
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
478633
478545
|
__name: "index",
|
|
@@ -499150,25 +499062,25 @@ ${this.attributes_.map(
|
|
|
499150
499062
|
}
|
|
499151
499063
|
};
|
|
499152
499064
|
const install = (app) => {
|
|
499153
|
-
app.component("OlMap",
|
|
499065
|
+
app.component("OlMap", OlMap);
|
|
499154
499066
|
app.component("OlMapContainer", _sfc_main$n);
|
|
499155
499067
|
app.component("OlDrawToolbar", OlDrawToolbar);
|
|
499156
499068
|
app.component("OlControlPanel", OlControlPanel);
|
|
499157
499069
|
app.component("OlMapSearch", _sfc_main$l);
|
|
499158
499070
|
app.component("OlMapTooltip", _sfc_main$c);
|
|
499159
|
-
app.component("OlLegendPanel",
|
|
499071
|
+
app.component("OlLegendPanel", OlLegendPanel);
|
|
499160
499072
|
app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
|
|
499161
|
-
app.component("CustomOpenlayer",
|
|
499073
|
+
app.component("CustomOpenlayer", OlMap);
|
|
499162
499074
|
app.component("CustomDialog", _sfc_main$9);
|
|
499163
|
-
app.component("EPlusDialog",
|
|
499075
|
+
app.component("EPlusDialog", X$1);
|
|
499164
499076
|
app.component("SvgIcon", _sfc_main$a);
|
|
499165
499077
|
};
|
|
499166
499078
|
const index$3 = {
|
|
499167
499079
|
install,
|
|
499168
|
-
OlMap
|
|
499169
|
-
CustomOpenlayer:
|
|
499080
|
+
OlMap,
|
|
499081
|
+
CustomOpenlayer: OlMap,
|
|
499170
499082
|
CustomDialog: _sfc_main$9,
|
|
499171
|
-
EPlusDialog:
|
|
499083
|
+
EPlusDialog: X$1,
|
|
499172
499084
|
SvgIcon: _sfc_main$a
|
|
499173
499085
|
};
|
|
499174
499086
|
const version$1 = "1.0.0";
|
|
@@ -500220,15 +500132,15 @@ ${this.attributes_.map(
|
|
|
500220
500132
|
const _component_el_option_group = vue.resolveComponent("el-option-group");
|
|
500221
500133
|
const _component_el_select = vue.resolveComponent("el-select");
|
|
500222
500134
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
500223
|
-
|
|
500224
|
-
return vue.openBlock(), vue.createBlock(_component_EPlusDialog, {
|
|
500135
|
+
return vue.openBlock(), vue.createBlock(vue.unref(X$1), {
|
|
500225
500136
|
modelValue: dialogVisible.value,
|
|
500226
500137
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
500227
500138
|
title: "图上量算",
|
|
500228
500139
|
width: "400px",
|
|
500229
500140
|
"before-close": handleClose,
|
|
500230
500141
|
"show-modal": false,
|
|
500231
|
-
cacheId: "measurement-dialog"
|
|
500142
|
+
cacheId: "measurement-dialog",
|
|
500143
|
+
"append-to-body": ""
|
|
500232
500144
|
}, {
|
|
500233
500145
|
default: vue.withCtx(() => [
|
|
500234
500146
|
vue.createElementVNode("div", _hoisted_1$8, [
|
|
@@ -500292,7 +500204,7 @@ ${this.attributes_.map(
|
|
|
500292
500204
|
type: "text",
|
|
500293
500205
|
size: "small",
|
|
500294
500206
|
onClick: clearMeasurement,
|
|
500295
|
-
style: { "color": "
|
|
500207
|
+
style: { "color": "var(--el-color-danger)" }
|
|
500296
500208
|
}, {
|
|
500297
500209
|
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
500298
500210
|
vue.createTextVNode(" 清除 ", -1)
|
|
@@ -500326,8 +500238,8 @@ ${this.attributes_.map(
|
|
|
500326
500238
|
};
|
|
500327
500239
|
}
|
|
500328
500240
|
});
|
|
500329
|
-
const
|
|
500330
|
-
const MeasurementDialog = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
500241
|
+
const MeasurementDialog_vue_vue_type_style_index_0_scoped_60e80f64_lang = "";
|
|
500242
|
+
const MeasurementDialog = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-60e80f64"]]);
|
|
500331
500243
|
const MeasurementDialog$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
500332
500244
|
__proto__: null,
|
|
500333
500245
|
default: MeasurementDialog
|
|
@@ -500563,8 +500475,7 @@ ${this.attributes_.map(
|
|
|
500563
500475
|
}
|
|
500564
500476
|
};
|
|
500565
500477
|
return (_ctx, _cache) => {
|
|
500566
|
-
|
|
500567
|
-
return vue.openBlock(), vue.createBlock(_component_EPlusDialog, {
|
|
500478
|
+
return vue.openBlock(), vue.createBlock(vue.unref(X$1), {
|
|
500568
500479
|
modelValue: visible.value,
|
|
500569
500480
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
500570
500481
|
title: "底图选择",
|
|
@@ -500573,10 +500484,10 @@ ${this.attributes_.map(
|
|
|
500573
500484
|
"show-modal": false,
|
|
500574
500485
|
draggable: true,
|
|
500575
500486
|
resizable: true,
|
|
500576
|
-
"show-close": true,
|
|
500577
500487
|
cacheId: "basemap-dialog",
|
|
500578
500488
|
position: "right",
|
|
500579
500489
|
class: "basemap-dialog",
|
|
500490
|
+
"append-to-body": "",
|
|
500580
500491
|
onClose: handleClose
|
|
500581
500492
|
}, {
|
|
500582
500493
|
default: vue.withCtx(() => [
|
|
@@ -500606,10 +500517,11 @@ ${this.attributes_.map(
|
|
|
500606
500517
|
};
|
|
500607
500518
|
}
|
|
500608
500519
|
});
|
|
500609
|
-
const
|
|
500610
|
-
const BasemapPanel = /* @__PURE__ */
|
|
500520
|
+
const BasemapPanel_vue_vue_type_style_index_0_scoped_75f232fd_lang = "";
|
|
500521
|
+
const BasemapPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-75f232fd"]]);
|
|
500522
|
+
const BasemapPanel$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
500611
500523
|
__proto__: null,
|
|
500612
|
-
default:
|
|
500524
|
+
default: BasemapPanel
|
|
500613
500525
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
500614
500526
|
const _hoisted_1$6 = { class: "coordinate-content" };
|
|
500615
500527
|
const _hoisted_2$6 = { class: "format-selection" };
|
|
@@ -513736,7 +513648,7 @@ ${this.attributes_.map(
|
|
|
513736
513648
|
exports2.BaseDrawing = BaseDrawing;
|
|
513737
513649
|
exports2.BasemapManager = BasemapManager;
|
|
513738
513650
|
exports2.CustomDialog = _sfc_main$9;
|
|
513739
|
-
exports2.CustomOpenlayer =
|
|
513651
|
+
exports2.CustomOpenlayer = OlMap;
|
|
513740
513652
|
exports2.DrawingFactoryRegistry = DrawingFactoryRegistry;
|
|
513741
513653
|
exports2.DrawingManager = DrawingManager;
|
|
513742
513654
|
exports2.DrawingManagerFactory = DrawingManagerFactory;
|
|
@@ -513766,8 +513678,8 @@ ${this.attributes_.map(
|
|
|
513766
513678
|
exports2.OlBaseLayerSwitcher = OlBaseLayerSwitcher;
|
|
513767
513679
|
exports2.OlControlPanel = OlControlPanel;
|
|
513768
513680
|
exports2.OlDrawToolbar = OlDrawToolbar;
|
|
513769
|
-
exports2.OlLegendPanel =
|
|
513770
|
-
exports2.OlMap =
|
|
513681
|
+
exports2.OlLegendPanel = OlLegendPanel;
|
|
513682
|
+
exports2.OlMap = OlMap;
|
|
513771
513683
|
exports2.OlMapContainer = _sfc_main$n;
|
|
513772
513684
|
exports2.OlMapSearch = _sfc_main$l;
|
|
513773
513685
|
exports2.OlMapTooltip = _sfc_main$c;
|