vue-openlayers-plugin 1.2.0 → 1.2.1

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-d6e4ea88.mjs → BasemapPanel-aa284bf3.mjs} +1 -1
  2. package/lib/{CoordinateLocationDialog-81d00abc.mjs → CoordinateLocationDialog-6c0a6b23.mjs} +1 -1
  3. package/lib/{MapPrintDialog-64d46412.mjs → FilterPanel-b91325ac.mjs} +1 -1
  4. package/lib/{FilterPanel-7358e3fb.mjs → LayerPanel-88983648.mjs} +1 -1
  5. package/lib/{LayerPanel-9bf28955.mjs → MapPrintDialog-2e5a22e7.mjs} +1 -1
  6. package/lib/{MeasurementDialog-4e084192.mjs → MeasurementDialog-ebda57e6.mjs} +1 -1
  7. package/lib/{MyMarkersDialog-aa44e5bd.mjs → MyMarkersDialog-1f851036.mjs} +1 -1
  8. package/lib/{QuadCompareDialog-84a88cf9.mjs → QuadCompareDialog-8f624242.mjs} +1 -1
  9. package/lib/{RegionNavigationDialog-467ad6c0.mjs → RegionNavigationDialog-549597e1.mjs} +1 -1
  10. package/lib/{SplitCompareDialog-50410c0b.mjs → SplitCompareDialog-9bcce145.mjs} +1 -1
  11. package/lib/{SwipeCompareDialog-c322e2f6.mjs → SwipeCompareDialog-374b9865.mjs} +1 -1
  12. package/lib/{ViewBookmarksDialog-83cf5ec4.mjs → ViewBookmarksDialog-10b5fe14.mjs} +1 -1
  13. package/lib/{index-ee58f2f8.mjs → index-b9d6884a.mjs} +1 -1
  14. package/lib/{index-58704a25.mjs → index-e8d5fc75.mjs} +370 -74
  15. package/lib/{index.es-320e524d.mjs → index.es-ff0f4147.mjs} +1 -1
  16. package/lib/index.esm.js +1 -1
  17. package/lib/index.umd.js +356 -60
  18. package/lib/style.css +61 -19
  19. package/package.json +1 -1
  20. package/types/components/OlControlPanel.vue.d.ts +7 -3
  21. package/types/components/OlControlPanel.vue.d.ts.map +1 -1
  22. package/types/components/OlMap.vue.d.ts +3 -1
  23. package/types/components/OlMap.vue.d.ts.map +1 -1
  24. package/types/lowcode-entry.d.ts +5 -0
  25. package/types/lowcode-entry.d.ts.map +1 -1
  26. package/types/tsconfig.tsbuildinfo +1 -1
  27. package/types/types/map.d.ts +32 -0
  28. package/types/types/map.d.ts.map +1 -1
@@ -5,11 +5,11 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, normalizeClass, normalizeStyle as normalizeStyle$1, withModifiers, createElementVNode, createBlock, unref, withCtx, createTextVNode, createCommentVNode, renderSlot, nextTick, toDisplayString, onUnmounted, createVNode as createVNode$1, Fragment, renderList, h as h$3, createApp, inject, provide, isRef, resolveDirective, withDirectives, vShow, defineAsyncComponent, reactive, shallowRef, resolveComponent, resolveDynamicComponent, withKeys, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, watchEffect, Teleport } from "vue";
8
- import { MapLocation, Grid as Grid$6, Tools, Location, Guide, Flag, Printer, EditPen, Delete, Switch, DocumentCopy, Search, Loading, Clock, InfoFilled, Plus, Minus, RefreshLeft, RefreshRight, Right, FullScreen, Aim, Menu as Menu$2, View as View$4, Expand, FolderOpened, DataBoard, Setting, Download, Refresh, ZoomIn, ZoomOut, Document as Document$1, Position, Close } from "@element-plus/icons-vue";
8
+ import { MapLocation, Grid as Grid$6, Tools, Location, Guide, Flag, Printer, EditPen, Delete, Switch, DocumentCopy, Search, Loading, Clock, InfoFilled, Plus, Minus, RefreshLeft, RefreshRight, Right, FullScreen, Aim, Menu as Menu$2, View as View$4, Expand, Share, CircleCheck, FolderOpened, DataBoard, Setting, Download, Refresh, ZoomIn, ZoomOut, Document as Document$1, Position, Close } from "@element-plus/icons-vue";
9
9
  import { Feature as Feature$3, Map as Map$4 } from "ol";
10
10
  import proj4 from "proj4";
11
11
  import { TileSuperMapRest, Util as Util$3, GetFeaturesByGeometryParameters as GetFeaturesByGeometryParameters$1, FeatureService } from "@supermapgis/iclient-ol";
