vue-openlayers-plugin 1.0.88 → 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.
Files changed (28) hide show
  1. package/lib/{BasemapPanel-ca055f97.mjs → BasemapPanel-cba3afd6.mjs} +6 -6
  2. package/lib/{CoordinateLocationDialog-bcb93549.mjs → CoordinateLocationDialog-6e8a5f24.mjs} +1 -1
  3. package/lib/{FilterPanel-5493db0e.mjs → FilterPanel-9a8e2aca.mjs} +1 -1
  4. package/lib/{MapPrintDialog-cde4a9cc.mjs → LayerPanel-be35370b.mjs} +1 -1
  5. package/lib/{LayerPanel-467aaf4a.mjs → MapPrintDialog-03c0823b.mjs} +1 -1
  6. package/lib/{MeasurementDialog-48a220c5.mjs → MeasurementDialog-7fce097a.mjs} +7 -7
  7. package/lib/{MyMarkersDialog-6cd29bfa.mjs → MyMarkersDialog-7dd24d9a.mjs} +2 -2
  8. package/lib/{ViewBookmarksDialog-2e388ac1.mjs → ViewBookmarksDialog-60c9e851.mjs} +2 -2
  9. package/lib/{index-30ef3c66.mjs → index-05da77ba.mjs} +437 -524
  10. package/lib/{index-9a7511e2.mjs → index-7aae577e.mjs} +1 -1
  11. package/lib/{index-365a4c9c.mjs → index-b3c7ea8d.mjs} +1 -1
  12. package/lib/{index.es-051b071d.mjs → index.es-e4a6ccb9.mjs} +1 -1
  13. package/lib/index.esm.js +63 -63
  14. package/lib/index.umd.js +380 -467
  15. package/lib/style.css +318 -353
  16. package/package.json +1 -1
  17. package/types/src/components/CustomDialog/CustomDialog.vue.d.ts +1 -1
  18. package/types/src/components/OlDialogs/BasemapPanel.vue.d.ts +1 -0
  19. package/types/src/components/OlDialogs/BasemapPanel.vue.d.ts.map +1 -1
  20. package/types/src/components/OlDialogs/LayerPanel.vue.d.ts.map +1 -1
  21. package/types/src/components/OlDialogs/MeasurementDialog.vue.d.ts +1 -0
  22. package/types/src/components/OlDialogs/MeasurementDialog.vue.d.ts.map +1 -1
  23. package/types/src/components/OlDrawToolbar.vue.d.ts.map +1 -1
  24. package/types/src/components/OlLegendPanel.vue.d.ts +2 -26
  25. package/types/src/components/OlLegendPanel.vue.d.ts.map +1 -1
  26. package/types/src/core/layers/BaseLayer.d.ts +8 -0
  27. package/types/src/core/layers/BaseLayer.d.ts.map +1 -1
  28. 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$a = ["src", "alt"];
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$6 = {
466354
+ const _hoisted_14$5 = {
466386
466355
  key: 3,
466387
466356
  class: "slideshow-controls"
466388
466357
  };
466389
- const _hoisted_15$5 = { class: "fullscreen-container" };
466390
- const _hoisted_16$5 = ["src", "alt"];
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$a),
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$6, [
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$5, [
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$5),
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$9 = {
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$5 = { key: 0 };
466680
- const _hoisted_15$4 = ["src", "alt"];
466681
- const _hoisted_16$4 = { key: 1 };
466682
- const _hoisted_17$4 = ["href"];
466683
- const _hoisted_18$4 = { key: 2 };
466684
- const _hoisted_19$3 = { key: 3 };
466685
- const _hoisted_20$3 = { key: 4 };
466686
- const _hoisted_21$3 = {
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$2 = ["onClick"];
466691
- const _hoisted_23$2 = { class: "field-label" };
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$9, [
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$5, [
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$4)
466963
- ])) : field.type === "link" ? (openBlock(), createElementBlock("span", _hoisted_16$4, [
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$4)
466969
- ])) : field.type === "date" ? (openBlock(), createElementBlock("span", _hoisted_18$4, toDisplayString(formatDate(getFieldValue(item, field.key || field.name))), 1)) : field.type === "number" ? (openBlock(), createElementBlock("span", _hoisted_19$3, toDisplayString(formatNumber2(getFieldValue(item, field.key || field.name))), 1)) : (openBlock(), createElementBlock("span", _hoisted_20$3, toDisplayString(getFieldValue(item, field.key || field.name)), 1))
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$3, [
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$2, toDisplayString(field.label) + ":", 1),
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$2);
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-48a220c5.mjs"),
468749
- "basemap": () => import("./BasemapPanel-ca055f97.mjs"),
468750
- "print": () => import("./MapPrintDialog-cde4a9cc.mjs"),
468751
- "layer-panel": () => import("./LayerPanel-467aaf4a.mjs"),
468752
- "coordinate": () => import("./CoordinateLocationDialog-bcb93549.mjs"),
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-6cd29bfa.mjs"),
468755
- "view-bookmarks": () => import("./ViewBookmarksDialog-2e388ac1.mjs"),
468756
- "map-drawing": () => import("./index-9a7511e2.mjs"),
468757
- "filter-panel": () => import("./FilterPanel-5493db0e.mjs")
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-65f64ab9"]]);
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$8 = { class: "item-content" };
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$4 = ["innerHTML"];
469882
- const _hoisted_15$3 = ["innerHTML"];
469883
- const _hoisted_16$3 = {
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$3 = {
469856
+ const _hoisted_17$2 = {
469888
469857
  key: 0,
469889
469858
  class: "item-confidence"
469890
469859
  };
469891
- const _hoisted_18$3 = {
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$8, [
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$4),
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$3),
470289
- result.type ? (openBlock(), createElementBlock("div", _hoisted_16$3, toDisplayString(result.type), 1)) : createCommentVNode("", true)
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$3, toDisplayString(Math.round(result.confidence * 100)) + "%", 1)) : createCommentVNode("", true)
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$3, [
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-e2bbe659"]]);
470998
- const _hoisted_1$a = { class: "flex items-center justify-between px-4 py-3 border-b border-gray-200 bg-gray-50 rounded-t-lg" };
470999
- const _hoisted_2$9 = { class: "panel-actions" };
471000
- const _hoisted_3$9 = { class: "panel-content max-h-125 overflow-y-auto" };
471001
- const _hoisted_4$9 = { class: "p-2" };
471002
- const _hoisted_5$9 = { class: "legend-content p-2" };
471003
- const _hoisted_6$7 = { key: 0 };
471004
- const _hoisted_7$6 = { class: "text-xs text-gray-600" };
471005
- const _hoisted_8$6 = { key: 1 };
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 _hoisted_19$2 = { class: "text-xs text-gray-600" };
471020
- const _hoisted_20$2 = {
471021
- key: 5,
471022
- class: "text-xs text-gray-600 leading-relaxed"
470976
+ const _hoisted_7$6 = { class: "gradient-labels" };
470977
+ const _hoisted_8$6 = {
470978
+ key: 0,
470979
+ class: "gradient-unit"
471023
470980
  };
471024
- const _hoisted_21$2 = ["innerHTML"];
471025
- const _hoisted_22$1 = {
471026
- key: 6,
471027
- class: "text-xs text-gray-500 leading-relaxed mt-2"
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 _hoisted_23$1 = {
470988
+ const _hoisted_13$4 = {
471030
470989
  key: 1,
471031
- class: "py-10 px-5 text-center"
470990
+ class: "empty-state"
471032
470991
  };
471033
470992
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
471034
470993
  __name: "OlLegendPanel",
471035
470994
  props: {
471036
- position: { default: "right" },
471037
- width: { default: 280 },
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
- visible: { type: Boolean, default: false },
471042
- leftOffset: { default: void 0 },
471043
- rightOffset: { default: void 0 },
471044
- topOffset: { default: void 0 },
471045
- bottomOffset: { default: void 0 }
470999
+ leftOffset: {},
471000
+ rightOffset: {},
471001
+ topOffset: {},
471002
+ bottomOffset: {}
471046
471003
  },
471047
- emits: ["update:visible"],
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 visibleLayerIds = ref([]);
471007
+ const activeNames = ref([]);
471053
471008
  const legends = ref([]);
471054
- const handleLayersInitialized = (layers) => {
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 styles = {
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
- if (props.leftOffset !== void 0) {
471064
- styles.left = typeof props.leftOffset === "number" ? `${props.leftOffset}px` : props.leftOffset;
471065
- } else if (props.rightOffset !== void 0) {
471066
- styles.right = typeof props.rightOffset === "number" ? `${props.rightOffset}px` : props.rightOffset;
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
- styles[props.position] = "0";
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 (props.bottomOffset !== void 0) {
471074
- styles.bottom = typeof props.bottomOffset === "number" ? `${props.bottomOffset}px` : props.bottomOffset;
471069
+ if (item.borderColor) {
471070
+ style.border = `1px solid ${item.borderColor}`;
471071
+ style.boxSizing = "border-box";
471075
471072
  }
471076
- return styles;
471077
- });
471078
- const visibleLegends = computed(() => {
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 legends.value.filter(
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 initializeLegendsFromConfig = (layers) => {
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 newVisibleLayerIds = [];
471083
+ const newVisibleIds = [];
471095
471084
  layers.forEach((layer2) => {
471096
471085
  var _a3;
471097
- if (layer2.visible) {
471098
- newVisibleLayerIds.push(layer2.id);
471099
- }
471100
- const legendConfig = layer2.legend || ((_a3 = layer2.config) == null ? void 0 : _a3.legend);
471101
- if (legendConfig) {
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: legendConfig.title || layer2.name || layer2.id,
471105
- items: legendConfig.items || [],
471092
+ title: config.title || layer2.name || layer2.id,
471093
+ items: config.items || [],
471106
471094
  visible: layer2.visible,
471107
- type: legendConfig.type || "color"
471108
- // 默认类型为color
471109
- };
471110
- newLegends.push(newLegend);
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 = newVisibleLayerIds;
471108
+ visibleLayerIds.value = newVisibleIds;
471115
471109
  };
471116
- const handleLayerVisibilityChange = (event) => {
471117
- if (event.visible) {
471118
- if (!visibleLayerIds.value.includes(event.layerId)) {
471119
- visibleLayerIds.value.push(event.layerId);
471120
- }
471110
+ const handleLayerVisibility = ({ layerId, visible }) => {
471111
+ if (visible) {
471112
+ if (!visibleLayerIds.value.includes(layerId))
471113
+ visibleLayerIds.value.push(layerId);
471121
471114
  } else {
471122
- const index2 = visibleLayerIds.value.indexOf(event.layerId);
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 = (event) => {
471133
- var _a3;
471134
- const layerConfig = event.layerConfig;
471135
- if (layerConfig) {
471136
- const legendConfig = layerConfig.legend || ((_a3 = layerConfig.config) == null ? void 0 : _a3.legend);
471137
- if (legendConfig) {
471138
- const newLegend = {
471139
- layerId: event.layerId,
471140
- title: legendConfig.title || layerConfig.name || event.layerName,
471141
- items: legendConfig.items || [],
471142
- visible: event.visible,
471143
- type: legendConfig.type || "color"
471144
- // 默认类型为color
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 = (event) => {
471154
- const legendIndex = legends.value.findIndex((legend) => legend.layerId === event.layerId);
471155
- if (legendIndex > -1) {
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
- console.log("LegendPanel mounted");
471165
- layerEventBus.on("layer-visibility-change", handleLayerVisibilityChange);
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("layer-visibility-change", handleLayerVisibilityChange);
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 _component_el_button = resolveComponent("el-button");
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(["custom-legend-box absolute bg-white rounded-lg bottom-40px shadow-lg transition-all duration-300 max-h-[calc(100vh-40px)] overflow-hidden z-1000", { "legend-collapsed": isCollapsed.value }]),
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("h3", { class: "m-0 text-sm font-semibold text-gray-800" }, "图例", -1)),
471160
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "header-title" }, "图例", -1)),
471245
471161
  createElementVNode("div", _hoisted_2$9, [
471246
- createVNode$1(_component_el_button, {
471247
- link: "",
471248
- size: "small",
471162
+ createVNode$1(_component_el_icon, {
471163
+ class: "action-icon",
471249
471164
  onClick: toggleCollapse,
471250
- icon: isCollapsed.value ? unref(expand_default) : unref(fold_default)
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(true), createElementBlock(Fragment, null, renderList(visibleLegends.value, (legend) => {
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, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_23$1, [
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$6 = { class: "value-text" };
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$6, toDisplayString(_ctx.filters.saturate) + "%", 1)
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$5 = { class: "config-item" };
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$5, [
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$4 = { class: "config-item" };
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, { onClose: handleClose }), createSlots({
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$4, [
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$3 = {
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$3, [
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$2 = { class: "property-key" };
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$2, toDisplayString(key) + ":", 1),
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
- key: 11,
475672
- class: "absolute top-15 right-2.5 w-62.5 max-h-75 bg-white rounded-md shadow-lg z-1000 overflow-hidden md:w-50 md:top-20 md:right-1.25"
475673
- };
475674
- const _hoisted_2$1 = { class: "flex items-center justify-between px-4 py-3 border-b border-gray-200 bg-gray-50" };
475675
- const _hoisted_3$1 = { class: "max-h-50 overflow-y-auto p-2" };
475676
- const _hoisted_4$1 = { class: "flex-1 flex flex-col gap-0.5" };
475677
- const _hoisted_5$1 = { class: "text-xs text-gray-500" };
475678
- const _hoisted_6$1 = { class: "text-sm font-semibold text-gray-800 font-mono" };
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(_sfc_main$a, {
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(), createElementBlock("div", _hoisted_1$2, [
477031
- createElementVNode("div", _hoisted_2$1, [
477032
- _cache[6] || (_cache[6] = createElementVNode("h4", { class: "m-0 text-sm font-semibold text-gray-800" }, "测量结果", -1)),
477033
- createVNode$1(_component_el_button, {
477034
- link: "",
477035
- size: "small",
477036
- onClick: clearAllMeasurements,
477037
- icon: unref(delete_default)
477038
- }, {
477039
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
477040
- createTextVNode(" 清除 ", -1)
477041
- ])]),
477042
- _: 1
477043
- }, 8, ["icon"])
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
- createElementVNode("div", _hoisted_3$1, [
477046
- (openBlock(true), createElementBlock(Fragment, null, renderList(measurementResults.value, (result, index2) => {
477047
- return openBlock(), createElementBlock("div", {
477048
- key: result.id,
477049
- class: "flex items-center justify-between px-3 py-2 mb-1 bg-gray-50 rounded transition-colors duration-200 hover:bg-blue-50"
477050
- }, [
477051
- createElementVNode("div", _hoisted_4$1, [
477052
- createElementVNode("span", _hoisted_5$1, toDisplayString(result.type === "length" ? "长度" : "面积"), 1),
477053
- createElementVNode("span", _hoisted_6$1, toDisplayString(formatMeasurementValue(result)), 1)
477054
- ]),
477055
- createVNode$1(_component_el_button, {
477056
- link: "",
477057
- size: "small",
477058
- onClick: ($event) => removeMeasurement(result.id),
477059
- icon: unref(close_default)
477060
- }, null, 8, ["onClick", "icon"])
477061
- ]);
477062
- }), 128))
477063
- ])
477064
- ])) : createCommentVNode("", true),
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-051b071d.mjs")).catch(function(t4) {
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", _sfc_main$2);
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", _sfc_main$a);
497584
+ app.component("OlLegendPanel", OlLegendPanel);
497673
497585
  app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
497674
- app.component("CustomOpenlayer", _sfc_main$2);
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: _sfc_main$2,
497682
- CustomOpenlayer: _sfc_main$2,
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
- DrawingManager as $,
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
- isUndefined$3 as X,
497714
- isElement$2 as Y,
497715
- debugWarn as Z,
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
- close_default as a0,
497719
- _sfc_main$9 as a1,
497720
- _sfc_main$2 as a2,
497721
- _sfc_main$e as a3,
497722
- OlDrawToolbar as a4,
497723
- OlControlPanel as a5,
497724
- _sfc_main$c as a6,
497725
- _sfc_main$3 as a7,
497726
- _sfc_main$a as a8,
497727
- OlBaseLayerSwitcher as a9,
497728
- TextDrawingFactory as aA,
497729
- PointWithTextDrawing as aB,
497730
- PointWithTextDrawingFactory as aC,
497731
- IconDrawing as aD,
497732
- IconDrawingFactory as aE,
497733
- LineDrawing as aF,
497734
- LineDrawingFactory as aG,
497735
- PolygonDrawing as aH,
497736
- PolygonDrawingFactory as aI,
497737
- MultiPolygonDrawing as aJ,
497738
- MultiPolygonDrawingFactory as aK,
497739
- MultiPointDrawing as aL,
497740
- MultiPointDrawingFactory as aM,
497741
- MultiLineStringDrawing as aN,
497742
- MultiLineStringDrawingFactory as aO,
497743
- ImageDrawing as aP,
497744
- ImageDrawingFactory as aQ,
497745
- MilitaryDrawing as aR,
497746
- MilitaryDrawingFactory as aS,
497747
- DrawingManagerFactory as aT,
497748
- MapOperationTool as aU,
497749
- htmlToPDF as aV,
497750
- MapManager as aW,
497751
- FilterType as aX,
497752
- FilterOperator as aY,
497753
- SpatialFilterType as aZ,
497754
- _sfc_main as aa,
497755
- _sfc_main$1 as ab,
497756
- install as ac,
497757
- index as ad,
497758
- version as ae,
497759
- VectorTileLayerHandler as af,
497760
- getAssetUrl as ag,
497761
- LayerManager as ah,
497762
- MeasurementTool as ai,
497763
- MapStorage as aj,
497764
- BasemapManager as ak,
497765
- createBasemapManager as al,
497766
- getUnitOptions as am,
497767
- DrawingFactoryRegistry as an,
497768
- createDrawing as ao,
497769
- getSupportedDrawingTypes as ap,
497770
- isValidDrawingType as aq,
497771
- createDrawingFromJSON as ar,
497772
- DrawingPresets as as,
497773
- getDrawingPreset as at,
497774
- applyDrawingPreset as au,
497775
- DrawingUtils as av,
497776
- BaseDrawing as aw,
497777
- PointDrawing as ax,
497778
- PointDrawingFactory as ay,
497779
- TextDrawing as az,
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,