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
|
@@ -389,22 +389,6 @@ var _sfc_main106 = /* @__PURE__ */ defineComponent({
|
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
var flag_default = _sfc_main106;
|
|
392
|
-
var _sfc_main107 = /* @__PURE__ */ defineComponent({
|
|
393
|
-
name: "Fold",
|
|
394
|
-
__name: "fold",
|
|
395
|
-
setup(__props) {
|
|
396
|
-
return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
|
|
397
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
398
|
-
viewBox: "0 0 1024 1024"
|
|
399
|
-
}, [
|
|
400
|
-
createElementVNode("path", {
|
|
401
|
-
fill: "currentColor",
|
|
402
|
-
d: "M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"
|
|
403
|
-
})
|
|
404
|
-
]));
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
var fold_default = _sfc_main107;
|
|
408
392
|
var _sfc_main111 = /* @__PURE__ */ defineComponent({
|
|
409
393
|
name: "FolderOpened",
|
|
410
394
|
__name: "folder-opened",
|
|
@@ -80062,21 +80046,6 @@ let BaseLayer$2 = class BaseLayer2 {
|
|
|
80062
80046
|
this.layer.setOpacity(normalizedOpacity);
|
|
80063
80047
|
}
|
|
80064
80048
|
}
|
|
80065
|
-
/**
|
|
80066
|
-
* 设置图层层级
|
|
80067
|
-
*/
|
|
80068
|
-
setZIndex(zIndex2) {
|
|
80069
|
-
if (this.layer) {
|
|
80070
|
-
this.layer.setZIndex(zIndex2);
|
|
80071
|
-
}
|
|
80072
|
-
}
|
|
80073
|
-
/**
|
|
80074
|
-
* 获取当前图层层级
|
|
80075
|
-
*/
|
|
80076
|
-
getZIndex() {
|
|
80077
|
-
var _a3;
|
|
80078
|
-
return (_a3 = this.layer) == null ? void 0 : _a3.getZIndex();
|
|
80079
|
-
}
|
|
80080
80049
|
/**
|
|
80081
80050
|
* 设置图层可见性
|
|
80082
80051
|
*/
|
|
@@ -110869,7 +110838,7 @@ function N$3(A5, g2) {
|
|
|
110869
110838
|
function r$2(A5) {
|
|
110870
110839
|
return y$7(A5)[3];
|
|
110871
110840
|
}
|
|
110872
|
-
var Y$
|
|
110841
|
+
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 };
|
|
110873
110842
|
function H$2(A5, g2) {
|
|
110874
110843
|
if (A5.filter)
|
|
110875
110844
|
return A5.filter(g2);
|
|
@@ -110882,7 +110851,7 @@ var R$4 = "b" === "ab".substr(-1) ? function(A5, g2, I2) {
|
|
|
110882
110851
|
} : function(A5, g2, I2) {
|
|
110883
110852
|
return g2 < 0 && (g2 = A5.length + g2), A5.substr(g2, I2);
|
|
110884
110853
|
};
|
|
110885
|
-
var 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$
|
|
110854
|
+
var 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 }));
|
|
110886
110855
|
!function(A5, g2) {
|
|
110887
110856
|
var I2 = function(g3) {
|
|
110888
110857
|
g3 = void 0 !== g3 ? g3 : {};
|
|
@@ -297490,10 +297459,10 @@ var H$1 = function(e8) {
|
|
|
297490
297459
|
};
|
|
297491
297460
|
var W$1 = /^\[object .+?Constructor\]$/;
|
|
297492
297461
|
var q$1 = Function.prototype;
|
|
297493
|
-
var Y$
|
|
297462
|
+
var Y$1 = Object.prototype;
|
|
297494
297463
|
var J$1 = q$1.toString;
|
|
297495
|
-
var X$
|
|
297496
|
-
var K$1 = RegExp("^" + J$1.call(X$
|
|
297464
|
+
var X$2 = Y$1.hasOwnProperty;
|
|
297465
|
+
var K$1 = RegExp("^" + J$1.call(X$2).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
297497
297466
|
var Q$1 = function(e8) {
|
|
297498
297467
|
return !(!D$2(e8) || V$2(e8)) && (z$2(e8) ? K$1 : W$1).test(H$1(e8));
|
|
297499
297468
|
};
|
|
@@ -297506,7 +297475,7 @@ var ee$1 = function(e8, n2) {
|
|
|
297506
297475
|
};
|
|
297507
297476
|
var ne$1 = ee$1(k$1, "Map");
|
|
297508
297477
|
var te$1 = ee$1(Object, "create");
|
|
297509
|
-
var re$
|
|
297478
|
+
var re$2 = function() {
|
|
297510
297479
|
this.__data__ = te$1 ? te$1(null) : {}, this.size = 0;
|
|
297511
297480
|
};
|
|
297512
297481
|
var oe$1 = function(e8) {
|
|
@@ -297538,7 +297507,7 @@ function de$2(e8) {
|
|
|
297538
297507
|
this.set(r2[0], r2[1]);
|
|
297539
297508
|
}
|
|
297540
297509
|
}
|
|
297541
|
-
de$2.prototype.clear = re$
|
|
297510
|
+
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;
|
|
297542
297511
|
var fe$2 = de$2;
|
|
297543
297512
|
var he$2 = function() {
|
|
297544
297513
|
this.size = 0, this.__data__ = { hash: new fe$2(), map: new (ne$1 || w$1)(), string: new fe$2() };
|
|
@@ -297547,22 +297516,22 @@ var le$1 = function(e8) {
|
|
|
297547
297516
|
var n2 = typeof e8;
|
|
297548
297517
|
return "string" == n2 || "number" == n2 || "symbol" == n2 || "boolean" == n2 ? "__proto__" !== e8 : null === e8;
|
|
297549
297518
|
};
|
|
297550
|
-
var ve$
|
|
297519
|
+
var ve$1 = function(e8, n2) {
|
|
297551
297520
|
var t3 = e8.__data__;
|
|
297552
297521
|
return le$1(n2) ? t3["string" == typeof n2 ? "string" : "hash"] : t3.map;
|
|
297553
297522
|
};
|
|
297554
297523
|
var pe$2 = function(e8) {
|
|
297555
|
-
var n2 = ve$
|
|
297524
|
+
var n2 = ve$1(this, e8).delete(e8);
|
|
297556
297525
|
return this.size -= n2 ? 1 : 0, n2;
|
|
297557
297526
|
};
|
|
297558
297527
|
var ge$2 = function(e8) {
|
|
297559
|
-
return ve$
|
|
297528
|
+
return ve$1(this, e8).get(e8);
|
|
297560
297529
|
};
|
|
297561
297530
|
var ye$1 = function(e8) {
|
|
297562
|
-
return ve$
|
|
297531
|
+
return ve$1(this, e8).has(e8);
|
|
297563
297532
|
};
|
|
297564
297533
|
var be$1 = function(e8, n2) {
|
|
297565
|
-
var t3 = ve$
|
|
297534
|
+
var t3 = ve$1(this, e8), r2 = t3.size;
|
|
297566
297535
|
return t3.set(e8, n2), this.size += t3.size == r2 ? 0 : 1, this;
|
|
297567
297536
|
};
|
|
297568
297537
|
function me$2(e8) {
|
|
@@ -466359,7 +466328,7 @@ const _hoisted_3$d = {
|
|
|
466359
466328
|
};
|
|
466360
466329
|
const _hoisted_4$c = { class: "image-popup-main" };
|
|
466361
466330
|
const _hoisted_5$c = { class: "image-container" };
|
|
466362
|
-
const _hoisted_6$
|
|
466331
|
+
const _hoisted_6$9 = ["src", "alt"];
|
|
466363
466332
|
const _hoisted_7$9 = {
|
|
466364
466333
|
key: 0,
|
|
466365
466334
|
class: "image-loading"
|
|
@@ -466382,12 +466351,12 @@ const _hoisted_11$7 = {
|
|
|
466382
466351
|
};
|
|
466383
466352
|
const _hoisted_12$7 = ["onClick"];
|
|
466384
466353
|
const _hoisted_13$7 = ["src", "alt"];
|
|
466385
|
-
const _hoisted_14$
|
|
466354
|
+
const _hoisted_14$5 = {
|
|
466386
466355
|
key: 3,
|
|
466387
466356
|
class: "slideshow-controls"
|
|
466388
466357
|
};
|
|
466389
|
-
const _hoisted_15$
|
|
466390
|
-
const _hoisted_16$
|
|
466358
|
+
const _hoisted_15$4 = { class: "fullscreen-container" };
|
|
466359
|
+
const _hoisted_16$4 = ["src", "alt"];
|
|
466391
466360
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
466392
466361
|
__name: "ImagePopup",
|
|
466393
466362
|
props: {
|
|
@@ -466544,7 +466513,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
466544
466513
|
onLoad: handleImageLoad,
|
|
466545
466514
|
onError: handleImageError,
|
|
466546
466515
|
onClick: handleImageClick
|
|
466547
|
-
}, null, 40, _hoisted_6$
|
|
466516
|
+
}, null, 40, _hoisted_6$9),
|
|
466548
466517
|
imageLoading.value ? (openBlock(), createElementBlock("div", _hoisted_7$9, [..._cache[4] || (_cache[4] = [
|
|
466549
466518
|
createElementVNode("div", { class: "loading-spinner" }, null, -1),
|
|
466550
466519
|
createElementVNode("span", null, "加载中...", -1)
|
|
@@ -466595,7 +466564,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
466595
466564
|
], 10, _hoisted_12$7);
|
|
466596
466565
|
}), 128))
|
|
466597
466566
|
])) : createCommentVNode("", true),
|
|
466598
|
-
_ctx.config.slideshow && imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_14$
|
|
466567
|
+
_ctx.config.slideshow && imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_14$5, [
|
|
466599
466568
|
createVNode$1(unref(ElButton), {
|
|
466600
466569
|
class: normalizeClass(["slideshow-btn", { active: isSlideshow.value }]),
|
|
466601
466570
|
onClick: toggleSlideshow,
|
|
@@ -466614,14 +466583,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
466614
466583
|
class: "image-fullscreen",
|
|
466615
466584
|
onClick: closeFullscreen
|
|
466616
466585
|
}, [
|
|
466617
|
-
createElementVNode("div", _hoisted_15$
|
|
466586
|
+
createElementVNode("div", _hoisted_15$4, [
|
|
466618
466587
|
createElementVNode("img", {
|
|
466619
466588
|
src: currentImage.value,
|
|
466620
466589
|
alt: `全屏图片 ${currentIndex.value + 1}`,
|
|
466621
466590
|
class: "fullscreen-image",
|
|
466622
466591
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
466623
466592
|
}, ["stop"]))
|
|
466624
|
-
}, null, 8, _hoisted_16$
|
|
466593
|
+
}, null, 8, _hoisted_16$4),
|
|
466625
466594
|
createVNode$1(unref(ElButton), {
|
|
466626
466595
|
class: "fullscreen-close",
|
|
466627
466596
|
onClick: closeFullscreen,
|
|
@@ -466659,7 +466628,7 @@ const _hoisted_5$b = {
|
|
|
466659
466628
|
key: 3,
|
|
466660
466629
|
class: "search-container"
|
|
466661
466630
|
};
|
|
466662
|
-
const _hoisted_6$
|
|
466631
|
+
const _hoisted_6$8 = {
|
|
466663
466632
|
key: 4,
|
|
466664
466633
|
class: "data-stats"
|
|
466665
466634
|
};
|
|
@@ -466676,19 +466645,19 @@ const _hoisted_12$6 = {
|
|
|
466676
466645
|
class: "sort-indicator"
|
|
466677
466646
|
};
|
|
466678
466647
|
const _hoisted_13$6 = ["onClick"];
|
|
466679
|
-
const _hoisted_14$
|
|
466680
|
-
const _hoisted_15$
|
|
466681
|
-
const _hoisted_16$
|
|
466682
|
-
const _hoisted_17$
|
|
466683
|
-
const _hoisted_18$
|
|
466684
|
-
const _hoisted_19$
|
|
466685
|
-
const _hoisted_20$
|
|
466686
|
-
const _hoisted_21$
|
|
466648
|
+
const _hoisted_14$4 = { key: 0 };
|
|
466649
|
+
const _hoisted_15$3 = ["src", "alt"];
|
|
466650
|
+
const _hoisted_16$3 = { key: 1 };
|
|
466651
|
+
const _hoisted_17$3 = ["href"];
|
|
466652
|
+
const _hoisted_18$3 = { key: 2 };
|
|
466653
|
+
const _hoisted_19$2 = { key: 3 };
|
|
466654
|
+
const _hoisted_20$2 = { key: 4 };
|
|
466655
|
+
const _hoisted_21$2 = {
|
|
466687
466656
|
key: 6,
|
|
466688
466657
|
class: "list-view"
|
|
466689
466658
|
};
|
|
466690
|
-
const _hoisted_22$
|
|
466691
|
-
const _hoisted_23$
|
|
466659
|
+
const _hoisted_22$1 = ["onClick"];
|
|
466660
|
+
const _hoisted_23$1 = { class: "field-label" };
|
|
466692
466661
|
const _hoisted_24$1 = { class: "field-value" };
|
|
466693
466662
|
const _hoisted_25$1 = ["src", "alt"];
|
|
466694
466663
|
const _hoisted_26$1 = ["href"];
|
|
@@ -466923,7 +466892,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
466923
466892
|
clearable: ""
|
|
466924
466893
|
}, null, 8, ["modelValue"])
|
|
466925
466894
|
])) : createCommentVNode("", true),
|
|
466926
|
-
_ctx.config.showStats ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
466895
|
+
_ctx.config.showStats ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
466927
466896
|
createElementVNode("span", null, "共 " + toDisplayString(filteredData.value.length) + " 条记录", 1),
|
|
466928
466897
|
searchQuery.value ? (openBlock(), createElementBlock("span", _hoisted_7$8, "(已过滤 " + toDisplayString(arrayData.value.length - filteredData.value.length) + " 条)", 1)) : createCommentVNode("", true)
|
|
466929
466898
|
])) : createCommentVNode("", true),
|
|
@@ -466954,19 +466923,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
466954
466923
|
return openBlock(), createElementBlock("td", {
|
|
466955
466924
|
key: field.key
|
|
466956
466925
|
}, [
|
|
466957
|
-
field.type === "image" ? (openBlock(), createElementBlock("span", _hoisted_14$
|
|
466926
|
+
field.type === "image" ? (openBlock(), createElementBlock("span", _hoisted_14$4, [
|
|
466958
466927
|
createElementVNode("img", {
|
|
466959
466928
|
src: getFieldValue(item, field.key || field.name),
|
|
466960
466929
|
alt: field.label,
|
|
466961
466930
|
class: "table-image"
|
|
466962
|
-
}, null, 8, _hoisted_15$
|
|
466963
|
-
])) : field.type === "link" ? (openBlock(), createElementBlock("span", _hoisted_16$
|
|
466931
|
+
}, null, 8, _hoisted_15$3)
|
|
466932
|
+
])) : field.type === "link" ? (openBlock(), createElementBlock("span", _hoisted_16$3, [
|
|
466964
466933
|
createElementVNode("a", {
|
|
466965
466934
|
href: getFieldValue(item, field.key || field.name),
|
|
466966
466935
|
target: "_blank",
|
|
466967
466936
|
class: "table-link"
|
|
466968
|
-
}, toDisplayString(getFieldValue(item, field.key || field.name)), 9, _hoisted_17$
|
|
466969
|
-
])) : field.type === "date" ? (openBlock(), createElementBlock("span", _hoisted_18$
|
|
466937
|
+
}, toDisplayString(getFieldValue(item, field.key || field.name)), 9, _hoisted_17$3)
|
|
466938
|
+
])) : field.type === "date" ? (openBlock(), createElementBlock("span", _hoisted_18$3, toDisplayString(formatDate(getFieldValue(item, field.key || field.name))), 1)) : field.type === "number" ? (openBlock(), createElementBlock("span", _hoisted_19$2, toDisplayString(formatNumber2(getFieldValue(item, field.key || field.name))), 1)) : (openBlock(), createElementBlock("span", _hoisted_20$2, toDisplayString(getFieldValue(item, field.key || field.name)), 1))
|
|
466970
466939
|
]);
|
|
466971
466940
|
}), 128))
|
|
466972
466941
|
], 8, _hoisted_13$6);
|
|
@@ -466975,7 +466944,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
466975
466944
|
])
|
|
466976
466945
|
])
|
|
466977
466946
|
])) : createCommentVNode("", true),
|
|
466978
|
-
currentView.value === "list" ? (openBlock(), createElementBlock("div", _hoisted_21$
|
|
466947
|
+
currentView.value === "list" ? (openBlock(), createElementBlock("div", _hoisted_21$2, [
|
|
466979
466948
|
(openBlock(true), createElementBlock(Fragment, null, renderList(paginatedData.value, (item, index2) => {
|
|
466980
466949
|
return openBlock(), createElementBlock("div", {
|
|
466981
466950
|
key: index2,
|
|
@@ -466987,7 +466956,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
466987
466956
|
key: field.key,
|
|
466988
466957
|
class: "list-field"
|
|
466989
466958
|
}, [
|
|
466990
|
-
createElementVNode("span", _hoisted_23$
|
|
466959
|
+
createElementVNode("span", _hoisted_23$1, toDisplayString(field.label) + ":", 1),
|
|
466991
466960
|
createElementVNode("span", _hoisted_24$1, [
|
|
466992
466961
|
field.type === "image" ? (openBlock(), createElementBlock("img", {
|
|
466993
466962
|
key: 0,
|
|
@@ -467003,7 +466972,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
467003
466972
|
])
|
|
467004
466973
|
]);
|
|
467005
466974
|
}), 128))
|
|
467006
|
-
], 8, _hoisted_22$
|
|
466975
|
+
], 8, _hoisted_22$1);
|
|
467007
466976
|
}), 128))
|
|
467008
466977
|
])) : createCommentVNode("", true),
|
|
467009
466978
|
currentView.value === "card" ? (openBlock(), createElementBlock("div", _hoisted_30$1, [
|
|
@@ -468745,16 +468714,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
468745
468714
|
}
|
|
468746
468715
|
});
|
|
468747
468716
|
const defaultComponents = {
|
|
468748
|
-
"measurement": () => import("./MeasurementDialog-
|
|
468749
|
-
"basemap": () => import("./BasemapPanel-
|
|
468750
|
-
"print": () => import("./MapPrintDialog-
|
|
468751
|
-
"layer-panel": () => import("./LayerPanel-
|
|
468752
|
-
"coordinate": () => import("./CoordinateLocationDialog-
|
|
468717
|
+
"measurement": () => import("./MeasurementDialog-7fce097a.mjs"),
|
|
468718
|
+
"basemap": () => import("./BasemapPanel-cba3afd6.mjs"),
|
|
468719
|
+
"print": () => import("./MapPrintDialog-03c0823b.mjs"),
|
|
468720
|
+
"layer-panel": () => import("./LayerPanel-be35370b.mjs"),
|
|
468721
|
+
"coordinate": () => import("./CoordinateLocationDialog-6e8a5f24.mjs"),
|
|
468753
468722
|
"region-navigation": () => import("./RegionNavigationDialog-0808549f.mjs"),
|
|
468754
|
-
"my-markers": () => import("./MyMarkersDialog-
|
|
468755
|
-
"view-bookmarks": () => import("./ViewBookmarksDialog-
|
|
468756
|
-
"map-drawing": () => import("./index-
|
|
468757
|
-
"filter-panel": () => import("./FilterPanel-
|
|
468723
|
+
"my-markers": () => import("./MyMarkersDialog-7dd24d9a.mjs"),
|
|
468724
|
+
"view-bookmarks": () => import("./ViewBookmarksDialog-60c9e851.mjs"),
|
|
468725
|
+
"map-drawing": () => import("./index-7aae577e.mjs"),
|
|
468726
|
+
"filter-panel": () => import("./FilterPanel-9a8e2aca.mjs")
|
|
468758
468727
|
};
|
|
468759
468728
|
const _DialogRegistry = class _DialogRegistry {
|
|
468760
468729
|
constructor() {
|
|
@@ -469133,7 +469102,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
469133
469102
|
}
|
|
469134
469103
|
return target;
|
|
469135
469104
|
};
|
|
469136
|
-
const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
469105
|
+
const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-b8c938a3"]]);
|
|
469137
469106
|
const TIANDITU_CONFIG = {
|
|
469138
469107
|
baseUrl: "https://api.tianditu.gov.cn/v2/search",
|
|
469139
469108
|
key: "9a7244dd5d1a1299a52946a3d0f8ff68"
|
|
@@ -469864,7 +469833,7 @@ const _hoisted_3$a = {
|
|
|
469864
469833
|
};
|
|
469865
469834
|
const _hoisted_4$a = { class: "section-title" };
|
|
469866
469835
|
const _hoisted_5$a = ["onClick"];
|
|
469867
|
-
const _hoisted_6$
|
|
469836
|
+
const _hoisted_6$7 = { class: "item-content" };
|
|
469868
469837
|
const _hoisted_7$7 = { class: "item-name" };
|
|
469869
469838
|
const _hoisted_8$7 = { class: "item-address" };
|
|
469870
469839
|
const _hoisted_9$6 = {
|
|
@@ -469878,17 +469847,17 @@ const _hoisted_10$6 = {
|
|
|
469878
469847
|
const _hoisted_11$5 = { class: "result-count" };
|
|
469879
469848
|
const _hoisted_12$5 = ["onClick"];
|
|
469880
469849
|
const _hoisted_13$5 = { class: "item-content" };
|
|
469881
|
-
const _hoisted_14$
|
|
469882
|
-
const _hoisted_15$
|
|
469883
|
-
const _hoisted_16$
|
|
469850
|
+
const _hoisted_14$3 = ["innerHTML"];
|
|
469851
|
+
const _hoisted_15$2 = ["innerHTML"];
|
|
469852
|
+
const _hoisted_16$2 = {
|
|
469884
469853
|
key: 0,
|
|
469885
469854
|
class: "item-type"
|
|
469886
469855
|
};
|
|
469887
|
-
const _hoisted_17$
|
|
469856
|
+
const _hoisted_17$2 = {
|
|
469888
469857
|
key: 0,
|
|
469889
469858
|
class: "item-confidence"
|
|
469890
469859
|
};
|
|
469891
|
-
const _hoisted_18$
|
|
469860
|
+
const _hoisted_18$2 = {
|
|
469892
469861
|
key: 0,
|
|
469893
469862
|
class: "no-results"
|
|
469894
469863
|
};
|
|
@@ -470239,7 +470208,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
470239
470208
|
]),
|
|
470240
470209
|
_: 1
|
|
470241
470210
|
}),
|
|
470242
|
-
createElementVNode("div", _hoisted_6$
|
|
470211
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
470243
470212
|
createElementVNode("div", _hoisted_7$7, toDisplayString(item.name), 1),
|
|
470244
470213
|
createElementVNode("div", _hoisted_8$7, toDisplayString(item.address), 1)
|
|
470245
470214
|
])
|
|
@@ -470281,14 +470250,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
470281
470250
|
createElementVNode("div", {
|
|
470282
470251
|
class: "item-name",
|
|
470283
470252
|
innerHTML: highlightText(result.name, searchQuery.value)
|
|
470284
|
-
}, null, 8, _hoisted_14$
|
|
470253
|
+
}, null, 8, _hoisted_14$3),
|
|
470285
470254
|
createElementVNode("div", {
|
|
470286
470255
|
class: "item-address",
|
|
470287
470256
|
innerHTML: highlightText(result.address, searchQuery.value)
|
|
470288
|
-
}, null, 8, _hoisted_15$
|
|
470289
|
-
result.type ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
470257
|
+
}, null, 8, _hoisted_15$2),
|
|
470258
|
+
result.type ? (openBlock(), createElementBlock("div", _hoisted_16$2, toDisplayString(result.type), 1)) : createCommentVNode("", true)
|
|
470290
470259
|
]),
|
|
470291
|
-
result.confidence ? (openBlock(), createElementBlock("div", _hoisted_17$
|
|
470260
|
+
result.confidence ? (openBlock(), createElementBlock("div", _hoisted_17$2, toDisplayString(Math.round(result.confidence * 100)) + "%", 1)) : createCommentVNode("", true)
|
|
470292
470261
|
], 10, _hoisted_12$5)
|
|
470293
470262
|
]);
|
|
470294
470263
|
}), 128))
|
|
@@ -470298,7 +470267,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
470298
470267
|
searchResults: searchResults.value,
|
|
470299
470268
|
isLoading: isLoading.value
|
|
470300
470269
|
}, () => [
|
|
470301
|
-
searchQuery.value && searchResults.value.length === 0 && !isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_18$
|
|
470270
|
+
searchQuery.value && searchResults.value.length === 0 && !isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_18$2, [
|
|
470302
470271
|
createVNode$1(unref(ElIcon), null, {
|
|
470303
470272
|
default: withCtx(() => [
|
|
470304
470273
|
createVNode$1(unref(info_filled_default))
|
|
@@ -470994,366 +470963,289 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
470994
470963
|
};
|
|
470995
470964
|
}
|
|
470996
470965
|
});
|
|
470997
|
-
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
470998
|
-
const _hoisted_1$a = { class: "
|
|
470999
|
-
const _hoisted_2$9 = { class: "
|
|
471000
|
-
const _hoisted_3$9 = { class: "
|
|
471001
|
-
const _hoisted_4$9 =
|
|
471002
|
-
const _hoisted_5$9 = { class: "legend-content
|
|
471003
|
-
const _hoisted_6$
|
|
471004
|
-
|
|
471005
|
-
|
|
471006
|
-
const _hoisted_9$5 = { class: "text-xs text-gray-600" };
|
|
471007
|
-
const _hoisted_10$5 = { key: 2 };
|
|
471008
|
-
const _hoisted_11$4 = { class: "relative mb-2" };
|
|
471009
|
-
const _hoisted_12$4 = { class: "flex justify-between mt-1 text-xs text-gray-500" };
|
|
471010
|
-
const _hoisted_13$4 = { class: "text-center text-xs text-gray-500" };
|
|
471011
|
-
const _hoisted_14$3 = { key: 3 };
|
|
471012
|
-
const _hoisted_15$2 = { class: "flex-1 text-xs text-gray-600" };
|
|
471013
|
-
const _hoisted_16$2 = { key: 4 };
|
|
471014
|
-
const _hoisted_17$2 = ["src", "alt"];
|
|
471015
|
-
const _hoisted_18$2 = {
|
|
471016
|
-
key: 1,
|
|
471017
|
-
class: "w-4 h-4 mr-2 border border-gray-300 rounded-sm bg-gray-100"
|
|
470966
|
+
const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-2fc6cae7"]]);
|
|
470967
|
+
const _hoisted_1$a = { class: "ol-legend-header" };
|
|
470968
|
+
const _hoisted_2$9 = { class: "header-actions" };
|
|
470969
|
+
const _hoisted_3$9 = { class: "ol-legend-body custom-scrollbar" };
|
|
470970
|
+
const _hoisted_4$9 = ["title"];
|
|
470971
|
+
const _hoisted_5$9 = { class: "legend-content" };
|
|
470972
|
+
const _hoisted_6$6 = {
|
|
470973
|
+
key: 0,
|
|
470974
|
+
class: "legend-gradient-box"
|
|
471018
470975
|
};
|
|
471019
|
-
const
|
|
471020
|
-
const
|
|
471021
|
-
key:
|
|
471022
|
-
class: "
|
|
470976
|
+
const _hoisted_7$6 = { class: "gradient-labels" };
|
|
470977
|
+
const _hoisted_8$6 = {
|
|
470978
|
+
key: 0,
|
|
470979
|
+
class: "gradient-unit"
|
|
471023
470980
|
};
|
|
471024
|
-
const
|
|
471025
|
-
const
|
|
471026
|
-
|
|
471027
|
-
|
|
470981
|
+
const _hoisted_9$5 = ["innerHTML"];
|
|
470982
|
+
const _hoisted_10$5 = ["src"];
|
|
470983
|
+
const _hoisted_11$4 = ["title"];
|
|
470984
|
+
const _hoisted_12$4 = {
|
|
470985
|
+
key: 3,
|
|
470986
|
+
class: "legend-desc"
|
|
471028
470987
|
};
|
|
471029
|
-
const
|
|
470988
|
+
const _hoisted_13$4 = {
|
|
471030
470989
|
key: 1,
|
|
471031
|
-
class: "
|
|
470990
|
+
class: "empty-state"
|
|
471032
470991
|
};
|
|
471033
470992
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
471034
470993
|
__name: "OlLegendPanel",
|
|
471035
470994
|
props: {
|
|
471036
|
-
position: { default: "
|
|
471037
|
-
width: { default:
|
|
471038
|
-
collapsible: { type: Boolean, default: true },
|
|
470995
|
+
position: { default: "left" },
|
|
470996
|
+
width: { default: 260 },
|
|
471039
470997
|
defaultCollapsed: { type: Boolean, default: false },
|
|
471040
470998
|
showOnlyVisible: { type: Boolean, default: true },
|
|
471041
|
-
|
|
471042
|
-
|
|
471043
|
-
|
|
471044
|
-
|
|
471045
|
-
bottomOffset: { default: void 0 }
|
|
470999
|
+
leftOffset: {},
|
|
471000
|
+
rightOffset: {},
|
|
471001
|
+
topOffset: {},
|
|
471002
|
+
bottomOffset: {}
|
|
471046
471003
|
},
|
|
471047
|
-
|
|
471048
|
-
setup(__props, { emit: __emit }) {
|
|
471004
|
+
setup(__props) {
|
|
471049
471005
|
const props = __props;
|
|
471050
|
-
const activeNames = ref([]);
|
|
471051
471006
|
const isCollapsed = ref(props.defaultCollapsed);
|
|
471052
|
-
const
|
|
471007
|
+
const activeNames = ref([]);
|
|
471053
471008
|
const legends = ref([]);
|
|
471054
|
-
const
|
|
471055
|
-
console.log("Layers initialized, updating legends", layers);
|
|
471056
|
-
initializeLegendsFromConfig(layers);
|
|
471057
|
-
};
|
|
471058
|
-
layerEventBus.on("layers-initialized", handleLayersInitialized);
|
|
471009
|
+
const visibleLayerIds = ref([]);
|
|
471059
471010
|
const panelStyle = computed(() => {
|
|
471060
|
-
const
|
|
471061
|
-
width: `${props.width}px
|
|
471011
|
+
const style = {
|
|
471012
|
+
width: `${props.width}px`,
|
|
471013
|
+
backgroundColor: "var(--el-bg-color-overlay)",
|
|
471014
|
+
backdropFilter: "blur(10px)"
|
|
471015
|
+
};
|
|
471016
|
+
const setOffset = (key, value) => {
|
|
471017
|
+
if (value !== void 0)
|
|
471018
|
+
style[key] = typeof value === "number" ? `${value}px` : value;
|
|
471019
|
+
};
|
|
471020
|
+
setOffset("top", props.topOffset);
|
|
471021
|
+
setOffset("bottom", props.bottomOffset);
|
|
471022
|
+
if (props.leftOffset !== void 0)
|
|
471023
|
+
setOffset("left", props.leftOffset);
|
|
471024
|
+
else if (props.rightOffset !== void 0)
|
|
471025
|
+
setOffset("right", props.rightOffset);
|
|
471026
|
+
else
|
|
471027
|
+
style[props.position] = "20px";
|
|
471028
|
+
if (!style.top && !style.bottom)
|
|
471029
|
+
style.bottom = "100px";
|
|
471030
|
+
return style;
|
|
471031
|
+
});
|
|
471032
|
+
const visibleLegends = computed(() => {
|
|
471033
|
+
const list2 = props.showOnlyVisible ? legends.value.filter((l2) => visibleLayerIds.value.includes(l2.layerId)) : legends.value;
|
|
471034
|
+
return list2;
|
|
471035
|
+
});
|
|
471036
|
+
const shouldShowLegend = computed(() => visibleLegends.value.length > 0);
|
|
471037
|
+
const getGradientStyle = (legend) => {
|
|
471038
|
+
var _a3;
|
|
471039
|
+
if ((_a3 = legend.colors) == null ? void 0 : _a3.length) {
|
|
471040
|
+
return { background: `linear-gradient(to right, ${legend.colors.join(", ")})` };
|
|
471041
|
+
}
|
|
471042
|
+
return {};
|
|
471043
|
+
};
|
|
471044
|
+
const getIconWrapperStyle = (type, item) => {
|
|
471045
|
+
const size2 = item.size || 16;
|
|
471046
|
+
return {
|
|
471047
|
+
width: `${size2}px`,
|
|
471048
|
+
height: `${size2}px`,
|
|
471049
|
+
minWidth: `${size2}px`
|
|
471050
|
+
// 防止压缩
|
|
471062
471051
|
};
|
|
471063
|
-
|
|
471064
|
-
|
|
471065
|
-
|
|
471066
|
-
|
|
471052
|
+
};
|
|
471053
|
+
const getSymbolInnerStyle = (type, item) => {
|
|
471054
|
+
const style = {
|
|
471055
|
+
width: "100%",
|
|
471056
|
+
height: "100%",
|
|
471057
|
+
backgroundColor: item.color || "#ccc"
|
|
471058
|
+
};
|
|
471059
|
+
if (type === "symbol" && item.shape) {
|
|
471060
|
+
if (item.shape === "circle")
|
|
471061
|
+
style.borderRadius = "50%";
|
|
471062
|
+
else if (item.shape === "triangle")
|
|
471063
|
+
style.clipPath = "polygon(50% 0%, 0% 100%, 100% 100%)";
|
|
471064
|
+
else
|
|
471065
|
+
style.borderRadius = "2px";
|
|
471067
471066
|
} else {
|
|
471068
|
-
|
|
471069
|
-
}
|
|
471070
|
-
if (props.topOffset !== void 0) {
|
|
471071
|
-
styles.top = typeof props.topOffset === "number" ? `${props.topOffset}px` : props.topOffset;
|
|
471067
|
+
style.borderRadius = "2px";
|
|
471072
471068
|
}
|
|
471073
|
-
if (
|
|
471074
|
-
|
|
471069
|
+
if (item.borderColor) {
|
|
471070
|
+
style.border = `1px solid ${item.borderColor}`;
|
|
471071
|
+
style.boxSizing = "border-box";
|
|
471075
471072
|
}
|
|
471076
|
-
|
|
471077
|
-
|
|
471078
|
-
|
|
471079
|
-
if (!props.showOnlyVisible) {
|
|
471080
|
-
return legends.value;
|
|
471073
|
+
if (item.pattern) {
|
|
471074
|
+
style.backgroundImage = `url(${item.pattern})`;
|
|
471075
|
+
style.backgroundSize = "cover";
|
|
471081
471076
|
}
|
|
471082
|
-
return
|
|
471083
|
-
(legend) => visibleLayerIds.value.includes(legend.layerId)
|
|
471084
|
-
);
|
|
471085
|
-
});
|
|
471086
|
-
const shouldShowLegend = computed(() => {
|
|
471087
|
-
return visibleLegends.value.length > 0;
|
|
471088
|
-
});
|
|
471089
|
-
const toggleCollapse = () => {
|
|
471090
|
-
isCollapsed.value = !isCollapsed.value;
|
|
471077
|
+
return style;
|
|
471091
471078
|
};
|
|
471092
|
-
const
|
|
471079
|
+
const toggleCollapse = () => isCollapsed.value = !isCollapsed.value;
|
|
471080
|
+
const handleImageError = (e8) => e8.target.style.display = "none";
|
|
471081
|
+
const updateLegends = (layers) => {
|
|
471093
471082
|
const newLegends = [];
|
|
471094
|
-
const
|
|
471083
|
+
const newVisibleIds = [];
|
|
471095
471084
|
layers.forEach((layer2) => {
|
|
471096
471085
|
var _a3;
|
|
471097
|
-
if (layer2.visible)
|
|
471098
|
-
|
|
471099
|
-
|
|
471100
|
-
|
|
471101
|
-
|
|
471102
|
-
const newLegend = {
|
|
471086
|
+
if (layer2.visible)
|
|
471087
|
+
newVisibleIds.push(layer2.id);
|
|
471088
|
+
const config = layer2.legend || ((_a3 = layer2.config) == null ? void 0 : _a3.legend);
|
|
471089
|
+
if (config) {
|
|
471090
|
+
newLegends.push({
|
|
471103
471091
|
layerId: layer2.id,
|
|
471104
|
-
title:
|
|
471105
|
-
items:
|
|
471092
|
+
title: config.title || layer2.name || layer2.id,
|
|
471093
|
+
items: config.items || [],
|
|
471106
471094
|
visible: layer2.visible,
|
|
471107
|
-
type:
|
|
471108
|
-
|
|
471109
|
-
|
|
471110
|
-
|
|
471095
|
+
type: config.type || "color",
|
|
471096
|
+
colors: config.colors,
|
|
471097
|
+
min: config.min,
|
|
471098
|
+
max: config.max,
|
|
471099
|
+
unit: config.unit,
|
|
471100
|
+
content: config.content,
|
|
471101
|
+
description: config.description
|
|
471102
|
+
});
|
|
471103
|
+
if (!activeNames.value.includes(layer2.id))
|
|
471104
|
+
activeNames.value.push(layer2.id);
|
|
471111
471105
|
}
|
|
471112
471106
|
});
|
|
471113
471107
|
legends.value = newLegends;
|
|
471114
|
-
visibleLayerIds.value =
|
|
471108
|
+
visibleLayerIds.value = newVisibleIds;
|
|
471115
471109
|
};
|
|
471116
|
-
const
|
|
471117
|
-
if (
|
|
471118
|
-
if (!visibleLayerIds.value.includes(
|
|
471119
|
-
visibleLayerIds.value.push(
|
|
471120
|
-
}
|
|
471110
|
+
const handleLayerVisibility = ({ layerId, visible }) => {
|
|
471111
|
+
if (visible) {
|
|
471112
|
+
if (!visibleLayerIds.value.includes(layerId))
|
|
471113
|
+
visibleLayerIds.value.push(layerId);
|
|
471121
471114
|
} else {
|
|
471122
|
-
|
|
471123
|
-
if (index2 > -1) {
|
|
471124
|
-
visibleLayerIds.value.splice(index2, 1);
|
|
471125
|
-
}
|
|
471126
|
-
}
|
|
471127
|
-
const legendIndex = legends.value.findIndex((legend) => legend.layerId === event.layerId);
|
|
471128
|
-
if (legendIndex > -1) {
|
|
471129
|
-
legends.value[legendIndex].visible = event.visible;
|
|
471115
|
+
visibleLayerIds.value = visibleLayerIds.value.filter((id) => id !== layerId);
|
|
471130
471116
|
}
|
|
471131
471117
|
};
|
|
471132
|
-
const handleLayerAdded = (
|
|
471133
|
-
var _a3;
|
|
471134
|
-
const layerConfig =
|
|
471135
|
-
if (
|
|
471136
|
-
|
|
471137
|
-
|
|
471138
|
-
|
|
471139
|
-
|
|
471140
|
-
|
|
471141
|
-
|
|
471142
|
-
|
|
471143
|
-
|
|
471144
|
-
|
|
471145
|
-
|
|
471146
|
-
legends.value.push(newLegend);
|
|
471147
|
-
if (event.visible) {
|
|
471148
|
-
visibleLayerIds.value.push(event.layerId);
|
|
471149
|
-
}
|
|
471150
|
-
}
|
|
471118
|
+
const handleLayerAdded = (evt) => {
|
|
471119
|
+
var _a3, _b3, _c2;
|
|
471120
|
+
const config = ((_a3 = evt.layerConfig) == null ? void 0 : _a3.legend) || ((_c2 = (_b3 = evt.layerConfig) == null ? void 0 : _b3.config) == null ? void 0 : _c2.legend);
|
|
471121
|
+
if (config) {
|
|
471122
|
+
legends.value.push({
|
|
471123
|
+
layerId: evt.layerId,
|
|
471124
|
+
title: config.title || evt.layerName,
|
|
471125
|
+
items: config.items || [],
|
|
471126
|
+
visible: evt.visible,
|
|
471127
|
+
type: config.type || "color"
|
|
471128
|
+
});
|
|
471129
|
+
if (evt.visible)
|
|
471130
|
+
visibleLayerIds.value.push(evt.layerId);
|
|
471131
|
+
activeNames.value.push(evt.layerId);
|
|
471151
471132
|
}
|
|
471152
471133
|
};
|
|
471153
|
-
const handleLayerRemoved = (
|
|
471154
|
-
|
|
471155
|
-
|
|
471156
|
-
legends.value.splice(legendIndex, 1);
|
|
471157
|
-
}
|
|
471158
|
-
const visibleIndex = visibleLayerIds.value.indexOf(event.layerId);
|
|
471159
|
-
if (visibleIndex > -1) {
|
|
471160
|
-
visibleLayerIds.value.splice(visibleIndex, 1);
|
|
471161
|
-
}
|
|
471134
|
+
const handleLayerRemoved = ({ layerId }) => {
|
|
471135
|
+
legends.value = legends.value.filter((l2) => l2.layerId !== layerId);
|
|
471136
|
+
visibleLayerIds.value = visibleLayerIds.value.filter((id) => id !== layerId);
|
|
471162
471137
|
};
|
|
471163
471138
|
onMounted(() => {
|
|
471164
|
-
|
|
471165
|
-
layerEventBus.on("layer-visibility-change",
|
|
471139
|
+
layerEventBus.on("layers-initialized", updateLegends);
|
|
471140
|
+
layerEventBus.on("layer-visibility-change", handleLayerVisibility);
|
|
471166
471141
|
layerEventBus.on("layer-added", handleLayerAdded);
|
|
471167
471142
|
layerEventBus.on("layer-removed", handleLayerRemoved);
|
|
471168
471143
|
});
|
|
471169
471144
|
onUnmounted(() => {
|
|
471170
|
-
layerEventBus.off("
|
|
471145
|
+
layerEventBus.off("layers-initialized", updateLegends);
|
|
471146
|
+
layerEventBus.off("layer-visibility-change", handleLayerVisibility);
|
|
471171
471147
|
layerEventBus.off("layer-added", handleLayerAdded);
|
|
471172
471148
|
layerEventBus.off("layer-removed", handleLayerRemoved);
|
|
471173
|
-
layerEventBus.off("layers-initialized", handleLayersInitialized);
|
|
471174
471149
|
});
|
|
471175
|
-
const getSymbolStyle = (item) => {
|
|
471176
|
-
const style = {};
|
|
471177
|
-
if (item.shape === "circle") {
|
|
471178
|
-
style.borderRadius = "50%";
|
|
471179
|
-
} else if (item.shape === "square") {
|
|
471180
|
-
style.borderRadius = "2px";
|
|
471181
|
-
} else if (item.shape === "triangle") {
|
|
471182
|
-
style.clipPath = "polygon(50% 0%, 0% 100%, 100% 100%)";
|
|
471183
|
-
}
|
|
471184
|
-
if (item.color) {
|
|
471185
|
-
style.backgroundColor = item.color;
|
|
471186
|
-
}
|
|
471187
|
-
if (item.borderColor) {
|
|
471188
|
-
style.border = `2px solid ${item.borderColor}`;
|
|
471189
|
-
}
|
|
471190
|
-
if (item.size) {
|
|
471191
|
-
style.width = `${item.size}px`;
|
|
471192
|
-
style.height = `${item.size}px`;
|
|
471193
|
-
}
|
|
471194
|
-
return style;
|
|
471195
|
-
};
|
|
471196
|
-
const getGradientStyle = (legend) => {
|
|
471197
|
-
if (legend.colors && legend.colors.length > 1) {
|
|
471198
|
-
const gradient2 = legend.colors.join(", ");
|
|
471199
|
-
return {
|
|
471200
|
-
background: `linear-gradient(to right, ${gradient2})`
|
|
471201
|
-
};
|
|
471202
|
-
}
|
|
471203
|
-
return {};
|
|
471204
|
-
};
|
|
471205
|
-
const getCategoryStyle = (item) => {
|
|
471206
|
-
const style = {
|
|
471207
|
-
width: "16px",
|
|
471208
|
-
height: "16px",
|
|
471209
|
-
borderRadius: "2px"
|
|
471210
|
-
};
|
|
471211
|
-
if (item.color) {
|
|
471212
|
-
style.backgroundColor = item.color;
|
|
471213
|
-
}
|
|
471214
|
-
if (item.pattern) {
|
|
471215
|
-
style.backgroundImage = `url(${item.pattern})`;
|
|
471216
|
-
style.backgroundSize = "cover";
|
|
471217
|
-
}
|
|
471218
|
-
return style;
|
|
471219
|
-
};
|
|
471220
|
-
const getIconStyle = (item) => {
|
|
471221
|
-
const style = {
|
|
471222
|
-
width: item.size ? `${item.size}px` : "16px",
|
|
471223
|
-
height: item.size ? `${item.size}px` : "16px",
|
|
471224
|
-
maxWidth: "24px",
|
|
471225
|
-
maxHeight: "24px"
|
|
471226
|
-
};
|
|
471227
|
-
return style;
|
|
471228
|
-
};
|
|
471229
|
-
const handleImageError = (event) => {
|
|
471230
|
-
const img = event.target;
|
|
471231
|
-
img.style.display = "none";
|
|
471232
|
-
console.warn("图例图标加载失败:", img.src);
|
|
471233
|
-
};
|
|
471234
471150
|
return (_ctx, _cache) => {
|
|
471235
|
-
const
|
|
471151
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
471236
471152
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
471237
471153
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
471238
471154
|
const _component_el_empty = resolveComponent("el-empty");
|
|
471239
471155
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
471240
|
-
class: normalizeClass(["
|
|
471156
|
+
class: normalizeClass(["ol-legend-panel", { "is-collapsed": isCollapsed.value }]),
|
|
471241
471157
|
style: normalizeStyle$1(panelStyle.value)
|
|
471242
471158
|
}, [
|
|
471243
471159
|
createElementVNode("div", _hoisted_1$a, [
|
|
471244
|
-
_cache[1] || (_cache[1] = createElementVNode("
|
|
471160
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "header-title" }, "图例", -1)),
|
|
471245
471161
|
createElementVNode("div", _hoisted_2$9, [
|
|
471246
|
-
createVNode$1(
|
|
471247
|
-
|
|
471248
|
-
size: "small",
|
|
471162
|
+
createVNode$1(_component_el_icon, {
|
|
471163
|
+
class: "action-icon",
|
|
471249
471164
|
onClick: toggleCollapse,
|
|
471250
|
-
|
|
471251
|
-
}, null, 8, ["icon"])
|
|
471252
|
-
])
|
|
471253
|
-
]),
|
|
471254
|
-
createElementVNode("div", _hoisted_3$9, [
|
|
471255
|
-
createElementVNode("div", _hoisted_4$9, [
|
|
471256
|
-
visibleLegends.value.length > 0 ? (openBlock(), createBlock(_component_el_collapse, {
|
|
471257
|
-
key: 0,
|
|
471258
|
-
modelValue: activeNames.value,
|
|
471259
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeNames.value = $event),
|
|
471260
|
-
class: "legend-collapse"
|
|
471165
|
+
title: isCollapsed.value ? "展开" : "收起"
|
|
471261
471166
|
}, {
|
|
471262
471167
|
default: withCtx(() => [
|
|
471263
|
-
(openBlock(
|
|
471264
|
-
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
471265
|
-
key: legend.layerId,
|
|
471266
|
-
title: legend.title || "未命名图例",
|
|
471267
|
-
name: legend.id,
|
|
471268
|
-
class: "legend-item"
|
|
471269
|
-
}, {
|
|
471270
|
-
default: withCtx(() => [
|
|
471271
|
-
createElementVNode("div", _hoisted_5$9, [
|
|
471272
|
-
legend.type === "symbol" ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
471273
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(legend.items, (item) => {
|
|
471274
|
-
return openBlock(), createElementBlock("div", {
|
|
471275
|
-
key: item.value,
|
|
471276
|
-
class: "flex items-center mb-2"
|
|
471277
|
-
}, [
|
|
471278
|
-
createElementVNode("div", {
|
|
471279
|
-
class: "w-4 h-4 mr-2 border border-gray-300",
|
|
471280
|
-
style: normalizeStyle$1(getSymbolStyle(item))
|
|
471281
|
-
}, null, 4),
|
|
471282
|
-
createElementVNode("span", _hoisted_7$6, toDisplayString(item.label), 1)
|
|
471283
|
-
]);
|
|
471284
|
-
}), 128))
|
|
471285
|
-
])) : legend.type === "color" ? (openBlock(), createElementBlock("div", _hoisted_8$6, [
|
|
471286
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(legend.items, (item) => {
|
|
471287
|
-
return openBlock(), createElementBlock("div", {
|
|
471288
|
-
key: item.value,
|
|
471289
|
-
class: "flex items-center mb-1.5"
|
|
471290
|
-
}, [
|
|
471291
|
-
createElementVNode("div", {
|
|
471292
|
-
class: "w-4 h-4 mr-2 border border-gray-300 rounded-sm",
|
|
471293
|
-
style: normalizeStyle$1({ backgroundColor: item.color })
|
|
471294
|
-
}, null, 4),
|
|
471295
|
-
createElementVNode("span", _hoisted_9$5, toDisplayString(item.label), 1)
|
|
471296
|
-
]);
|
|
471297
|
-
}), 128))
|
|
471298
|
-
])) : legend.type === "gradient" ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
|
|
471299
|
-
createElementVNode("div", _hoisted_11$4, [
|
|
471300
|
-
createElementVNode("div", {
|
|
471301
|
-
class: "w-full h-5 border border-gray-300 rounded-sm",
|
|
471302
|
-
style: normalizeStyle$1(getGradientStyle(legend))
|
|
471303
|
-
}, null, 4),
|
|
471304
|
-
createElementVNode("div", _hoisted_12$4, [
|
|
471305
|
-
createElementVNode("span", null, toDisplayString(legend.min), 1),
|
|
471306
|
-
createElementVNode("span", null, toDisplayString(legend.max), 1)
|
|
471307
|
-
])
|
|
471308
|
-
]),
|
|
471309
|
-
createElementVNode("div", _hoisted_13$4, toDisplayString(legend.unit || ""), 1)
|
|
471310
|
-
])) : legend.type === "category" ? (openBlock(), createElementBlock("div", _hoisted_14$3, [
|
|
471311
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(legend.items, (item) => {
|
|
471312
|
-
return openBlock(), createElementBlock("div", {
|
|
471313
|
-
key: item.value,
|
|
471314
|
-
class: "flex items-center mb-1.5"
|
|
471315
|
-
}, [
|
|
471316
|
-
createElementVNode("div", {
|
|
471317
|
-
class: "mr-2 border border-gray-300",
|
|
471318
|
-
style: normalizeStyle$1(getCategoryStyle(item))
|
|
471319
|
-
}, null, 4),
|
|
471320
|
-
createElementVNode("span", _hoisted_15$2, toDisplayString(item.label), 1)
|
|
471321
|
-
]);
|
|
471322
|
-
}), 128))
|
|
471323
|
-
])) : legend.type === "icon" ? (openBlock(), createElementBlock("div", _hoisted_16$2, [
|
|
471324
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(legend.items, (item) => {
|
|
471325
|
-
return openBlock(), createElementBlock("div", {
|
|
471326
|
-
key: item.value,
|
|
471327
|
-
class: "flex items-center mb-1.5"
|
|
471328
|
-
}, [
|
|
471329
|
-
item.image ? (openBlock(), createElementBlock("img", {
|
|
471330
|
-
key: 0,
|
|
471331
|
-
src: item.image,
|
|
471332
|
-
alt: item.label,
|
|
471333
|
-
class: "mr-2 object-contain border border-gray-200 rounded-sm",
|
|
471334
|
-
style: normalizeStyle$1(getIconStyle(item)),
|
|
471335
|
-
onError: handleImageError
|
|
471336
|
-
}, null, 44, _hoisted_17$2)) : (openBlock(), createElementBlock("div", _hoisted_18$2)),
|
|
471337
|
-
createElementVNode("span", _hoisted_19$2, toDisplayString(item.label), 1)
|
|
471338
|
-
]);
|
|
471339
|
-
}), 128))
|
|
471340
|
-
])) : legend.type === "custom" ? (openBlock(), createElementBlock("div", _hoisted_20$2, [
|
|
471341
|
-
createElementVNode("div", {
|
|
471342
|
-
innerHTML: legend.content
|
|
471343
|
-
}, null, 8, _hoisted_21$2)
|
|
471344
|
-
])) : createCommentVNode("", true),
|
|
471345
|
-
legend.description ? (openBlock(), createElementBlock("div", _hoisted_22$1, toDisplayString(legend.description), 1)) : createCommentVNode("", true)
|
|
471346
|
-
])
|
|
471347
|
-
]),
|
|
471348
|
-
_: 2
|
|
471349
|
-
}, 1032, ["title", "name"]);
|
|
471350
|
-
}), 128))
|
|
471168
|
+
(openBlock(), createBlock(resolveDynamicComponent(isCollapsed.value ? "Expand" : "Fold")))
|
|
471351
471169
|
]),
|
|
471352
471170
|
_: 1
|
|
471353
|
-
}, 8, ["
|
|
471354
|
-
createVNode$1(_component_el_empty, { description: "暂无图例" })
|
|
471355
|
-
]))
|
|
471171
|
+
}, 8, ["title"])
|
|
471356
471172
|
])
|
|
471173
|
+
]),
|
|
471174
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
471175
|
+
visibleLegends.value.length > 0 ? (openBlock(), createBlock(_component_el_collapse, {
|
|
471176
|
+
key: 0,
|
|
471177
|
+
modelValue: activeNames.value,
|
|
471178
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeNames.value = $event),
|
|
471179
|
+
class: "legend-collapse"
|
|
471180
|
+
}, {
|
|
471181
|
+
default: withCtx(() => [
|
|
471182
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleLegends.value, (legend) => {
|
|
471183
|
+
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
471184
|
+
key: legend.layerId,
|
|
471185
|
+
name: legend.layerId
|
|
471186
|
+
}, {
|
|
471187
|
+
title: withCtx(() => [
|
|
471188
|
+
createElementVNode("span", {
|
|
471189
|
+
class: "layer-title",
|
|
471190
|
+
title: legend.title
|
|
471191
|
+
}, toDisplayString(legend.title || "未命名图例"), 9, _hoisted_4$9)
|
|
471192
|
+
]),
|
|
471193
|
+
default: withCtx(() => [
|
|
471194
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
471195
|
+
legend.type === "gradient" ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
471196
|
+
createElementVNode("div", {
|
|
471197
|
+
class: "gradient-bar",
|
|
471198
|
+
style: normalizeStyle$1(getGradientStyle(legend))
|
|
471199
|
+
}, null, 4),
|
|
471200
|
+
createElementVNode("div", _hoisted_7$6, [
|
|
471201
|
+
createElementVNode("span", null, toDisplayString(legend.min), 1),
|
|
471202
|
+
createElementVNode("span", null, toDisplayString(legend.max), 1)
|
|
471203
|
+
]),
|
|
471204
|
+
legend.unit ? (openBlock(), createElementBlock("div", _hoisted_8$6, toDisplayString(legend.unit), 1)) : createCommentVNode("", true)
|
|
471205
|
+
])) : legend.type === "custom" ? (openBlock(), createElementBlock("div", {
|
|
471206
|
+
key: 1,
|
|
471207
|
+
class: "legend-custom",
|
|
471208
|
+
innerHTML: legend.content
|
|
471209
|
+
}, null, 8, _hoisted_9$5)) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(legend.items, (item, idx) => {
|
|
471210
|
+
return openBlock(), createElementBlock("div", {
|
|
471211
|
+
key: idx,
|
|
471212
|
+
class: "legend-row"
|
|
471213
|
+
}, [
|
|
471214
|
+
createElementVNode("div", {
|
|
471215
|
+
class: "legend-icon",
|
|
471216
|
+
style: normalizeStyle$1(getIconWrapperStyle(legend.type, item))
|
|
471217
|
+
}, [
|
|
471218
|
+
legend.type === "icon" && item.image ? (openBlock(), createElementBlock("img", {
|
|
471219
|
+
key: 0,
|
|
471220
|
+
src: item.image,
|
|
471221
|
+
class: "icon-img",
|
|
471222
|
+
onError: handleImageError
|
|
471223
|
+
}, null, 40, _hoisted_10$5)) : (openBlock(), createElementBlock("div", {
|
|
471224
|
+
key: 1,
|
|
471225
|
+
class: "symbol-shape",
|
|
471226
|
+
style: normalizeStyle$1(getSymbolInnerStyle(legend.type, item))
|
|
471227
|
+
}, null, 4))
|
|
471228
|
+
], 4),
|
|
471229
|
+
createElementVNode("span", {
|
|
471230
|
+
class: "legend-label",
|
|
471231
|
+
title: item.label
|
|
471232
|
+
}, toDisplayString(item.label), 9, _hoisted_11$4)
|
|
471233
|
+
]);
|
|
471234
|
+
}), 128)),
|
|
471235
|
+
legend.description ? (openBlock(), createElementBlock("div", _hoisted_12$4, toDisplayString(legend.description), 1)) : createCommentVNode("", true)
|
|
471236
|
+
])
|
|
471237
|
+
]),
|
|
471238
|
+
_: 2
|
|
471239
|
+
}, 1032, ["name"]);
|
|
471240
|
+
}), 128))
|
|
471241
|
+
]),
|
|
471242
|
+
_: 1
|
|
471243
|
+
}, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_13$4, [
|
|
471244
|
+
createVNode$1(_component_el_empty, {
|
|
471245
|
+
description: "暂无图例",
|
|
471246
|
+
"image-size": 60
|
|
471247
|
+
})
|
|
471248
|
+
]))
|
|
471357
471249
|
])
|
|
471358
471250
|
], 6)), [
|
|
471359
471251
|
[vShow, shouldShowLegend.value]
|
|
@@ -471361,6 +471253,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
471361
471253
|
};
|
|
471362
471254
|
}
|
|
471363
471255
|
});
|
|
471256
|
+
const OlLegendPanel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b1b6d5ed"]]);
|
|
471364
471257
|
class ConfigLoader {
|
|
471365
471258
|
/**
|
|
471366
471259
|
* 从URL加载配置文件
|
|
@@ -472488,7 +472381,7 @@ const _hoisted_2$8 = { class: "config-section" };
|
|
|
472488
472381
|
const _hoisted_3$8 = { class: "config-item" };
|
|
472489
472382
|
const _hoisted_4$8 = { class: "value-text" };
|
|
472490
472383
|
const _hoisted_5$8 = { class: "config-item" };
|
|
472491
|
-
const _hoisted_6$
|
|
472384
|
+
const _hoisted_6$5 = { class: "value-text" };
|
|
472492
472385
|
const _hoisted_7$5 = { class: "config-item" };
|
|
472493
472386
|
const _hoisted_8$5 = { class: "value-text" };
|
|
472494
472387
|
const _hoisted_9$4 = { class: "config-item" };
|
|
@@ -472549,7 +472442,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
472549
472442
|
step: 1,
|
|
472550
472443
|
onInput: handleFilterChange
|
|
472551
472444
|
}, null, 8, ["modelValue"]),
|
|
472552
|
-
createElementVNode("span", _hoisted_6$
|
|
472445
|
+
createElementVNode("span", _hoisted_6$5, toDisplayString(_ctx.filters.saturate) + "%", 1)
|
|
472553
472446
|
]),
|
|
472554
472447
|
createElementVNode("div", _hoisted_7$5, [
|
|
472555
472448
|
_cache[13] || (_cache[13] = createElementVNode("label", null, "亮度:", -1)),
|
|
@@ -472682,7 +472575,7 @@ const _hoisted_3$7 = {
|
|
|
472682
472575
|
};
|
|
472683
472576
|
const _hoisted_4$7 = { class: "config-item" };
|
|
472684
472577
|
const _hoisted_5$7 = { class: "value-text" };
|
|
472685
|
-
const _hoisted_6$
|
|
472578
|
+
const _hoisted_6$4 = { class: "config-item" };
|
|
472686
472579
|
const _hoisted_7$4 = { class: "value-text" };
|
|
472687
472580
|
const _hoisted_8$4 = {
|
|
472688
472581
|
key: 1,
|
|
@@ -472740,7 +472633,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
472740
472633
|
}, null, 8, ["modelValue"]),
|
|
472741
472634
|
createElementVNode("span", _hoisted_5$7, toDisplayString(_ctx.layerData.clusterDistance) + "px", 1)
|
|
472742
472635
|
]),
|
|
472743
|
-
createElementVNode("div", _hoisted_6$
|
|
472636
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
472744
472637
|
_cache[7] || (_cache[7] = createElementVNode("label", null, "最小距离:", -1)),
|
|
472745
472638
|
createVNode$1(_component_el_slider, {
|
|
472746
472639
|
modelValue: _ctx.layerData.minDistance,
|
|
@@ -472963,7 +472856,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
472963
472856
|
}
|
|
472964
472857
|
});
|
|
472965
472858
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
472966
|
-
var
|
|
472859
|
+
var re$1 = /* @__PURE__ */ defineComponent({
|
|
472967
472860
|
name: "Close",
|
|
472968
472861
|
__name: "close",
|
|
472969
472862
|
setup(r2) {
|
|
@@ -472978,8 +472871,8 @@ var ce$1 = /* @__PURE__ */ defineComponent({
|
|
|
472978
472871
|
]));
|
|
472979
472872
|
}
|
|
472980
472873
|
});
|
|
472981
|
-
var
|
|
472982
|
-
var
|
|
472874
|
+
var ce$1 = re$1;
|
|
472875
|
+
var de$1 = /* @__PURE__ */ defineComponent({
|
|
472983
472876
|
name: "FullScreen",
|
|
472984
472877
|
__name: "full-screen",
|
|
472985
472878
|
setup(r2) {
|
|
@@ -472994,11 +472887,11 @@ var ue$1 = /* @__PURE__ */ defineComponent({
|
|
|
472994
472887
|
]));
|
|
472995
472888
|
}
|
|
472996
472889
|
});
|
|
472997
|
-
var
|
|
472998
|
-
const
|
|
472999
|
-
const
|
|
473000
|
-
const
|
|
473001
|
-
const
|
|
472890
|
+
var ue$1 = de$1;
|
|
472891
|
+
const fe$1 = { class: "custom-dialog-header" };
|
|
472892
|
+
const he$1 = ["id"];
|
|
472893
|
+
const me$1 = { class: "custom-dialog-actions" };
|
|
472894
|
+
const pe$1 = {
|
|
473002
472895
|
key: 1,
|
|
473003
472896
|
class: "icon",
|
|
473004
472897
|
viewBox: "0 0 1025 1024",
|
|
@@ -473007,8 +472900,8 @@ const ge$1 = {
|
|
|
473007
472900
|
width: "1em",
|
|
473008
472901
|
height: "1em"
|
|
473009
472902
|
};
|
|
473010
|
-
const
|
|
473011
|
-
const
|
|
472903
|
+
const ge$1 = ["onClick"];
|
|
472904
|
+
const X$1 = /* @__PURE__ */ defineComponent({
|
|
473012
472905
|
__name: "EPlusResizeDialog",
|
|
473013
472906
|
props: {
|
|
473014
472907
|
resizable: { type: Boolean, default: true },
|
|
@@ -473020,8 +472913,8 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473020
472913
|
closeOnClickModal: { type: Boolean, default: false }
|
|
473021
472914
|
},
|
|
473022
472915
|
setup(r2, { expose: S2 }) {
|
|
473023
|
-
const c2 = r2,
|
|
473024
|
-
const l2 =
|
|
472916
|
+
const c2 = r2, Y2 = computed(() => c2.showFullscreen !== false), i = ref(), $2 = useAttrs$1(), j2 = useSlots(), d2 = ref(false), x2 = computed(() => {
|
|
472917
|
+
const l2 = $2.modal;
|
|
473025
472918
|
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !c2.modalPenetrable;
|
|
473026
472919
|
}), a3 = {
|
|
473027
472920
|
width: "",
|
|
@@ -473031,7 +472924,7 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473031
472924
|
transform: "",
|
|
473032
472925
|
marginTop: "",
|
|
473033
472926
|
marginBottom: ""
|
|
473034
|
-
},
|
|
472927
|
+
}, V2 = () => {
|
|
473035
472928
|
d2.value ? (d2.value = false, nextTick(() => {
|
|
473036
472929
|
e8 && (e8.style.width = a3.width, e8.style.height = a3.height, e8.style.left = a3.left, e8.style.top = a3.top, e8.style.transform = a3.transform, e8.style.marginTop = a3.marginTop, e8.style.marginBottom = a3.marginBottom);
|
|
473037
472930
|
})) : (e8 && (a3.width = e8.style.width, a3.height = e8.style.height, a3.left = e8.style.left, a3.top = e8.style.top, a3.transform = e8.style.transform, a3.marginTop = e8.style.marginTop, a3.marginBottom = e8.style.marginBottom, e8.style.width = "", e8.style.height = "", e8.style.transform = "", e8.style.left = "", e8.style.top = "", e8.style.marginTop = "", e8.style.marginBottom = ""), d2.value = true), nextTick(() => {
|
|
@@ -473040,11 +472933,11 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473040
472933
|
};
|
|
473041
472934
|
S2({
|
|
473042
472935
|
dialogRef: i,
|
|
473043
|
-
toggleFullscreen:
|
|
472936
|
+
toggleFullscreen: V2,
|
|
473044
472937
|
isFullscreen: d2
|
|
473045
472938
|
});
|
|
473046
|
-
let R2 = 0, H4 = 0, B3 = 0, C3 = 0,
|
|
473047
|
-
const
|
|
472939
|
+
let R2 = 0, H4 = 0, B3 = 0, C3 = 0, g2 = 0, v5 = 0, u2 = "", e8 = null;
|
|
472940
|
+
const U2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"], M5 = () => {
|
|
473048
472941
|
var s2;
|
|
473049
472942
|
if (c2.resizable === false || d2.value) {
|
|
473050
472943
|
e8 && e8.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "none");
|
|
@@ -473053,11 +472946,11 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473053
472946
|
if (e8 && e8.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !i.value)
|
|
473054
472947
|
return;
|
|
473055
472948
|
const l2 = ((s2 = i.value.dialogContentRef) == null ? void 0 : s2.$el) || i.value.$el;
|
|
473056
|
-
!l2 || (e8 = l2.querySelector(".el-dialog") || l2, (!e8 || !e8.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e8 = l2 : e8 = document.querySelector(".el-dialog")), !e8) || (getComputedStyle(e8).position === "static" && (e8.style.position = "relative"), e8.querySelector(".resize-handle")) ||
|
|
472949
|
+
!l2 || (e8 = l2.querySelector(".el-dialog") || l2, (!e8 || !e8.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e8 = l2 : e8 = document.querySelector(".el-dialog")), !e8) || (getComputedStyle(e8).position === "static" && (e8.style.position = "relative"), e8.querySelector(".resize-handle")) || U2.forEach((t3) => {
|
|
473057
472950
|
const n2 = document.createElement("div");
|
|
473058
|
-
n2.className = `resize-handle resize-handle-${t3}`, n2.dataset.dir = t3, Object.assign(n2.style,
|
|
472951
|
+
n2.className = `resize-handle resize-handle-${t3}`, n2.dataset.dir = t3, Object.assign(n2.style, G2(t3)), n2.addEventListener("mousedown", (f2) => J2(f2, t3)), e8.appendChild(n2);
|
|
473059
472952
|
});
|
|
473060
|
-
},
|
|
472953
|
+
}, G2 = (l2) => {
|
|
473061
472954
|
const o2 = "10px", s2 = "-5px", t3 = {
|
|
473062
472955
|
position: "absolute",
|
|
473063
472956
|
zIndex: "100",
|
|
@@ -473066,42 +472959,42 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473066
472959
|
cursor: `${l2}-resize`
|
|
473067
472960
|
};
|
|
473068
472961
|
return l2.includes("n") && (t3.top = s2), l2.includes("s") && (t3.bottom = s2), l2.includes("w") && (t3.left = s2), l2.includes("e") && (t3.right = s2), l2 === "ne" && (t3.top = s2, t3.right = s2, t3.width = o2, t3.height = o2, t3.cursor = "ne-resize"), l2 === "nw" && (t3.top = s2, t3.left = s2, t3.width = o2, t3.height = o2, t3.cursor = "nw-resize"), l2 === "se" && (t3.bottom = s2, t3.right = s2, t3.width = o2, t3.height = o2, t3.cursor = "se-resize"), l2 === "sw" && (t3.bottom = s2, t3.left = s2, t3.width = o2, t3.height = o2, t3.cursor = "sw-resize"), t3;
|
|
473069
|
-
},
|
|
472962
|
+
}, J2 = (l2, o2) => {
|
|
473070
472963
|
if (l2.preventDefault(), l2.stopPropagation(), !e8)
|
|
473071
472964
|
return;
|
|
473072
472965
|
u2 = o2, R2 = l2.clientX, H4 = l2.clientY;
|
|
473073
472966
|
const s2 = window.getComputedStyle(e8);
|
|
473074
|
-
B3 = parseInt(s2.width), C3 = parseInt(s2.height),
|
|
472967
|
+
B3 = parseInt(s2.width), C3 = parseInt(s2.height), g2 = parseInt(s2.left) || 0, v5 = parseInt(s2.top) || 0;
|
|
473075
472968
|
const t3 = e8.getBoundingClientRect();
|
|
473076
472969
|
if (s2.position !== "absolute" && s2.position !== "fixed") {
|
|
473077
|
-
const n2 = e8.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 },
|
|
473078
|
-
e8.style.position = "absolute", e8.style.margin = "0", e8.style.left = `${
|
|
472970
|
+
const n2 = e8.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 }, y2 = t3.left - f2.left, w2 = t3.top - f2.top;
|
|
472971
|
+
e8.style.position = "absolute", e8.style.margin = "0", e8.style.left = `${y2}px`, e8.style.top = `${w2}px`, g2 = y2, v5 = w2;
|
|
473079
472972
|
} else
|
|
473080
|
-
|
|
472973
|
+
g2 = parseInt(s2.left), v5 = parseInt(s2.top);
|
|
473081
472974
|
document.addEventListener("mousemove", P6), document.addEventListener("mouseup", T2);
|
|
473082
472975
|
}, P6 = (l2) => {
|
|
473083
472976
|
if (!e8)
|
|
473084
472977
|
return;
|
|
473085
472978
|
const o2 = l2.clientX - R2, s2 = l2.clientY - H4;
|
|
473086
|
-
let t3 = B3, n2 = C3, f2 =
|
|
473087
|
-
const
|
|
473088
|
-
if (u2.includes("e") && (t3 = Math.max(
|
|
473089
|
-
const
|
|
473090
|
-
|
|
472979
|
+
let t3 = B3, n2 = C3, f2 = g2, y2 = v5;
|
|
472980
|
+
const w2 = c2.minWidth || 200, I2 = c2.minHeight || 150;
|
|
472981
|
+
if (u2.includes("e") && (t3 = Math.max(w2, B3 + o2)), u2.includes("s") && (n2 = Math.max(I2, C3 + s2)), u2.includes("w")) {
|
|
472982
|
+
const _2 = B3 - o2;
|
|
472983
|
+
_2 >= w2 && (t3 = _2, f2 = g2 + o2);
|
|
473091
472984
|
}
|
|
473092
472985
|
if (u2.includes("n")) {
|
|
473093
|
-
const
|
|
473094
|
-
|
|
472986
|
+
const _2 = C3 - s2;
|
|
472987
|
+
_2 >= I2 && (n2 = _2, y2 = v5 + s2);
|
|
473095
472988
|
}
|
|
473096
|
-
e8.style.width = `${t3}px`, e8.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e8.style.left = `${f2}px`, e8.style.top = `${
|
|
472989
|
+
e8.style.width = `${t3}px`, e8.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e8.style.left = `${f2}px`, e8.style.top = `${y2}px`);
|
|
473097
472990
|
}, T2 = () => {
|
|
473098
472991
|
document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup", T2);
|
|
473099
472992
|
};
|
|
473100
|
-
watch(() =>
|
|
472993
|
+
watch(() => $2.modelValue, (l2) => {
|
|
473101
472994
|
l2 && nextTick(() => {
|
|
473102
472995
|
M5(), D2();
|
|
473103
472996
|
});
|
|
473104
|
-
}), watch(() =>
|
|
472997
|
+
}), watch(() => x2.value, () => {
|
|
473105
472998
|
nextTick(() => {
|
|
473106
472999
|
D2();
|
|
473107
473000
|
});
|
|
@@ -473114,40 +473007,39 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473114
473007
|
if (!l2)
|
|
473115
473008
|
return;
|
|
473116
473009
|
let o2 = l2.closest(".el-overlay");
|
|
473117
|
-
o2 || (o2 = l2.closest(".el-overlay-dialog")), o2 && (
|
|
473010
|
+
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"));
|
|
473118
473011
|
};
|
|
473119
473012
|
return (l2, o2) => (openBlock(), createBlock(unref(ElDialog), mergeProps({
|
|
473120
473013
|
ref_key: "dialogRef",
|
|
473121
473014
|
ref: i,
|
|
473122
|
-
class: ["e-plus-resize-dialog", { "is-modal-hidden": !
|
|
473015
|
+
class: ["e-plus-resize-dialog", { "is-modal-hidden": !x2.value }]
|
|
473123
473016
|
}, l2.$attrs, {
|
|
473124
|
-
modal:
|
|
473017
|
+
modal: x2.value,
|
|
473125
473018
|
"close-on-click-modal": r2.closeOnClickModal,
|
|
473126
473019
|
draggable: r2.draggable,
|
|
473127
473020
|
fullscreen: d2.value,
|
|
473128
473021
|
"show-close": false
|
|
473129
473022
|
}), createSlots({
|
|
473130
473023
|
header: withCtx(({ close: s2, titleId: t3, titleClass: n2 }) => [
|
|
473131
|
-
createElementVNode("div",
|
|
473132
|
-
createTextVNode(toDisplayString(g2.value) + " ", 1),
|
|
473024
|
+
createElementVNode("div", fe$1, [
|
|
473133
473025
|
createElementVNode("span", {
|
|
473134
473026
|
id: t3,
|
|
473135
473027
|
class: normalizeClass(n2)
|
|
473136
|
-
}, toDisplayString(l2.$attrs.title), 11,
|
|
473137
|
-
createElementVNode("div",
|
|
473138
|
-
|
|
473028
|
+
}, toDisplayString(l2.$attrs.title), 11, he$1),
|
|
473029
|
+
createElementVNode("div", me$1, [
|
|
473030
|
+
Y2.value ? (openBlock(), createElementBlock("div", {
|
|
473139
473031
|
key: 0,
|
|
473140
473032
|
class: "custom-header-btn",
|
|
473141
|
-
onClick:
|
|
473033
|
+
onClick: V2
|
|
473142
473034
|
}, [
|
|
473143
473035
|
createVNode$1(unref(ElIcon), { size: "18" }, {
|
|
473144
473036
|
default: withCtx(() => [
|
|
473145
|
-
d2.value ? (openBlock(), createElementBlock("svg",
|
|
473037
|
+
d2.value ? (openBlock(), createElementBlock("svg", pe$1, [...o2[0] || (o2[0] = [
|
|
473146
473038
|
createElementVNode("path", {
|
|
473147
473039
|
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",
|
|
473148
473040
|
fill: "currentColor"
|
|
473149
473041
|
}, null, -1)
|
|
473150
|
-
])])) : (openBlock(), createBlock(unref(
|
|
473042
|
+
])])) : (openBlock(), createBlock(unref(ue$1), { key: 0 }))
|
|
473151
473043
|
]),
|
|
473152
473044
|
_: 1
|
|
473153
473045
|
})
|
|
@@ -473159,17 +473051,17 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473159
473051
|
}, [
|
|
473160
473052
|
createVNode$1(unref(ElIcon), { size: "20" }, {
|
|
473161
473053
|
default: withCtx(() => [
|
|
473162
|
-
createVNode$1(unref(
|
|
473054
|
+
createVNode$1(unref(ce$1))
|
|
473163
473055
|
]),
|
|
473164
473056
|
_: 1
|
|
473165
473057
|
})
|
|
473166
|
-
], 8,
|
|
473058
|
+
], 8, ge$1)) : createCommentVNode("", true)
|
|
473167
473059
|
])
|
|
473168
473060
|
])
|
|
473169
473061
|
]),
|
|
473170
473062
|
_: 2
|
|
473171
473063
|
}, [
|
|
473172
|
-
renderList(unref(
|
|
473064
|
+
renderList(unref(j2), (s2, t3) => ({
|
|
473173
473065
|
name: t3,
|
|
473174
473066
|
fn: withCtx((n2) => [
|
|
473175
473067
|
renderSlot(l2.$slots, t3, normalizeProps(guardReactiveProps(n2 || {})))
|
|
@@ -473178,15 +473070,15 @@ const Y$1 = /* @__PURE__ */ defineComponent({
|
|
|
473178
473070
|
]), 1040, ["class", "modal", "close-on-click-modal", "draggable", "fullscreen"]));
|
|
473179
473071
|
}
|
|
473180
473072
|
});
|
|
473181
|
-
|
|
473182
|
-
r2.component("EPlusResizeDialog",
|
|
473073
|
+
X$1.install = (r2) => {
|
|
473074
|
+
r2.component("EPlusResizeDialog", X$1);
|
|
473183
473075
|
};
|
|
473184
473076
|
const _hoisted_1$6 = { class: "flex-1 overflow-y-auto p-4" };
|
|
473185
473077
|
const _hoisted_2$5 = { class: "pb-2 flex items-center justify-between" };
|
|
473186
473078
|
const _hoisted_3$5 = { class: "text-xs font-semibold text-gray-700 px-1 py-1 border-b border-gray-200 mb-2" };
|
|
473187
473079
|
const _hoisted_4$5 = { class: "global-style-panel" };
|
|
473188
473080
|
const _hoisted_5$5 = { class: "config-section" };
|
|
473189
|
-
const _hoisted_6$
|
|
473081
|
+
const _hoisted_6$3 = { class: "config-item" };
|
|
473190
473082
|
const _hoisted_7$3 = { class: "current-style-display" };
|
|
473191
473083
|
const _hoisted_8$3 = { class: "style-preview" };
|
|
473192
473084
|
const dialogType = "layer-panel";
|
|
@@ -473956,10 +473848,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
473956
473848
|
const _component_el_tree = resolveComponent("el-tree");
|
|
473957
473849
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
473958
473850
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
473959
|
-
return openBlock(), createBlock(unref(
|
|
473851
|
+
return openBlock(), createBlock(unref(X$1), mergeProps({
|
|
473960
473852
|
modelValue: visible.value,
|
|
473961
473853
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event)
|
|
473962
|
-
}, dialogProps2.value, {
|
|
473854
|
+
}, dialogProps2.value, {
|
|
473855
|
+
"append-to-body": "",
|
|
473856
|
+
onClose: handleClose
|
|
473857
|
+
}), createSlots({
|
|
473963
473858
|
default: withCtx(() => [
|
|
473964
473859
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {
|
|
473965
473860
|
key: 0,
|
|
@@ -474129,7 +474024,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
474129
474024
|
}, {
|
|
474130
474025
|
default: withCtx(() => [
|
|
474131
474026
|
createElementVNode("div", _hoisted_5$5, [
|
|
474132
|
-
createElementVNode("div", _hoisted_6$
|
|
474027
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
474133
474028
|
createVNode$1(unref(ElInput), {
|
|
474134
474029
|
modelValue: unref(globalCustomCss),
|
|
474135
474030
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(globalCustomCss) ? globalCustomCss.value = $event : null),
|
|
@@ -474348,7 +474243,7 @@ const _hoisted_2$3 = { class: "h-150 overflow-y-auto" };
|
|
|
474348
474243
|
const _hoisted_3$3 = { class: "flex items-center justify-between" };
|
|
474349
474244
|
const _hoisted_4$3 = { class: "mb-5" };
|
|
474350
474245
|
const _hoisted_5$3 = { class: "mb-3" };
|
|
474351
|
-
const _hoisted_6$
|
|
474246
|
+
const _hoisted_6$2 = {
|
|
474352
474247
|
key: 0,
|
|
474353
474248
|
class: "mb-3"
|
|
474354
474249
|
};
|
|
@@ -474924,7 +474819,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
474924
474819
|
_: 1
|
|
474925
474820
|
}, 8, ["modelValue"])
|
|
474926
474821
|
]),
|
|
474927
|
-
printSettings.paperSize === "Custom" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
474822
|
+
printSettings.paperSize === "Custom" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
474928
474823
|
createElementVNode("div", _hoisted_7$2, [
|
|
474929
474824
|
createVNode$1(_component_el_input, {
|
|
474930
474825
|
modelValue: printSettings.customWidth,
|
|
@@ -475427,7 +475322,7 @@ const _hoisted_2$2 = ["innerHTML"];
|
|
|
475427
475322
|
const _hoisted_3$2 = { key: 1 };
|
|
475428
475323
|
const _hoisted_4$2 = { class: "layer-title" };
|
|
475429
475324
|
const _hoisted_5$2 = ["onClick"];
|
|
475430
|
-
const _hoisted_6$
|
|
475325
|
+
const _hoisted_6$1 = { class: "property-key" };
|
|
475431
475326
|
const _hoisted_7$1 = { class: "property-value" };
|
|
475432
475327
|
const _hoisted_8$1 = ["innerHTML"];
|
|
475433
475328
|
const _hoisted_9$1 = { key: 3 };
|
|
@@ -475621,7 +475516,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
475621
475516
|
key,
|
|
475622
475517
|
class: "property-item"
|
|
475623
475518
|
}, [
|
|
475624
|
-
createElementVNode("span", _hoisted_6$
|
|
475519
|
+
createElementVNode("span", _hoisted_6$1, toDisplayString(key) + ":", 1),
|
|
475625
475520
|
createElementVNode("span", _hoisted_7$1, toDisplayString(formatValue(value)), 1)
|
|
475626
475521
|
]);
|
|
475627
475522
|
}), 128))
|
|
@@ -475668,15 +475563,17 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
475668
475563
|
};
|
|
475669
475564
|
}
|
|
475670
475565
|
});
|
|
475671
|
-
const _hoisted_1$2 = {
|
|
475672
|
-
|
|
475673
|
-
|
|
475674
|
-
|
|
475675
|
-
|
|
475676
|
-
|
|
475677
|
-
|
|
475678
|
-
const _hoisted_5$1 = {
|
|
475679
|
-
|
|
475566
|
+
const _hoisted_1$2 = { class: "flex items-center justify-between" };
|
|
475567
|
+
const _hoisted_2$1 = { class: "max-h-50 overflow-y-auto p-2" };
|
|
475568
|
+
const _hoisted_3$1 = { class: "flex-1 flex flex-col gap-0.5" };
|
|
475569
|
+
const _hoisted_4$1 = {
|
|
475570
|
+
class: "text-xs",
|
|
475571
|
+
style: { "color": "var(--el-text-color-secondary)" }
|
|
475572
|
+
};
|
|
475573
|
+
const _hoisted_5$1 = {
|
|
475574
|
+
class: "text-sm font-semibold font-mono",
|
|
475575
|
+
style: { "color": "var(--el-text-color-regular)" }
|
|
475576
|
+
};
|
|
475680
475577
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
475681
475578
|
__name: "OlMap",
|
|
475682
475579
|
props: {
|
|
@@ -476848,6 +476745,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476848
476745
|
var _a3;
|
|
476849
476746
|
const _component_el_icon = resolveComponent("el-icon");
|
|
476850
476747
|
const _component_el_button = resolveComponent("el-button");
|
|
476748
|
+
const _component_el_card = resolveComponent("el-card");
|
|
476851
476749
|
return openBlock(), createElementBlock("div", {
|
|
476852
476750
|
class: normalizeClass(["relative w-full h-full overflow-hidden", { "fixed top-0 left-0 w-screen h-screen z-9999": isFullscreen.value }])
|
|
476853
476751
|
}, [
|
|
@@ -476881,7 +476779,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476881
476779
|
formattedData,
|
|
476882
476780
|
coordinate,
|
|
476883
476781
|
pixel
|
|
476884
|
-
})
|
|
476782
|
+
}, void 0, true)
|
|
476885
476783
|
]),
|
|
476886
476784
|
_: 3
|
|
476887
476785
|
}, 8, ["config", "width", "height", "loading"]),
|
|
@@ -476970,20 +476868,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476970
476868
|
"left-offset": finalControlsConfig.value.leftOffset,
|
|
476971
476869
|
"right-offset": finalControlsConfig.value.rightOffset,
|
|
476972
476870
|
"top-offset": finalControlsConfig.value.topOffset,
|
|
476973
|
-
"bottom-offset": finalControlsConfig.value.bottomOffset
|
|
476974
|
-
class: "bg-white p-2 rounded-lg shadow-lg"
|
|
476871
|
+
"bottom-offset": finalControlsConfig.value.bottomOffset
|
|
476975
476872
|
}, {
|
|
476976
476873
|
custom: withCtx(({ controls }) => [
|
|
476977
476874
|
renderSlot(_ctx.$slots, "controls", {
|
|
476978
476875
|
controls,
|
|
476979
476876
|
map: map2.value
|
|
476980
|
-
})
|
|
476877
|
+
}, void 0, true)
|
|
476981
476878
|
]),
|
|
476982
476879
|
_: 3
|
|
476983
476880
|
}, 8, ["config", "position", "direction", "left-offset", "right-offset", "top-offset", "bottom-offset"])) : createCommentVNode("", true),
|
|
476984
|
-
hasToolbarSlot.value ? renderSlot(_ctx.$slots, "toolbar", { key: 5 }) : createCommentVNode("", true),
|
|
476985
|
-
hasMapInfoSlot.value ? renderSlot(_ctx.$slots, "mapInfo", { key: 6 }) : createCommentVNode("", true),
|
|
476986
|
-
hasMapInfoSlot.value ? renderSlot(_ctx.$slots, "map-info", { key: 7 }) : createCommentVNode("", true),
|
|
476881
|
+
hasToolbarSlot.value ? renderSlot(_ctx.$slots, "toolbar", { key: 5 }, void 0, true) : createCommentVNode("", true),
|
|
476882
|
+
hasMapInfoSlot.value ? renderSlot(_ctx.$slots, "mapInfo", { key: 6 }, void 0, true) : createCommentVNode("", true),
|
|
476883
|
+
hasMapInfoSlot.value ? renderSlot(_ctx.$slots, "map-info", { key: 7 }, void 0, true) : createCommentVNode("", true),
|
|
476987
476884
|
finalEnableLayerPanel.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
476988
476885
|
key: 8,
|
|
476989
476886
|
modelValue: showLayerPanel.value,
|
|
@@ -476992,30 +476889,30 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476992
476889
|
hasLayerPanelSlot.value ? {
|
|
476993
476890
|
name: "default",
|
|
476994
476891
|
fn: withCtx((panel) => [
|
|
476995
|
-
renderSlot(_ctx.$slots, "layerPanel", normalizeProps(guardReactiveProps(panel))),
|
|
476996
|
-
renderSlot(_ctx.$slots, "layer-panel", normalizeProps(guardReactiveProps(panel)))
|
|
476892
|
+
renderSlot(_ctx.$slots, "layerPanel", normalizeProps(guardReactiveProps(panel)), void 0, true),
|
|
476893
|
+
renderSlot(_ctx.$slots, "layer-panel", normalizeProps(guardReactiveProps(panel)), void 0, true)
|
|
476997
476894
|
]),
|
|
476998
476895
|
key: "0"
|
|
476999
476896
|
} : void 0,
|
|
477000
476897
|
hasLayerPanelTitleSlot.value ? {
|
|
477001
476898
|
name: "title",
|
|
477002
476899
|
fn: withCtx(() => [
|
|
477003
|
-
renderSlot(_ctx.$slots, "layerPanelTitle"),
|
|
477004
|
-
renderSlot(_ctx.$slots, "layer-panel-title"),
|
|
477005
|
-
renderSlot(_ctx.$slots, "title")
|
|
476900
|
+
renderSlot(_ctx.$slots, "layerPanelTitle", {}, void 0, true),
|
|
476901
|
+
renderSlot(_ctx.$slots, "layer-panel-title", {}, void 0, true),
|
|
476902
|
+
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
477006
476903
|
]),
|
|
477007
476904
|
key: "1"
|
|
477008
476905
|
} : void 0,
|
|
477009
476906
|
hasLayerPanelFooterSlot.value ? {
|
|
477010
476907
|
name: "footer",
|
|
477011
476908
|
fn: withCtx((panel) => [
|
|
477012
|
-
renderSlot(_ctx.$slots, "layerPanelFooter", normalizeProps(guardReactiveProps(panel))),
|
|
477013
|
-
renderSlot(_ctx.$slots, "layer-panel-footer", normalizeProps(guardReactiveProps(panel)))
|
|
476909
|
+
renderSlot(_ctx.$slots, "layerPanelFooter", normalizeProps(guardReactiveProps(panel)), void 0, true),
|
|
476910
|
+
renderSlot(_ctx.$slots, "layer-panel-footer", normalizeProps(guardReactiveProps(panel)), void 0, true)
|
|
477014
476911
|
]),
|
|
477015
476912
|
key: "2"
|
|
477016
476913
|
} : void 0
|
|
477017
476914
|
]), 1032, ["modelValue"])) : createCommentVNode("", true),
|
|
477018
|
-
showLegend.value ? (openBlock(), createBlock(
|
|
476915
|
+
showLegend.value ? (openBlock(), createBlock(OlLegendPanel, {
|
|
477019
476916
|
key: 9,
|
|
477020
476917
|
position: finalLegendPosition.value,
|
|
477021
476918
|
width: finalLegendWidth.value,
|
|
@@ -477027,42 +476924,55 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
477027
476924
|
"top-offset": props.legendTopOffset,
|
|
477028
476925
|
"bottom-offset": props.legendBottomOffset
|
|
477029
476926
|
}, null, 8, ["position", "width", "collapsible", "default-collapsed", "show-only-visible", "left-offset", "right-offset", "top-offset", "bottom-offset"])) : createCommentVNode("", true),
|
|
477030
|
-
hasLegendSlot.value ? renderSlot(_ctx.$slots, "legend", { key: 10 }) : createCommentVNode("", true),
|
|
477031
|
-
measurementResults.value.length > 0 ? (openBlock(),
|
|
477032
|
-
|
|
477033
|
-
|
|
477034
|
-
|
|
477035
|
-
|
|
477036
|
-
|
|
477037
|
-
|
|
477038
|
-
|
|
477039
|
-
|
|
477040
|
-
|
|
477041
|
-
|
|
477042
|
-
|
|
477043
|
-
|
|
477044
|
-
|
|
476927
|
+
hasLegendSlot.value ? renderSlot(_ctx.$slots, "legend", { key: 10 }, void 0, true) : createCommentVNode("", true),
|
|
476928
|
+
measurementResults.value.length > 0 ? (openBlock(), createBlock(_component_el_card, {
|
|
476929
|
+
key: 11,
|
|
476930
|
+
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",
|
|
476931
|
+
"body-style": { padding: "0px" },
|
|
476932
|
+
shadow: "always"
|
|
476933
|
+
}, {
|
|
476934
|
+
header: withCtx(() => [
|
|
476935
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
476936
|
+
_cache[6] || (_cache[6] = createElementVNode("span", {
|
|
476937
|
+
class: "text-sm font-bold",
|
|
476938
|
+
style: { "color": "var(--el-text-color-primary)" }
|
|
476939
|
+
}, "测量结果", -1)),
|
|
476940
|
+
createVNode$1(_component_el_button, {
|
|
476941
|
+
link: "",
|
|
476942
|
+
size: "small",
|
|
476943
|
+
onClick: clearAllMeasurements,
|
|
476944
|
+
icon: unref(delete_default)
|
|
476945
|
+
}, {
|
|
476946
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
476947
|
+
createTextVNode(" 清除 ", -1)
|
|
476948
|
+
])]),
|
|
476949
|
+
_: 1
|
|
476950
|
+
}, 8, ["icon"])
|
|
476951
|
+
])
|
|
477045
476952
|
]),
|
|
477046
|
-
|
|
477047
|
-
(
|
|
477048
|
-
|
|
477049
|
-
|
|
477050
|
-
|
|
477051
|
-
|
|
477052
|
-
|
|
477053
|
-
createElementVNode("
|
|
477054
|
-
|
|
477055
|
-
|
|
477056
|
-
|
|
477057
|
-
|
|
477058
|
-
|
|
477059
|
-
|
|
477060
|
-
|
|
477061
|
-
|
|
477062
|
-
|
|
477063
|
-
|
|
477064
|
-
|
|
477065
|
-
|
|
476953
|
+
default: withCtx(() => [
|
|
476954
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
476955
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(measurementResults.value, (result, index2) => {
|
|
476956
|
+
return openBlock(), createElementBlock("div", {
|
|
476957
|
+
key: result.id,
|
|
476958
|
+
class: "measurement-item flex items-center justify-between px-3 py-2 mb-1 rounded transition-colors duration-200"
|
|
476959
|
+
}, [
|
|
476960
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
476961
|
+
createElementVNode("span", _hoisted_4$1, toDisplayString(result.type === "length" ? "长度" : "面积"), 1),
|
|
476962
|
+
createElementVNode("span", _hoisted_5$1, toDisplayString(formatMeasurementValue(result)), 1)
|
|
476963
|
+
]),
|
|
476964
|
+
createVNode$1(_component_el_button, {
|
|
476965
|
+
link: "",
|
|
476966
|
+
size: "small",
|
|
476967
|
+
onClick: ($event) => removeMeasurement(result.id),
|
|
476968
|
+
icon: unref(close_default)
|
|
476969
|
+
}, null, 8, ["onClick", "icon"])
|
|
476970
|
+
]);
|
|
476971
|
+
}), 128))
|
|
476972
|
+
])
|
|
476973
|
+
]),
|
|
476974
|
+
_: 1
|
|
476975
|
+
})) : createCommentVNode("", true),
|
|
477066
476976
|
map2.value && ((_a3 = finalMapConfig.value.baseLayers) == null ? void 0 : _a3.length) ? (openBlock(), createBlock(OlBaseLayerSwitcher, {
|
|
477067
476977
|
key: 12,
|
|
477068
476978
|
map: map2.value,
|
|
@@ -477079,6 +476989,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
477079
476989
|
};
|
|
477080
476990
|
}
|
|
477081
476991
|
});
|
|
476992
|
+
const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-736d12b7"]]);
|
|
477082
476993
|
const _hoisted_1$1 = ["href"];
|
|
477083
476994
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
477084
476995
|
__name: "index",
|
|
@@ -488790,7 +488701,7 @@ function(t3) {
|
|
|
488790
488701
|
*/
|
|
488791
488702
|
function(t3) {
|
|
488792
488703
|
function e8() {
|
|
488793
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
488704
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-e4a6ccb9.mjs")).catch(function(t4) {
|
|
488794
488705
|
return Promise.reject(new Error("Could not load canvg: " + t4));
|
|
488795
488706
|
}).then(function(t4) {
|
|
488796
488707
|
return t4.default ? t4.default : t4;
|
|
@@ -497664,30 +497575,30 @@ const getAssetUrl = (path2) => {
|
|
|
497664
497575
|
}
|
|
497665
497576
|
};
|
|
497666
497577
|
const install = (app) => {
|
|
497667
|
-
app.component("OlMap",
|
|
497578
|
+
app.component("OlMap", OlMap);
|
|
497668
497579
|
app.component("OlMapContainer", _sfc_main$e);
|
|
497669
497580
|
app.component("OlDrawToolbar", OlDrawToolbar);
|
|
497670
497581
|
app.component("OlControlPanel", OlControlPanel);
|
|
497671
497582
|
app.component("OlMapSearch", _sfc_main$c);
|
|
497672
497583
|
app.component("OlMapTooltip", _sfc_main$3);
|
|
497673
|
-
app.component("OlLegendPanel",
|
|
497584
|
+
app.component("OlLegendPanel", OlLegendPanel);
|
|
497674
497585
|
app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
|
|
497675
|
-
app.component("CustomOpenlayer",
|
|
497586
|
+
app.component("CustomOpenlayer", OlMap);
|
|
497676
497587
|
app.component("CustomDialog", _sfc_main);
|
|
497677
|
-
app.component("EPlusDialog",
|
|
497588
|
+
app.component("EPlusDialog", X$1);
|
|
497678
497589
|
app.component("SvgIcon", _sfc_main$1);
|
|
497679
497590
|
};
|
|
497680
497591
|
const index = {
|
|
497681
497592
|
install,
|
|
497682
|
-
OlMap
|
|
497683
|
-
CustomOpenlayer:
|
|
497593
|
+
OlMap,
|
|
497594
|
+
CustomOpenlayer: OlMap,
|
|
497684
497595
|
CustomDialog: _sfc_main,
|
|
497685
|
-
EPlusDialog:
|
|
497596
|
+
EPlusDialog: X$1,
|
|
497686
497597
|
SvgIcon: _sfc_main$1
|
|
497687
497598
|
};
|
|
497688
497599
|
const version = "1.0.0";
|
|
497689
497600
|
export {
|
|
497690
|
-
|
|
497601
|
+
debugWarn as $,
|
|
497691
497602
|
ElButton as A,
|
|
497692
497603
|
ElFocusTrap as B,
|
|
497693
497604
|
ElInput as C,
|
|
@@ -497711,73 +497622,74 @@ export {
|
|
|
497711
497622
|
isClient as U,
|
|
497712
497623
|
hasOwn$2 as V,
|
|
497713
497624
|
isObject$e as W,
|
|
497714
|
-
|
|
497715
|
-
|
|
497716
|
-
|
|
497625
|
+
X$1 as X,
|
|
497626
|
+
isUndefined$3 as Y,
|
|
497627
|
+
isElement$2 as Z,
|
|
497717
497628
|
_asyncToGenerator as _,
|
|
497718
497629
|
_$1 as a,
|
|
497719
|
-
|
|
497720
|
-
|
|
497721
|
-
_sfc_main$
|
|
497722
|
-
|
|
497723
|
-
|
|
497724
|
-
|
|
497725
|
-
|
|
497726
|
-
_sfc_main$
|
|
497727
|
-
_sfc_main$
|
|
497728
|
-
|
|
497729
|
-
|
|
497730
|
-
|
|
497731
|
-
|
|
497732
|
-
|
|
497733
|
-
|
|
497734
|
-
|
|
497735
|
-
|
|
497736
|
-
|
|
497737
|
-
|
|
497738
|
-
|
|
497739
|
-
|
|
497740
|
-
|
|
497741
|
-
|
|
497742
|
-
|
|
497743
|
-
|
|
497744
|
-
|
|
497745
|
-
|
|
497746
|
-
|
|
497747
|
-
|
|
497748
|
-
|
|
497749
|
-
|
|
497750
|
-
|
|
497751
|
-
|
|
497752
|
-
|
|
497753
|
-
|
|
497754
|
-
|
|
497755
|
-
|
|
497756
|
-
|
|
497757
|
-
|
|
497758
|
-
|
|
497759
|
-
|
|
497760
|
-
|
|
497761
|
-
|
|
497762
|
-
|
|
497763
|
-
|
|
497764
|
-
|
|
497765
|
-
|
|
497766
|
-
|
|
497767
|
-
|
|
497768
|
-
|
|
497769
|
-
|
|
497770
|
-
|
|
497771
|
-
|
|
497772
|
-
|
|
497773
|
-
|
|
497774
|
-
|
|
497775
|
-
|
|
497776
|
-
|
|
497777
|
-
|
|
497778
|
-
|
|
497779
|
-
|
|
497780
|
-
|
|
497630
|
+
DrawingManager as a0,
|
|
497631
|
+
close_default as a1,
|
|
497632
|
+
_sfc_main$9 as a2,
|
|
497633
|
+
OlMap as a3,
|
|
497634
|
+
_sfc_main$e as a4,
|
|
497635
|
+
OlDrawToolbar as a5,
|
|
497636
|
+
OlControlPanel as a6,
|
|
497637
|
+
_sfc_main$c as a7,
|
|
497638
|
+
_sfc_main$3 as a8,
|
|
497639
|
+
OlLegendPanel as a9,
|
|
497640
|
+
TextDrawing as aA,
|
|
497641
|
+
TextDrawingFactory as aB,
|
|
497642
|
+
PointWithTextDrawing as aC,
|
|
497643
|
+
PointWithTextDrawingFactory as aD,
|
|
497644
|
+
IconDrawing as aE,
|
|
497645
|
+
IconDrawingFactory as aF,
|
|
497646
|
+
LineDrawing as aG,
|
|
497647
|
+
LineDrawingFactory as aH,
|
|
497648
|
+
PolygonDrawing as aI,
|
|
497649
|
+
PolygonDrawingFactory as aJ,
|
|
497650
|
+
MultiPolygonDrawing as aK,
|
|
497651
|
+
MultiPolygonDrawingFactory as aL,
|
|
497652
|
+
MultiPointDrawing as aM,
|
|
497653
|
+
MultiPointDrawingFactory as aN,
|
|
497654
|
+
MultiLineStringDrawing as aO,
|
|
497655
|
+
MultiLineStringDrawingFactory as aP,
|
|
497656
|
+
ImageDrawing as aQ,
|
|
497657
|
+
ImageDrawingFactory as aR,
|
|
497658
|
+
MilitaryDrawing as aS,
|
|
497659
|
+
MilitaryDrawingFactory as aT,
|
|
497660
|
+
DrawingManagerFactory as aU,
|
|
497661
|
+
MapOperationTool as aV,
|
|
497662
|
+
htmlToPDF as aW,
|
|
497663
|
+
MapManager as aX,
|
|
497664
|
+
FilterType as aY,
|
|
497665
|
+
FilterOperator as aZ,
|
|
497666
|
+
SpatialFilterType as a_,
|
|
497667
|
+
OlBaseLayerSwitcher as aa,
|
|
497668
|
+
_sfc_main as ab,
|
|
497669
|
+
_sfc_main$1 as ac,
|
|
497670
|
+
install as ad,
|
|
497671
|
+
index as ae,
|
|
497672
|
+
version as af,
|
|
497673
|
+
VectorTileLayerHandler as ag,
|
|
497674
|
+
getAssetUrl as ah,
|
|
497675
|
+
LayerManager as ai,
|
|
497676
|
+
MeasurementTool as aj,
|
|
497677
|
+
MapStorage as ak,
|
|
497678
|
+
BasemapManager as al,
|
|
497679
|
+
createBasemapManager as am,
|
|
497680
|
+
getUnitOptions as an,
|
|
497681
|
+
DrawingFactoryRegistry as ao,
|
|
497682
|
+
createDrawing as ap,
|
|
497683
|
+
getSupportedDrawingTypes as aq,
|
|
497684
|
+
isValidDrawingType as ar,
|
|
497685
|
+
createDrawingFromJSON as as,
|
|
497686
|
+
DrawingPresets as at,
|
|
497687
|
+
getDrawingPreset as au,
|
|
497688
|
+
applyDrawingPreset as av,
|
|
497689
|
+
DrawingUtils as aw,
|
|
497690
|
+
BaseDrawing as ax,
|
|
497691
|
+
PointDrawing as ay,
|
|
497692
|
+
PointDrawingFactory as az,
|
|
497781
497693
|
_defineProperty as b,
|
|
497782
497694
|
commonjsGlobal as c,
|
|
497783
497695
|
_export_sfc as d,
|