12
- import { ElButton, ElInput, ElIcon, ElDialog } from "element-plus";
12
+ import { ElButton, ElInput, ElIcon, ElPopover, ElTooltip, ElCheckbox, ElDialog } from "element-plus";
13
13
  function _mergeNamespaces(n2, m2) {
14
14
  for (var i = 0; i < m2.length; i++) {
15
15
  const e8 = m2[i];
@@ -4183,7 +4183,6 @@ function transformGeom2D(simpleGeometry, transform3, dest) {
4183
4183
  dest
4184
4184
  );
4185
4185
  }
4186
- const SimpleGeometry$1 = SimpleGeometry;
4187
4186
  function linearRing(flatCoordinates, offset2, end3, stride) {
4188
4187
  let twiceArea = 0;
4189
4188
  const x0 = flatCoordinates[end3 - stride];
@@ -4636,7 +4635,7 @@ function quantizeMultiArray(flatCoordinates, offset2, endss, stride, tolerance2,
4636
4635
  }
4637
4636
  return simplifiedOffset;
4638
4637
  }
4639
- let LinearRing$1 = class LinearRing extends SimpleGeometry$1 {
4638
+ let LinearRing$1 = class LinearRing extends SimpleGeometry {
4640
4639
  /**
4641
4640
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
4642
4641
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -4793,7 +4792,7 @@ let LinearRing$1 = class LinearRing extends SimpleGeometry$1 {
4793
4792
  }
4794
4793
  };
4795
4794
  const LinearRing$2 = LinearRing$1;
4796
- let Point$5 = class Point extends SimpleGeometry$1 {
4795
+ let Point$5 = class Point extends SimpleGeometry {
4797
4796
  /**
4798
4797
  * @param {import("../coordinate.js").Coordinate} coordinates Coordinates.
4799
4798
  * @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
@@ -5278,7 +5277,7 @@ function inflateEnds(flatCoordinates, ends) {
5278
5277
  }
5279
5278
  return endss;
5280
5279
  }
5281
- let Polygon$6 = class Polygon extends SimpleGeometry$1 {
5280
+ let Polygon$6 = class Polygon extends SimpleGeometry {
5282
5281
  /**
5283
5282
  * @param {!Array<Array<import("../coordinate.js").Coordinate>>|!Array<number>} coordinates
5284
5283
  * Array of linear rings that define the polygon. The first linear ring of the
@@ -18178,7 +18177,7 @@ function lineStringLength(flatCoordinates, offset2, end3, stride) {
18178
18177
  }
18179
18178
  return length2;
18180
18179
  }
18181
- let LineString$1 = class LineString extends SimpleGeometry$1 {
18180
+ let LineString$1 = class LineString extends SimpleGeometry {
18182
18181
  /**
18183
18182
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
18184
18183
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -19776,7 +19775,7 @@ function linearRingss(flatCoordinates, offset2, endss, stride) {
19776
19775
  }
19777
19776
  return flatCenters;
19778
19777
  }
19779
- let Circle$6 = class Circle extends SimpleGeometry$1 {
19778
+ let Circle$6 = class Circle extends SimpleGeometry {
19780
19779
  /**
19781
19780
  * @param {!import("../coordinate.js").Coordinate} center Center.
19782
19781
  * For internal use, flat coordinates in combination with `layout` and no
@@ -20288,7 +20287,7 @@ function cloneGeometries(geometries) {
20288
20287
  return geometries.map((geometry) => geometry.clone());
20289
20288
  }
20290
20289
  const GeometryCollection$1 = GeometryCollection;
20291
- let MultiLineString$1 = class MultiLineString extends SimpleGeometry$1 {
20290
+ let MultiLineString$1 = class MultiLineString extends SimpleGeometry {
20292
20291
  /**
20293
20292
  * @param {Array<Array<import("../coordinate.js").Coordinate>|LineString>|Array<number>} coordinates
20294
20293
  * Coordinates or LineString geometries. (For internal use, flat coordinates in
@@ -20604,7 +20603,7 @@ let MultiLineString$1 = class MultiLineString extends SimpleGeometry$1 {
20604
20603
  }
20605
20604
  };
20606
20605
  const MultiLineString$2 = MultiLineString$1;
20607
- let MultiPoint$1 = class MultiPoint extends SimpleGeometry$1 {
20606
+ let MultiPoint$1 = class MultiPoint extends SimpleGeometry {
20608
20607
  /**
20609
20608
  * @param {Array<import("../coordinate.js").Coordinate>|Array<number>} coordinates Coordinates.
20610
20609
  * For internal use, flat coordinates in combination with `layout` are also accepted.
@@ -20779,7 +20778,7 @@ let MultiPoint$1 = class MultiPoint extends SimpleGeometry$1 {
20779
20778
  }
20780
20779
  };
20781
20780
  const MultiPoint$2 = MultiPoint$1;
20782
- let MultiPolygon$1 = class MultiPolygon extends SimpleGeometry$1 {
20781
+ let MultiPolygon$1 = class MultiPolygon extends SimpleGeometry {
20783
20782
  /**
20784
20783
  * @param {Array<Array<Array<import("../coordinate.js").Coordinate>>|Polygon>|Array<number>} coordinates Coordinates.
20785
20784
  * For internal use, flat coordinates in combination with `layout` and `endss` are also accepted.
@@ -54625,7 +54624,6 @@ class FeatureFormat {
54625
54624
  return abstract();
54626
54625
  }
54627
54626
  }
54628
- const FeatureFormat$1 = FeatureFormat;
54629
54627
  function transformGeometryWithOptions(geometry, write3, options) {
54630
54628
  const featureProjection = options ? get$5(options.featureProjection) : null;
54631
54629
  const dataProjection = options ? get$5(options.dataProjection) : null;
@@ -54738,7 +54736,7 @@ function createGeometry(object2, options) {
54738
54736
  options
54739
54737
  );
54740
54738
  }
54741
- class JSONFeature extends FeatureFormat$1 {
54739
+ class JSONFeature extends FeatureFormat {
54742
54740
  constructor() {
54743
54741
  super();
54744
54742
  }
@@ -55675,7 +55673,7 @@ function getDocument() {
55675
55673
  }
55676
55674
  return document_;
55677
55675
  }
55678
- class XMLFeature extends FeatureFormat$1 {
55676
+ class XMLFeature extends FeatureFormat {
55679
55677
  constructor() {
55680
55678
  super();
55681
55679
  this.xmlSerializer_ = getXMLSerializer();
@@ -58181,7 +58179,7 @@ const GML = GML3$1;
58181
58179
  GML.prototype.writeFeatures;
58182
58180
  GML.prototype.writeFeaturesNode;
58183
58181
  const GML$1 = GML;
58184
- class TextFeature extends FeatureFormat$1 {
58182
+ class TextFeature extends FeatureFormat {
58185
58183
  constructor() {
58186
58184
  super();
58187
58185
  }
@@ -61492,7 +61490,7 @@ function writeUtf8(buf, str2, pos) {
61492
61490
  }
61493
61491
  return pos;
61494
61492
  }
61495
- class MVT extends FeatureFormat$1 {
61493
+ class MVT extends FeatureFormat {
61496
61494
  /**
61497
61495
  * @param {Options<FeatureType>} [options] Options.
61498
61496
  */
@@ -334669,24 +334667,24 @@ const _hoisted_7$c = {
334669
334667
  key: 0,
334670
334668
  class: "image-loading"
334671
334669
  };
334672
- const _hoisted_8$b = {
334670
+ const _hoisted_8$c = {
334673
334671
  key: 1,
334674
334672
  class: "image-error"
334675
334673
  };
334676
- const _hoisted_9$b = {
334674
+ const _hoisted_9$c = {
334677
334675
  key: 2,
334678
334676
  class: "image-navigation"
334679
334677
  };
334680
- const _hoisted_10$b = {
334678
+ const _hoisted_10$c = {
334681
334679
  key: 3,
334682
334680
  class: "image-counter"
334683
334681
  };
334684
- const _hoisted_11$9 = {
334682
+ const _hoisted_11$a = {
334685
334683
  key: 2,
334686
334684
  class: "image-thumbnails"
334687
334685
  };
334688
- const _hoisted_12$7 = ["onClick"];
334689
- const _hoisted_13$7 = ["src", "alt"];
334686
+ const _hoisted_12$8 = ["onClick"];
334687
+ const _hoisted_13$8 = ["src", "alt"];
334690
334688
  const _hoisted_14$5 = {
334691
334689
  key: 3,
334692
334690
  class: "slideshow-controls"
@@ -334857,10 +334855,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
334857
334855
  createElementVNode("div", { class: "loading-spinner" }, null, -1),
334858
334856
  createElementVNode("span", null, "加载中...", -1)
334859
334857
  ])])) : createCommentVNode("", true),
334860
- imageError.value ? (openBlock(), createElementBlock("div", _hoisted_8$b, [..._cache[5] || (_cache[5] = [
334858
+ imageError.value ? (openBlock(), createElementBlock("div", _hoisted_8$c, [..._cache[5] || (_cache[5] = [
334861
334859
  createElementVNode("span", null, "图片加载失败", -1)
334862
334860
  ])])) : createCommentVNode("", true),
334863
- imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_9$b, [
334861
+ imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_9$c, [
334864
334862
  createVNode$1(unref(ElButton), {
334865
334863
  class: "nav-btn prev-btn",
334866
334864
  disabled: currentIndex.value === 0,
@@ -334886,10 +334884,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
334886
334884
  _: 1
334887
334885
  }, 8, ["disabled"])
334888
334886
  ])) : createCommentVNode("", true),
334889
- imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_10$b, toDisplayString(currentIndex.value + 1) + " / " + toDisplayString(imageList.value.length), 1)) : createCommentVNode("", true)
334887
+ imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_10$c, toDisplayString(currentIndex.value + 1) + " / " + toDisplayString(imageList.value.length), 1)) : createCommentVNode("", true)
334890
334888
  ])
334891
334889
  ]),
