vue-openlayers-plugin 1.0.88 → 1.0.90
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-ca055f97.mjs → BasemapPanel-cba3afd6.mjs} +6 -6
- package/lib/{CoordinateLocationDialog-bcb93549.mjs → CoordinateLocationDialog-6e8a5f24.mjs} +1 -1
- package/lib/{FilterPanel-5493db0e.mjs → FilterPanel-9a8e2aca.mjs} +1 -1
- package/lib/{MapPrintDialog-cde4a9cc.mjs → LayerPanel-be35370b.mjs} +1 -1
- package/lib/{LayerPanel-467aaf4a.mjs → MapPrintDialog-03c0823b.mjs} +1 -1
- package/lib/{MeasurementDialog-48a220c5.mjs → MeasurementDialog-7fce097a.mjs} +7 -7
- package/lib/{MyMarkersDialog-6cd29bfa.mjs → MyMarkersDialog-7dd24d9a.mjs} +2 -2
- package/lib/{ViewBookmarksDialog-2e388ac1.mjs → ViewBookmarksDialog-60c9e851.mjs} +2 -2
- package/lib/{index-30ef3c66.mjs → index-05da77ba.mjs} +437 -524
- package/lib/{index-9a7511e2.mjs → index-7aae577e.mjs} +1 -1
- package/lib/{index-365a4c9c.mjs → index-b3c7ea8d.mjs} +1 -1
- package/lib/{index.es-051b071d.mjs → index.es-e4a6ccb9.mjs} +1 -1
- package/lib/index.esm.js +63 -63
- package/lib/index.umd.js +380 -467
- package/lib/style.css +319 -354
- package/package.json +2 -3
- 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
|
*/
|
|
@@ -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,
|
|
@@ -473185,7 +473078,7 @@ const _hoisted_2$5 = { class: "pb-2 flex items-center justify-between" };
|
|
|
473185
473078
|
const _hoisted_3$5 = { class: "text-xs font-semibold text-gray-700 px-1 py-1 border-b border-gray-200 mb-2" };
|
|
473186
473079
|
const _hoisted_4$5 = { class: "global-style-panel" };
|
|
473187
473080
|
const _hoisted_5$5 = { class: "config-section" };
|
|
473188
|
-
const _hoisted_6$
|
|
473081
|
+
const _hoisted_6$3 = { class: "config-item" };
|
|
473189
473082
|
const _hoisted_7$3 = { class: "current-style-display" };
|
|
473190
473083
|
const _hoisted_8$3 = { class: "style-preview" };
|
|
473191
473084
|
const dialogType = "layer-panel";
|
|
@@ -473958,7 +473851,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
473958
473851
|
return openBlock(), createBlock(unref(X$1), mergeProps({
|
|
473959
473852
|
modelValue: visible.value,
|
|
473960
473853
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event)
|
|
473961
|
-
}, dialogProps2.value, {
|
|
473854
|
+
}, dialogProps2.value, {
|
|
473855
|
+
"append-to-body": "",
|
|
473856
|
+
onClose: handleClose
|
|
473857
|
+
}), createSlots({
|
|
473962
473858
|
default: withCtx(() => [
|
|
473963
473859
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {
|
|
473964
473860
|
key: 0,
|
|
@@ -474128,7 +474024,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
474128
474024
|
}, {
|
|
474129
474025
|
default: withCtx(() => [
|
|
474130
474026
|
createElementVNode("div", _hoisted_5$5, [
|
|
474131
|
-
createElementVNode("div", _hoisted_6$
|
|
474027
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
474132
474028
|
createVNode$1(unref(ElInput), {
|
|
474133
474029
|
modelValue: unref(globalCustomCss),
|
|
474134
474030
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(globalCustomCss) ? globalCustomCss.value = $event : null),
|
|
@@ -474347,7 +474243,7 @@ const _hoisted_2$3 = { class: "h-150 overflow-y-auto" };
|
|
|
474347
474243
|
const _hoisted_3$3 = { class: "flex items-center justify-between" };
|
|
474348
474244
|
const _hoisted_4$3 = { class: "mb-5" };
|
|
474349
474245
|
const _hoisted_5$3 = { class: "mb-3" };
|
|
474350
|
-
const _hoisted_6$
|
|
474246
|
+
const _hoisted_6$2 = {
|
|
474351
474247
|
key: 0,
|
|
474352
474248
|
class: "mb-3"
|
|
474353
474249
|
};
|
|
@@ -474923,7 +474819,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
474923
474819
|
_: 1
|
|
474924
474820
|
}, 8, ["modelValue"])
|
|
474925
474821
|
]),
|
|
474926
|
-
printSettings.paperSize === "Custom" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
474822
|
+
printSettings.paperSize === "Custom" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
474927
474823
|
createElementVNode("div", _hoisted_7$2, [
|
|
474928
474824
|
createVNode$1(_component_el_input, {
|
|
474929
474825
|
modelValue: printSettings.customWidth,
|
|
@@ -475426,7 +475322,7 @@ const _hoisted_2$2 = ["innerHTML"];
|
|
|
475426
475322
|
const _hoisted_3$2 = { key: 1 };
|
|
475427
475323
|
const _hoisted_4$2 = { class: "layer-title" };
|
|
475428
475324
|
const _hoisted_5$2 = ["onClick"];
|
|
475429
|
-
const _hoisted_6$
|
|
475325
|
+
const _hoisted_6$1 = { class: "property-key" };
|
|
475430
475326
|
const _hoisted_7$1 = { class: "property-value" };
|
|
475431
475327
|
const _hoisted_8$1 = ["innerHTML"];
|
|
475432
475328
|
const _hoisted_9$1 = { key: 3 };
|
|
@@ -475620,7 +475516,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
475620
475516
|
key,
|
|
475621
475517
|
class: "property-item"
|
|
475622
475518
|
}, [
|
|
475623
|
-
createElementVNode("span", _hoisted_6$
|
|
475519
|
+
createElementVNode("span", _hoisted_6$1, toDisplayString(key) + ":", 1),
|
|
475624
475520
|
createElementVNode("span", _hoisted_7$1, toDisplayString(formatValue(value)), 1)
|
|
475625
475521
|
]);
|
|
475626
475522
|
}), 128))
|
|
@@ -475667,15 +475563,17 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
475667
475563
|
};
|
|
475668
475564
|
}
|
|
475669
475565
|
});
|
|
475670
|
-
const _hoisted_1$2 = {
|
|
475671
|
-
|
|
475672
|
-
|
|
475673
|
-
|
|
475674
|
-
|
|
475675
|
-
|
|
475676
|
-
|
|
475677
|
-
const _hoisted_5$1 = {
|
|
475678
|
-
|
|
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
|
+
};
|
|
475679
475577
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
475680
475578
|
__name: "OlMap",
|
|
475681
475579
|
props: {
|
|
@@ -476847,6 +476745,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476847
476745
|
var _a3;
|
|
476848
476746
|
const _component_el_icon = resolveComponent("el-icon");
|
|
476849
476747
|
const _component_el_button = resolveComponent("el-button");
|
|
476748
|
+
const _component_el_card = resolveComponent("el-card");
|
|
476850
476749
|
return openBlock(), createElementBlock("div", {
|
|
476851
476750
|
class: normalizeClass(["relative w-full h-full overflow-hidden", { "fixed top-0 left-0 w-screen h-screen z-9999": isFullscreen.value }])
|
|
476852
476751
|
}, [
|
|
@@ -476880,7 +476779,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476880
476779
|
formattedData,
|
|
476881
476780
|
coordinate,
|
|
476882
476781
|
pixel
|
|
476883
|
-
})
|
|
476782
|
+
}, void 0, true)
|
|
476884
476783
|
]),
|
|
476885
476784
|
_: 3
|
|
476886
476785
|
}, 8, ["config", "width", "height", "loading"]),
|
|
@@ -476969,20 +476868,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476969
476868
|
"left-offset": finalControlsConfig.value.leftOffset,
|
|
476970
476869
|
"right-offset": finalControlsConfig.value.rightOffset,
|
|
476971
476870
|
"top-offset": finalControlsConfig.value.topOffset,
|
|
476972
|
-
"bottom-offset": finalControlsConfig.value.bottomOffset
|
|
476973
|
-
class: "bg-white p-2 rounded-lg shadow-lg"
|
|
476871
|
+
"bottom-offset": finalControlsConfig.value.bottomOffset
|
|
476974
476872
|
}, {
|
|
476975
476873
|
custom: withCtx(({ controls }) => [
|
|
476976
476874
|
renderSlot(_ctx.$slots, "controls", {
|
|
476977
476875
|
controls,
|
|
476978
476876
|
map: map2.value
|
|
476979
|
-
})
|
|
476877
|
+
}, void 0, true)
|
|
476980
476878
|
]),
|
|
476981
476879
|
_: 3
|
|
476982
476880
|
}, 8, ["config", "position", "direction", "left-offset", "right-offset", "top-offset", "bottom-offset"])) : createCommentVNode("", true),
|
|
476983
|
-
hasToolbarSlot.value ? renderSlot(_ctx.$slots, "toolbar", { key: 5 }) : createCommentVNode("", true),
|
|
476984
|
-
hasMapInfoSlot.value ? renderSlot(_ctx.$slots, "mapInfo", { key: 6 }) : createCommentVNode("", true),
|
|
476985
|
-
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),
|
|
476986
476884
|
finalEnableLayerPanel.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
476987
476885
|
key: 8,
|
|
476988
476886
|
modelValue: showLayerPanel.value,
|
|
@@ -476991,30 +476889,30 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
476991
476889
|
hasLayerPanelSlot.value ? {
|
|
476992
476890
|
name: "default",
|
|
476993
476891
|
fn: withCtx((panel) => [
|
|
476994
|
-
renderSlot(_ctx.$slots, "layerPanel", normalizeProps(guardReactiveProps(panel))),
|
|
476995
|
-
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)
|
|
476996
476894
|
]),
|
|
476997
476895
|
key: "0"
|
|
476998
476896
|
} : void 0,
|
|
476999
476897
|
hasLayerPanelTitleSlot.value ? {
|
|
477000
476898
|
name: "title",
|
|
477001
476899
|
fn: withCtx(() => [
|
|
477002
|
-
renderSlot(_ctx.$slots, "layerPanelTitle"),
|
|
477003
|
-
renderSlot(_ctx.$slots, "layer-panel-title"),
|
|
477004
|
-
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)
|
|
477005
476903
|
]),
|
|
477006
476904
|
key: "1"
|
|
477007
476905
|
} : void 0,
|
|
477008
476906
|
hasLayerPanelFooterSlot.value ? {
|
|
477009
476907
|
name: "footer",
|
|
477010
476908
|
fn: withCtx((panel) => [
|
|
477011
|
-
renderSlot(_ctx.$slots, "layerPanelFooter", normalizeProps(guardReactiveProps(panel))),
|
|
477012
|
-
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)
|
|
477013
476911
|
]),
|
|
477014
476912
|
key: "2"
|
|
477015
476913
|
} : void 0
|
|
477016
476914
|
]), 1032, ["modelValue"])) : createCommentVNode("", true),
|
|
477017
|
-
showLegend.value ? (openBlock(), createBlock(
|
|
476915
|
+
showLegend.value ? (openBlock(), createBlock(OlLegendPanel, {
|
|
477018
476916
|
key: 9,
|
|
477019
476917
|
position: finalLegendPosition.value,
|
|
477020
476918
|
width: finalLegendWidth.value,
|
|
@@ -477026,42 +476924,55 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
477026
476924
|
"top-offset": props.legendTopOffset,
|
|
477027
476925
|
"bottom-offset": props.legendBottomOffset
|
|
477028
476926
|
}, null, 8, ["position", "width", "collapsible", "default-collapsed", "show-only-visible", "left-offset", "right-offset", "top-offset", "bottom-offset"])) : createCommentVNode("", true),
|
|
477029
|
-
hasLegendSlot.value ? renderSlot(_ctx.$slots, "legend", { key: 10 }) : createCommentVNode("", true),
|
|
477030
|
-
measurementResults.value.length > 0 ? (openBlock(),
|
|
477031
|
-
|
|
477032
|
-
|
|
477033
|
-
|
|
477034
|
-
|
|
477035
|
-
|
|
477036
|
-
|
|
477037
|
-
|
|
477038
|
-
|
|
477039
|
-
|
|
477040
|
-
|
|
477041
|
-
|
|
477042
|
-
|
|
477043
|
-
|
|
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
|
+
])
|
|
477044
476952
|
]),
|
|
477045
|
-
|
|
477046
|
-
(
|
|
477047
|
-
|
|
477048
|
-
|
|
477049
|
-
|
|
477050
|
-
|
|
477051
|
-
|
|
477052
|
-
createElementVNode("
|
|
477053
|
-
|
|
477054
|
-
|
|
477055
|
-
|
|
477056
|
-
|
|
477057
|
-
|
|
477058
|
-
|
|
477059
|
-
|
|
477060
|
-
|
|
477061
|
-
|
|
477062
|
-
|
|
477063
|
-
|
|
477064
|
-
|
|
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),
|
|
477065
476976
|
map2.value && ((_a3 = finalMapConfig.value.baseLayers) == null ? void 0 : _a3.length) ? (openBlock(), createBlock(OlBaseLayerSwitcher, {
|
|
477066
476977
|
key: 12,
|
|
477067
476978
|
map: map2.value,
|
|
@@ -477078,6 +476989,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
477078
476989
|
};
|
|
477079
476990
|
}
|
|
477080
476991
|
});
|
|
476992
|
+
const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-736d12b7"]]);
|
|
477081
476993
|
const _hoisted_1$1 = ["href"];
|
|
477082
476994
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
477083
476995
|
__name: "index",
|
|
@@ -488789,7 +488701,7 @@ function(t3) {
|
|
|
488789
488701
|
*/
|
|
488790
488702
|
function(t3) {
|
|
488791
488703
|
function e8() {
|
|
488792
|
-
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) {
|
|
488793
488705
|
return Promise.reject(new Error("Could not load canvg: " + t4));
|
|
488794
488706
|
}).then(function(t4) {
|
|
488795
488707
|
return t4.default ? t4.default : t4;
|
|
@@ -497663,30 +497575,30 @@ const getAssetUrl = (path2) => {
|
|
|
497663
497575
|
}
|
|
497664
497576
|
};
|
|
497665
497577
|
const install = (app) => {
|
|
497666
|
-
app.component("OlMap",
|
|
497578
|
+
app.component("OlMap", OlMap);
|
|
497667
497579
|
app.component("OlMapContainer", _sfc_main$e);
|
|
497668
497580
|
app.component("OlDrawToolbar", OlDrawToolbar);
|
|
497669
497581
|
app.component("OlControlPanel", OlControlPanel);
|
|
497670
497582
|
app.component("OlMapSearch", _sfc_main$c);
|
|
497671
497583
|
app.component("OlMapTooltip", _sfc_main$3);
|
|
497672
|
-
app.component("OlLegendPanel",
|
|
497584
|
+
app.component("OlLegendPanel", OlLegendPanel);
|
|
497673
497585
|
app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
|
|
497674
|
-
app.component("CustomOpenlayer",
|
|
497586
|
+
app.component("CustomOpenlayer", OlMap);
|
|
497675
497587
|
app.component("CustomDialog", _sfc_main);
|
|
497676
497588
|
app.component("EPlusDialog", X$1);
|
|
497677
497589
|
app.component("SvgIcon", _sfc_main$1);
|
|
497678
497590
|
};
|
|
497679
497591
|
const index = {
|
|
497680
497592
|
install,
|
|
497681
|
-
OlMap
|
|
497682
|
-
CustomOpenlayer:
|
|
497593
|
+
OlMap,
|
|
497594
|
+
CustomOpenlayer: OlMap,
|
|
497683
497595
|
CustomDialog: _sfc_main,
|
|
497684
497596
|
EPlusDialog: X$1,
|
|
497685
497597
|
SvgIcon: _sfc_main$1
|
|
497686
497598
|
};
|
|
497687
497599
|
const version = "1.0.0";
|
|
497688
497600
|
export {
|
|
497689
|
-
|
|
497601
|
+
debugWarn as $,
|
|
497690
497602
|
ElButton as A,
|
|
497691
497603
|
ElFocusTrap as B,
|
|
497692
497604
|
ElInput as C,
|
|
@@ -497710,73 +497622,74 @@ export {
|
|
|
497710
497622
|
isClient as U,
|
|
497711
497623
|
hasOwn$2 as V,
|
|
497712
497624
|
isObject$e as W,
|
|
497713
|
-
|
|
497714
|
-
|
|
497715
|
-
|
|
497625
|
+
X$1 as X,
|
|
497626
|
+
isUndefined$3 as Y,
|
|
497627
|
+
isElement$2 as Z,
|
|
497716
497628
|
_asyncToGenerator as _,
|
|
497717
497629
|
_$1 as a,
|
|
497718
|
-
|
|
497719
|
-
|
|
497720
|
-
_sfc_main$
|
|
497721
|
-
|
|
497722
|
-
|
|
497723
|
-
|
|
497724
|
-
|
|
497725
|
-
_sfc_main$
|
|
497726
|
-
_sfc_main$
|
|
497727
|
-
|
|
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
|
-
|
|
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,
|
|
497780
497693
|
_defineProperty as b,
|
|
497781
497694
|
commonjsGlobal as c,
|
|
497782
497695
|
_export_sfc as d,
|