334892
- _ctx.config.showThumbnails && imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_11$9, [
334890
+ _ctx.config.showThumbnails && imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_11$a, [
334893
334891
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (image2, index2) => {
334894
334892
  return openBlock(), createElementBlock("div", {
334895
334893
  key: index2,
@@ -334899,8 +334897,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
334899
334897
  createElementVNode("img", {
334900
334898
  src: image2,
334901
334899
  alt: `缩略图 ${index2 + 1}`
334902
- }, null, 8, _hoisted_13$7)
334903
- ], 10, _hoisted_12$7);
334900
+ }, null, 8, _hoisted_13$8)
334901
+ ], 10, _hoisted_12$8);
334904
334902
  }), 128))
334905
334903
  ])) : createCommentVNode("", true),
334906
334904
  _ctx.config.slideshow && imageList.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_14$5, [
@@ -334972,18 +334970,18 @@ const _hoisted_6$c = {
334972
334970
  class: "data-stats"
334973
334971
  };
334974
334972
  const _hoisted_7$b = { key: 0 };
334975
- const _hoisted_8$a = {
334973
+ const _hoisted_8$b = {
334976
334974
  key: 5,
334977
334975
  class: "table-view"
334978
334976
  };
334979
- const _hoisted_9$a = { class: "table-container" };
334980
- const _hoisted_10$a = { class: "data-table" };
334981
- const _hoisted_11$8 = ["onClick"];
334982
- const _hoisted_12$6 = {
334977
+ const _hoisted_9$b = { class: "table-container" };
334978
+ const _hoisted_10$b = { class: "data-table" };
334979
+ const _hoisted_11$9 = ["onClick"];
334980
+ const _hoisted_12$7 = {
334983
334981
  key: 0,
334984
334982
  class: "sort-indicator"
334985
334983
  };
334986
- const _hoisted_13$6 = ["onClick"];
334984
+ const _hoisted_13$7 = ["onClick"];
334987
334985
  const _hoisted_14$4 = { key: 0 };
334988
334986
  const _hoisted_15$3 = ["src", "alt"];
334989
334987
  const _hoisted_16$3 = { key: 1 };
@@ -335240,9 +335238,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
335240
335238
  createElementVNode("span", null, "共 " + toDisplayString(filteredData.value.length) + " 条记录", 1),
335241
335239
  searchQuery.value ? (openBlock(), createElementBlock("span", _hoisted_7$b, "(已过滤 " + toDisplayString(arrayData.value.length - filteredData.value.length) + " 条)", 1)) : createCommentVNode("", true)
335242
335240
  ])) : createCommentVNode("", true),
335243
- currentView.value === "table" ? (openBlock(), createElementBlock("div", _hoisted_8$a, [
335244
- createElementVNode("div", _hoisted_9$a, [
335245
- createElementVNode("table", _hoisted_10$a, [
335241
+ currentView.value === "table" ? (openBlock(), createElementBlock("div", _hoisted_8$b, [
335242
+ createElementVNode("div", _hoisted_9$b, [
335243
+ createElementVNode("table", _hoisted_10$b, [
335246
335244
  createElementVNode("thead", null, [
335247
335245
  createElementVNode("tr", null, [
335248
335246
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFields.value, (field) => {
@@ -335252,8 +335250,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
335252
335250
  onClick: ($event) => handleSort(field.key)
335253
335251
  }, [
335254
335252
  createTextVNode(toDisplayString(field.label) + " ", 1),
335255
- field.sortable && sortField.value === field.key ? (openBlock(), createElementBlock("span", _hoisted_12$6, toDisplayString(sortOrder.value === "asc" ? "↑" : "↓"), 1)) : createCommentVNode("", true)
335256
- ], 10, _hoisted_11$8);
335253
+ field.sortable && sortField.value === field.key ? (openBlock(), createElementBlock("span", _hoisted_12$7, toDisplayString(sortOrder.value === "asc" ? "↑" : "↓"), 1)) : createCommentVNode("", true)
335254
+ ], 10, _hoisted_11$9);
335257
335255
  }), 128))
335258
335256
  ])
335259
335257
  ]),
@@ -335282,7 +335280,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
335282
335280
  ])) : 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$3, toDisplayString(formatNumber2(getFieldValue(item, field.key || field.name))), 1)) : (openBlock(), createElementBlock("span", _hoisted_20$2, toDisplayString(getFieldValue(item, field.key || field.name)), 1))
335283
335281
  ]);
335284
335282
  }), 128))
335285
- ], 8, _hoisted_13$6);
335283
+ ], 8, _hoisted_13$7);
335286
335284
  }), 128))
335287
335285
  ])
335288
335286
  ])
@@ -337397,19 +337395,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
337397
337395
  }
337398
337396
  });
337399
337397
  const defaultComponents = {
337400
- measurement: () => import("./MeasurementDialog-4e084192.mjs"),
337401
- basemap: () => import("./BasemapPanel-d6e4ea88.mjs"),
337402
- print: () => import("./MapPrintDialog-64d46412.mjs"),
337403
- "layer-panel": () => import("./LayerPanel-9bf28955.mjs"),
337404
- coordinate: () => import("./CoordinateLocationDialog-81d00abc.mjs"),
337405
- "region-navigation": () => import("./RegionNavigationDialog-467ad6c0.mjs"),
337406
- "my-markers": () => import("./MyMarkersDialog-aa44e5bd.mjs"),
337407
- "view-bookmarks": () => import("./ViewBookmarksDialog-83cf5ec4.mjs"),
337408
- "map-drawing": () => import("./index-ee58f2f8.mjs"),
337409
- "filter-panel": () => import("./FilterPanel-7358e3fb.mjs"),
337410
- "swipe-compare": () => import("./SwipeCompareDialog-c322e2f6.mjs"),
337411
- "split-compare": () => import("./SplitCompareDialog-50410c0b.mjs"),
337412
- "quad-compare": () => import("./QuadCompareDialog-84a88cf9.mjs")
337398
+ measurement: () => import("./MeasurementDialog-ebda57e6.mjs"),
337399
+ basemap: () => import("./BasemapPanel-aa284bf3.mjs"),
337400
+ print: () => import("./MapPrintDialog-2e5a22e7.mjs"),
337401
+ "layer-panel": () => import("./LayerPanel-88983648.mjs"),
337402
+ coordinate: () => import("./CoordinateLocationDialog-6c0a6b23.mjs"),
337403
+ "region-navigation": () => import("./RegionNavigationDialog-549597e1.mjs"),
337404
+ "my-markers": () => import("./MyMarkersDialog-1f851036.mjs"),
337405
+ "view-bookmarks": () => import("./ViewBookmarksDialog-10b5fe14.mjs"),
337406
+ "map-drawing": () => import("./index-b9d6884a.mjs"),
337407
+ "filter-panel": () => import("./FilterPanel-b91325ac.mjs"),
337408
+ "swipe-compare": () => import("./SwipeCompareDialog-374b9865.mjs"),
337409
+ "split-compare": () => import("./SplitCompareDialog-9bcce145.mjs"),
337410
+ "quad-compare": () => import("./QuadCompareDialog-8f624242.mjs")
337413
337411
  };
337414
337412
  const _DialogRegistry = class _DialogRegistry {
337415
337413
  constructor() {
@@ -338747,18 +338745,18 @@ const _hoisted_4$h = { class: "section-title" };
338747
338745
  const _hoisted_5$f = ["onClick"];
338748
338746
  const _hoisted_6$b = { class: "item-content" };
338749
338747
  const _hoisted_7$a = { class: "item-name" };
338750
- const _hoisted_8$9 = { class: "item-address" };
338751
- const _hoisted_9$9 = {
338748
+ const _hoisted_8$a = { class: "item-address" };
338749
+ const _hoisted_9$a = {
338752
338750
  key: 1,
338753
338751
  class: "search-section"
338754
338752
  };
338755
- const _hoisted_10$9 = {
338753
+ const _hoisted_10$a = {
338756
338754
  key: 0,
338757
338755
  class: "section-title"
338758
338756
  };
338759
- const _hoisted_11$7 = { class: "result-count" };
338760
- const _hoisted_12$5 = ["onClick"];
338761
- const _hoisted_13$5 = { class: "item-content" };
338757
+ const _hoisted_11$8 = { class: "result-count" };
338758
+ const _hoisted_12$6 = ["onClick"];
338759
+ const _hoisted_13$6 = { class: "item-content" };
338762
338760
  const _hoisted_14$3 = ["innerHTML"];
338763
338761
  const _hoisted_15$2 = ["innerHTML"];
338764
338762
  const _hoisted_16$2 = {
@@ -339248,20 +339246,20 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
339248
339246
  }),
339249
339247
  createElementVNode("div", _hoisted_6$b, [
339250
339248
  createElementVNode("div", _hoisted_7$a, toDisplayString(item.name), 1),
339251
- createElementVNode("div", _hoisted_8$9, toDisplayString(item.address), 1)
339249
+ createElementVNode("div", _hoisted_8$a, toDisplayString(item.address), 1)
339252
339250
  ])
339253
339251
  ], 10, _hoisted_5$f)
339254
339252
  ]);
339255
339253
  }), 128))
339256
339254
  ])) : createCommentVNode("", true),
339257
- searchResults.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9$9, [
339255
+ searchResults.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9$a, [
339258
339256
  renderSlot(_ctx.$slots, "results-title", {
339259
339257
  searchQuery: searchQuery.value,
339260
339258
  resultsCount: searchResults.value.length
339261
339259
  }, () => [
339262
- searchQuery.value ? (openBlock(), createElementBlock("div", _hoisted_10$9, [
339260
+ searchQuery.value ? (openBlock(), createElementBlock("div", _hoisted_10$a, [
339263
339261
  createElementVNode("span", null, toDisplayString(resultsTitleText.value), 1),
339264
- createElementVNode("span", _hoisted_11$7, "(" + toDisplayString(searchResults.value.length) + ")", 1)
339262
+ createElementVNode("span", _hoisted_11$8, "(" + toDisplayString(searchResults.value.length) + ")", 1)
339265
339263
  ])) : createCommentVNode("", true)
339266
339264
  ]),
339267
339265
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayResults.value, (result, index2) => {
@@ -339286,7 +339284,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
339286
339284
  ]),
339287
339285
  _: 1
339288
339286
  }),
339289
- createElementVNode("div", _hoisted_13$5, [
339287
+ createElementVNode("div", _hoisted_13$6, [
339290
339288
  createElementVNode("div", {
339291
339289
  class: "item-name",
339292
339290
  innerHTML: highlightText(result.name, searchQuery.value)
@@ -339298,7 +339296,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
339298
339296
  result.type ? (openBlock(), createElementBlock("div", _hoisted_16$2, toDisplayString(result.type), 1)) : createCommentVNode("", true)
339299
339297
  ]),
339300
339298
  result.confidence ? (openBlock(), createElementBlock("div", _hoisted_17$2, toDisplayString(Math.round(result.confidence * 100)) + "% ", 1)) : createCommentVNode("", true)
339301
- ], 10, _hoisted_12$5)
339299
+ ], 10, _hoisted_12$6)
339302
339300
  ]);
339303
339301
  }), 128))
339304
339302
  ])) : createCommentVNode("", true),
@@ -339474,6 +339472,24 @@ const _hoisted_7$9 = {
339474
339472
  key: 6,
339475
339473
  class: "control-section"
339476
339474
  };
339475
+ const _hoisted_8$9 = { class: "drawing-menu-panel-content" };
339476
+ const _hoisted_9$9 = { class: "drawing-tool-list" };
339477
+ const _hoisted_10$9 = {
339478
+ key: 0,
339479
+ class: "drawing-menu-divider"
339480
+ };
339481
+ const _hoisted_11$7 = {
339482
+ key: 1,
339483
+ class: "drawing-toggle-row"
339484
+ };
339485
+ const _hoisted_12$5 = {
339486
+ key: 7,
339487
+ class: "control-divider"
339488
+ };
339489
+ const _hoisted_13$5 = {
339490
+ key: 8,
339491
+ class: "control-section"
339492
+ };
339477
339493
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
339478
339494
  __name: "OlControlPanel",
339479
339495
  props: {
@@ -339486,8 +339502,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
339486
339502
  bottomOffset: {},
339487
339503
  viewBookmarks: {}
339488
339504
  },
339489
- setup(__props, { expose: __expose }) {
339505
+ emits: ["drawing-complete"],
339506
+ setup(__props, { expose: __expose, emit: __emit }) {
339490
339507
  const props = __props;
339508
+ const emit = __emit;
339491
339509
  const map2 = inject("map");
339492
339510
  const mapManager = inject("mapManager");
339493
339511
  const overviewMapUtil = createOverviewMapUtil();
@@ -339497,7 +339515,37 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
339497
339515
  const currentZoom = ref(10);
339498
339516
  const minZoom = ref(3);
339499
339517
  const maxZoom = ref(18);
339518
+ const isDrawingMenuOpen = ref(false);
339519
+ const continuousDrawing = ref(false);
339520
+ const activeDrawingMode = ref("none");
339521
+ const DEFAULT_DRAWING_TOOLS = [
339522
+ "rectangle",
339523
+ "polygon",
339524
+ "circle",
339525
+ "line",
339526
+ "point"
339527
+ ];
339528
+ const drawingToolLabels = {
339529
+ point: "绘制点",
339530
+ line: "绘制线",
339531
+ polygon: "绘制多边形",
339532
+ circle: "绘制圆形",
339533
+ rectangle: "绘制矩形"
339534
+ };
339535
+ const geoJsonFormat = new GeoJSON$2();
339536
+ let boundDrawingManager = null;
339537
+ let boundDrawingEndHandler = null;
339538
+ let boundModeChangeHandler = null;
339500
339539
  const currentMap = computed(() => map2 == null ? void 0 : map2.value);
339540
+ const popoverPlacement = computed(() => {
339541
+ const isRight = props.position.includes("right");
339542
+ const isBottom = props.position.includes("bottom");
339543
+ if (props.direction === "vertical") {
339544
+ return isRight ? "left" : "right";
339545
+ } else {
339546
+ return isBottom ? "top" : "bottom";
339547
+ }
339548
+ });
339501
339549
  const positionClasses = computed(() => {
339502
339550
  const basePositions = {
339503
339551
  "top-left": "top-4 left-4",
@@ -339581,10 +339629,55 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
339581
339629
  const tools = props.config.tools;
339582
339630
  return !!((tools == null ? void 0 : tools.viewBookmarks) || props.config.viewBookmarks);
339583
339631
  });
339632
+ const drawingControlConfig = computed(() => {
339633
+ var _a2;
339634
+ const rawConfig = ((_a2 = props.config.tools) == null ? void 0 : _a2.drawing) ?? props.config.drawing;
339635
+ if (rawConfig === false) {
339636
+ return {
339637
+ enabled: false,
339638
+ trigger: "hover",
339639
+ continuous: false,
339640
+ showContinuousToggle: true,
339641
+ tools: DEFAULT_DRAWING_TOOLS,
339642
+ onDrawEnd: void 0
339643
+ };
339644
+ }
339645
+ if (rawConfig === true || rawConfig === void 0) {
339646
+ return {
339647
+ enabled: rawConfig === true,
339648
+ trigger: "hover",
339649
+ continuous: false,
339650
+ showContinuousToggle: true,
339651
+ tools: DEFAULT_DRAWING_TOOLS,
339652
+ onDrawEnd: void 0
339653
+ };
339654
+ }
339655
+ const config = rawConfig;
339656
+ const tools = (config.tools || DEFAULT_DRAWING_TOOLS).filter(
339657
+ (tool) => DEFAULT_DRAWING_TOOLS.includes(tool)
339658
+ );
339659
+ return {
339660
+ enabled: config.enabled !== false,
339661
+ trigger: config.trigger || "hover",
339662
+ continuous: config.continuous ?? false,
339663
+ showContinuousToggle: config.showContinuousToggle !== false,
339664
+ tools: tools.length > 0 ? Array.from(new Set(tools)) : DEFAULT_DRAWING_TOOLS,
339665
+ onDrawEnd: config.onDrawEnd
339666
+ };
339667
+ });
339668
+ const isDrawingEnabled = computed(() => drawingControlConfig.value.enabled);
339669
+ const isDrawingActive = computed(() => activeDrawingMode.value !== "none");
339584
339670
  const hasOtherTools = computed(() => {
339585
339671
  const tools = props.config.tools;
339586
339672
  return !!((tools == null ? void 0 : tools.fullScreen) || props.config.fullScreen || (tools == null ? void 0 : tools.location) || props.config.location || isLayerPanelEnabled.value || isViewBookmarksEnabled.value || (tools == null ? void 0 : tools.overviewMap) || props.config.overviewMap || (tools == null ? void 0 : tools.zoomToExtent) || props.config.zoomToExtent);
339587
339673
  });
339674
+ watch(
339675
+ drawingControlConfig,
339676
+ (config) => {
339677
+ continuousDrawing.value = config.continuous;
339678
+ },
339679
+ { immediate: true }
339680
+ );
339588
339681
  const initOverviewMap = () => {
339589
339682
  const tools = props.config.tools || {};
339590
339683
  const rawConfig = tools.overviewMap ?? props.config.overviewMap;
@@ -339754,6 +339847,83 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
339754
339847
  mapManager.value.clearAll();
339755
339848
  }
339756
339849
  };
339850
+ const buildDrawingResult = (drawing) => {
339851
+ const drawingJson = drawing.toJSON();
339852
+ const feature = drawing.getFeature();
339853
+ let geojson = null;
339854
+ if (feature && currentMap.value) {
339855
+ try {
339856
+ geojson = geoJsonFormat.writeFeatureObject(feature, {
339857
+ featureProjection: currentMap.value.getView().getProjection(),
339858
+ dataProjection: "EPSG:4326"
339859
+ });
339860
+ } catch (error2) {
339861
+ console.warn("绘制结果转 GeoJSON 失败:", error2);
339862
+ }
339863
+ }
339864
+ return {
339865
+ id: drawing.getId(),
339866
+ type: drawing.getType(),
339867
+ name: drawing.getName(),
339868
+ coordinates: drawingJson.coordinates,
339869
+ properties: drawingJson.properties || {},
339870
+ style: drawingJson.style || {},
339871
+ config: drawingJson.config || {},
339872
+ geojson,
339873
+ drawing,
339874
+ feature,
339875
+ source: "controls"
339876
+ };
339877
+ };
339878
+ const cleanupDrawingListeners = () => {
339879
+ if (boundDrawingManager && boundDrawingEndHandler && boundModeChangeHandler) {
339880
+ boundDrawingManager.off("drawing-end", boundDrawingEndHandler);
339881
+ boundDrawingManager.off("mode-change", boundModeChangeHandler);
339882
+ }
339883
+ boundDrawingManager = null;
339884
+ boundDrawingEndHandler = null;
339885
+ boundModeChangeHandler = null;
339886
+ activeDrawingMode.value = "none";
339887
+ };
339888
+ const bindDrawingListeners = (drawingManager) => {
339889
+ cleanupDrawingListeners();
339890
+ if (!drawingManager)
339891
+ return;
339892
+ boundDrawingManager = drawingManager;
339893
+ activeDrawingMode.value = drawingManager.getMode();
339894
+ boundDrawingEndHandler = (drawing) => {
339895
+ var _a2, _b2;
339896
+ const result = buildDrawingResult(drawing);
339897
+ (_b2 = (_a2 = drawingControlConfig.value).onDrawEnd) == null ? void 0 : _b2.call(_a2, result);
339898
+ emit("drawing-complete", result);
339899
+ };
339900
+ boundModeChangeHandler = (mode) => {
339901
+ activeDrawingMode.value = mode;
339902
+ };
339903
+ drawingManager.on("drawing-end", boundDrawingEndHandler);
339904
+ drawingManager.on("mode-change", boundModeChangeHandler);
339905
+ };
339906
+ const startQuickDrawing = (tool) => {
339907
+ var _a2;
339908
+ const drawingManager = (_a2 = mapManager == null ? void 0 : mapManager.value) == null ? void 0 : _a2.getDrawingManager();
339909
+ if (!drawingManager) {
339910
+ console.warn("DrawingManager not found");
339911
+ return;
339912
+ }
339913
+ drawingManager.setContinuousDrawing(continuousDrawing.value);
339914
+ drawingManager.setMode(tool, {
339915
+ allowContinuousDrawing: continuousDrawing.value
339916
+ });
339917
+ isDrawingMenuOpen.value = false;
339918
+ };
339919
+ const stopQuickDrawing = () => {
339920
+ var _a2;
339921
+ const drawingManager = (_a2 = mapManager == null ? void 0 : mapManager.value) == null ? void 0 : _a2.getDrawingManager();
339922
+ if (!drawingManager)
339923
+ return;
339924
+ drawingManager.setMode("none");
339925
+ isDrawingMenuOpen.value = false;
339926
+ };
339757
339927
  const zoomToExtent = () => {
339758
339928
  var _a2;
339759
339929
  if (currentMap.value) {
@@ -339797,6 +339967,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
339797
339967
  },
339798
339968
  { immediate: true }
339799
339969
  );
339970
+ watch(
339971
+ () => {
339972
+ var _a2;
339973
+ return ((_a2 = mapManager == null ? void 0 : mapManager.value) == null ? void 0 : _a2.getDrawingManager()) || null;
339974
+ },
339975
+ (drawingManager) => {
339976
+ bindDrawingListeners(drawingManager);
339977
+ },
339978
+ { immediate: true }
339979
+ );
339800
339980
  const handleFullscreenChange = () => {
339801
339981
  isFullscreen.value = !!document.fullscreenElement;
339802
339982
  };
@@ -339808,6 +339988,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
339808
339988
  var _a2;
339809
339989
  document.removeEventListener("fullscreenchange", handleFullscreenChange);
339810
339990
  overviewMapUtil.destroy();
339991
+ cleanupDrawingListeners();
339811
339992
  if (currentMap.value) {
339812
339993
  currentMap.value.un("moveend", updateScale);
339813
339994
  (_a2 = currentMap.value.getTargetElement()) == null ? void 0 : _a2.removeEventListener("mousemove", updateMousePosition);
@@ -339838,7 +340019,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
339838
340019
  isMinZoom
339839
340020
  });
339840
340021
  return (_ctx, _cache) => {
339841
- var _a2, _b2, _c2, _d, _e2, _f, _g, _h, _i2, _j, _k, _l, _m, _n2, _o2, _p;
340022
+ var _a2, _b2, _c2, _d, _e2, _f, _g, _h, _i2, _j, _k, _l, _m, _n2, _o2, _p, _q, _r2;
339842
340023
  const _component_el_slider = resolveComponent("el-slider");
339843
340024
  return openBlock(), createElementBlock("div", {
339844
340025
  class: normalizeClass(["mapcontrols absolute z-1 pointer-events-none select-none animate-fade-in", positionClasses.value]),
@@ -340077,8 +340258,119 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
340077
340258
  _: 1
340078
340259
  }, 8, ["title"])) : createCommentVNode("", true)
340079
340260
  ])) : createCommentVNode("", true),
340080
- (((_m = _ctx.config.tools) == null ? void 0 : _m.clearAll) || _ctx.config.clearAll) && (hasOtherTools.value || ((_n2 = _ctx.config.tools) == null ? void 0 : _n2.zoom) || _ctx.config.zoom || ((_o2 = _ctx.config.tools) == null ? void 0 : _o2.rotate) || _ctx.config.rotate) ? (openBlock(), createElementBlock("div", _hoisted_6$a)) : createCommentVNode("", true),
340081
- ((_p = _ctx.config.tools) == null ? void 0 : _p.clearAll) || _ctx.config.clearAll ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
340261
+ isDrawingEnabled.value && (hasOtherTools.value || ((_m = _ctx.config.tools) == null ? void 0 : _m.zoom) || _ctx.config.zoom || ((_n2 = _ctx.config.tools) == null ? void 0 : _n2.rotate) || _ctx.config.rotate) ? (openBlock(), createElementBlock("div", _hoisted_6$a)) : createCommentVNode("", true),
340262
+ isDrawingEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
340263
+ createVNode$1(unref(ElPopover), {
340264
+ placement: popoverPlacement.value,
340265
+ trigger: drawingControlConfig.value.trigger === "hover" ? "hover" : "click",
340266
+ visible: isDrawingMenuOpen.value,
340267
+ "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => isDrawingMenuOpen.value = $event),
340268
+ width: 180,
340269
+ "popper-class": "drawing-menu-popover",
340270
+ disabled: !isDrawingEnabled.value
340271
+ }, {
340272
+ reference: withCtx(() => [
340273
+ createVNode$1(unref(ElButton), {
340274
+ class: normalizeClass(["control-btn", { "is-active": isDrawingMenuOpen.value || isDrawingActive.value }]),
340275
+ title: "快捷绘制",
340276
+ size: "small",
340277
+ text: ""
340278
+ }, {
340279
+ default: withCtx(() => [
340280
+ createVNode$1(unref(ElIcon), null, {
340281
+ default: withCtx(() => [
340282
+ createVNode$1(unref(EditPen))
340283
+ ]),
340284
+ _: 1
340285
+ })
340286
+ ]),
340287
+ _: 1
340288
+ }, 8, ["class"])
340289
+ ]),
340290
+ default: withCtx(() => [
340291
+ createElementVNode("div", _hoisted_8$9, [
340292
+ _cache[5] || (_cache[5] = createElementVNode("div", { class: "drawing-menu-title" }, "快捷绘制", -1)),
340293
+ createElementVNode("div", _hoisted_9$9, [
340294
+ (openBlock(true), createElementBlock(Fragment, null, renderList(drawingControlConfig.value.tools, (tool) => {
340295
+ return openBlock(), createBlock(unref(ElTooltip), {
340296
+ key: tool,
340297
+ content: drawingToolLabels[tool],
340298
+ placement: "top",
340299
+ "show-after": 200
340300
+ }, {
340301
+ default: withCtx(() => [
340302
+ createVNode$1(unref(ElButton), {
340303
+ size: "small",
340304
+ text: "",
340305
+ class: normalizeClass(["drawing-tool-btn", { "is-active": activeDrawingMode.value === tool }]),
340306
+ onClick: ($event) => startQuickDrawing(tool)
340307
+ }, {
340308
+ default: withCtx(() => [
340309
+ tool === "point" ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
340310
+ default: withCtx(() => [
340311
+ createVNode$1(unref(Location))
340312
+ ]),
340313
+ _: 1
340314
+ })) : tool === "line" ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
340315
+ default: withCtx(() => [
340316
+ createVNode$1(unref(Minus))
340317
+ ]),
340318
+ _: 1
340319
+ })) : tool === "polygon" ? (openBlock(), createBlock(unref(ElIcon), { key: 2 }, {
340320
+ default: withCtx(() => [
340321
+ createVNode$1(unref(Share))
340322
+ ]),
340323
+ _: 1
340324
+ })) : tool === "circle" ? (openBlock(), createBlock(unref(ElIcon), { key: 3 }, {
340325
+ default: withCtx(() => [
340326
+ createVNode$1(unref(CircleCheck))
340327
+ ]),
340328
+ _: 1
340329
+ })) : tool === "rectangle" ? (openBlock(), createBlock(unref(ElIcon), { key: 4 }, {
340330
+ default: withCtx(() => [
340331
+ createVNode$1(unref(FullScreen))
340332
+ ]),
340333
+ _: 1
340334
+ })) : createCommentVNode("", true)
340335
+ ]),
340336
+ _: 2
340337
+ }, 1032, ["class", "onClick"])
340338
+ ]),
340339
+ _: 2
340340
+ }, 1032, ["content"]);
340341
+ }), 128))
340342
+ ]),
340343
+ drawingControlConfig.value.showContinuousToggle || isDrawingActive.value ? (openBlock(), createElementBlock("div", _hoisted_10$9)) : createCommentVNode("", true),
340344
+ drawingControlConfig.value.showContinuousToggle ? (openBlock(), createElementBlock("div", _hoisted_11$7, [
340345
+ createVNode$1(unref(ElCheckbox), {
340346
+ modelValue: continuousDrawing.value,
340347
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => continuousDrawing.value = $event)
340348
+ }, {
340349
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
340350
+ createTextVNode(" 是否连续绘制 ", -1)
340351
+ ])]),
340352
+ _: 1
340353
+ }, 8, ["modelValue"])
340354
+ ])) : createCommentVNode("", true),
340355
+ isDrawingActive.value ? (openBlock(), createBlock(unref(ElButton), {
340356
+ key: 2,
340357
+ size: "small",
340358
+ text: "",
340359
+ class: "drawing-stop-btn",
340360
+ onClick: stopQuickDrawing
340361
+ }, {
340362
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
340363
+ createTextVNode(" 停止绘制 ", -1)
340364
+ ])]),
340365
+ _: 1
340366
+ })) : createCommentVNode("", true)
340367
+ ])
340368
+ ]),
340369
+ _: 1
340370
+ }, 8, ["placement", "trigger", "visible", "disabled"])
340371
+ ])) : createCommentVNode("", true),
340372
+ (((_o2 = _ctx.config.tools) == null ? void 0 : _o2.clearAll) || _ctx.config.clearAll) && (hasOtherTools.value || isDrawingEnabled.value || ((_p = _ctx.config.tools) == null ? void 0 : _p.zoom) || _ctx.config.zoom || ((_q = _ctx.config.tools) == null ? void 0 : _q.rotate) || _ctx.config.rotate) ? (openBlock(), createElementBlock("div", _hoisted_12$5)) : createCommentVNode("", true),
340373
+ ((_r2 = _ctx.config.tools) == null ? void 0 : _r2.clearAll) || _ctx.config.clearAll ? (openBlock(), createElementBlock("div", _hoisted_13$5, [
340082
340374
  createVNode$1(unref(ElButton), {
340083
340375
  class: "control-btn",
340084
340376
  title: "清空绘制内容",
@@ -340102,7 +340394,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
340102
340394
  };
340103
340395
  }
340104
340396
  });
340105
- const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-fdbbb5b4"]]);
340397
+ const OlControlPanel = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-13e7a909"]]);
340106
340398
  const _hoisted_1$i = {
340107
340399
  key: 0,
340108
340400
  class: "ol-legend-header"
@@ -352703,7 +352995,7 @@ function(t3) {
352703
352995
  */
352704
352996
  function(t3) {
352705
352997
  function e8() {
352706
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-320e524d.mjs")).catch(function(t4) {
352998
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-ff0f4147.mjs")).catch(function(t4) {
352707
352999
  return Promise.reject(new Error("Could not load canvg: " + t4));
352708
353000
  }).then(function(t4) {
352709
353001
  return t4.default ? t4.default : t4;
@@ -365392,7 +365684,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
365392
365684
  popupConfig: {},
365393
365685
  enableGeolocation: { type: Boolean, default: true }
365394
365686
  },
365395
- emits: ["map-ready", "map-click", "map-dblclick", "map-contextmenu", "map-move", "zoom-change", "feature-click", "tooltip-show", "tooltip-hide", "layer-change", "measurement-change", "measurement-start", "measurement-end", "measurement-result", "context-menu", "bookmark-action", "marker-action", "tool-action", "search", "search-select", "search-clear", "popup-show", "popup-hide", "popup-close"],
365687
+ emits: ["map-ready", "map-click", "map-dblclick", "map-contextmenu", "map-move", "zoom-change", "feature-click", "tooltip-show", "tooltip-hide", "layer-change", "measurement-change", "measurement-start", "measurement-end", "measurement-result", "context-menu", "bookmark-action", "marker-action", "tool-action", "drawing-complete", "search", "search-select", "search-clear", "popup-show", "popup-hide", "popup-close"],
365396
365688
  setup(__props, { expose: __expose, emit: __emit }) {
365397
365689
  const currentLegends = ref([]);
365398
365690
  const currentLayers = ref([]);
@@ -366254,6 +366546,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
366254
366546
  break;
366255
366547
  }
366256
366548
  };
366549
+ const onDrawingComplete = (result) => {
366550
+ emit("drawing-complete", result);
366551
+ };
366257
366552
  const onPrintAction = (data) => {
366258
366553
  console.log("打印操作:", data);
366259
366554
  switch (data.action) {
@@ -366940,7 +367235,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
366940
367235
  "right-offset": finalControlsConfig.value.rightOffset,
366941
367236
  "top-offset": finalControlsConfig.value.topOffset,
366942
367237
  "bottom-offset": finalControlsConfig.value.bottomOffset,
366943
- "view-bookmarks": props.viewBookmarks
367238
+ "view-bookmarks": props.viewBookmarks,
367239
+ onDrawingComplete
366944
367240
  }, {
366945
367241
  custom: withCtx(({ controls }) => [
366946
367242
  renderSlot(_ctx.$slots, "controls", {
@@ -367077,7 +367373,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
367077
367373
  };
367078
367374
  }
367079
367375
  });
367080
- const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-888f37cb"]]);
367376
+ const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-847d5f65"]]);
367081
367377
  const Property = {
367082
367378
  ACCURACY: "accuracy",
367083
367379
  ACCURACY_GEOMETRY: "accuracyGeometry",