vue-openlayers-plugin 1.0.93 → 1.0.94

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, computed, ref, watch, onMounted, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
2
- import { l as layerEventBus, X, d as _export_sfc } from "./index-bc98d31c.mjs";
2
+ import { l as layerEventBus, X, d as _export_sfc } from "./index-bffe7847.mjs";
3
3
  import "ol";
4
4
  const _hoisted_1 = { class: "basemap-content" };
5
5
  const _hoisted_2 = { class: "basemap-grid" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, computed, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref } from "vue";
2
- import { i as aim_default, T as TooltipHelper, d as _export_sfc } from "./index-bc98d31c.mjs";
2
+ import { i as aim_default, T as TooltipHelper, d as _export_sfc } from "./index-bffe7847.mjs";
3
3
  import "ol";
4
4
  const _hoisted_1 = { class: "coordinate-content" };
5
5
  const _hoisted_2 = { class: "format-selection" };
@@ -1,4 +1,4 @@
1
- import { a6 as _sfc_main } from "./index-bc98d31c.mjs";
1
+ import { a6 as _sfc_main } from "./index-bffe7847.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { e as _sfc_main } from "./index-bc98d31c.mjs";
1
+ import { h as _sfc_main } from "./index-bffe7847.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { h as _sfc_main } from "./index-bc98d31c.mjs";
1
+ import { e as _sfc_main } from "./index-bffe7847.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, computed, ref, watch, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass } from "vue";
2
- import { X, f as formatMeasurementResult, g as getUnitByType, d as _export_sfc } from "./index-bc98d31c.mjs";
2
+ import { X, f as formatMeasurementResult, g as getUnitByType, d as _export_sfc } from "./index-bffe7847.mjs";
3
3
  import "ol";
4
4
  const createSvgIcon = (content, viewBox = "0 0 24 24", fill = "currentColor", stroke = "none", strokeWidth = "0") => {
5
5
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}" width="24" height="24" fill="${fill}" stroke="${stroke}" stroke-width="${strokeWidth}" stroke-linecap="round" stroke-linejoin="round">${content}</svg>`;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, computed, ref, reactive, onUnmounted, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, unref, normalizeClass, createTextVNode, toDisplayString, renderList, createBlock, withModifiers, mergeProps } from "vue";
2
- import { j as plus_default, k as folder_opened_default, m as download_default, n as delete_default, s as search_default, o as location_filled_default, q as edit_default, M as MarkerDrawingAdapter, t as fromLonLat, u as toLonLat } from "./index-bc98d31c.mjs";
3
- import { E as ElMessageBox } from "./index-915b9f4d.mjs";
2
+ import { j as plus_default, k as folder_opened_default, m as download_default, n as delete_default, s as search_default, o as location_filled_default, q as edit_default, M as MarkerDrawingAdapter, t as fromLonLat, u as toLonLat } from "./index-bffe7847.mjs";
3
+ import { E as ElMessageBox } from "./index-fe5a55ea.mjs";
4
4
  import "ol";
5
5
  const _hoisted_1 = { class: "markers-content" };
6
6
  const _hoisted_2 = { class: "toolbar" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, computed, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createElementBlock, Fragment, renderList, withModifiers, toDisplayString, createCommentVNode } from "vue";
2
- import { j as plus_default, k as folder_opened_default, m as download_default, n as delete_default, s as search_default, v as camera_default, w as view_default, q as edit_default, x as location_default, z as zoom_in_default, u as toLonLat, t as fromLonLat, E as ElMessage, y as getUid } from "./index-bc98d31c.mjs";
3
- import { E as ElMessageBox } from "./index-915b9f4d.mjs";
2
+ import { j as plus_default, k as folder_opened_default, m as download_default, n as delete_default, s as search_default, v as camera_default, w as view_default, q as edit_default, x as location_default, z as zoom_in_default, u as toLonLat, t as fromLonLat, E as ElMessage, y as getUid } from "./index-bffe7847.mjs";
3
+ import { E as ElMessageBox } from "./index-fe5a55ea.mjs";
4
4
  import "ol";
5
5
  const _hoisted_1 = { class: "bookmarks-content" };
6
6
  const _hoisted_2 = { class: "toolbar" };
@@ -1,5 +1,5 @@
1
1
  import { inject, computed, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, unref, createTextVNode, createCommentVNode, createBlock } from "vue";
2
- import { d as _export_sfc, a4 as DrawingManager, a5 as close_default } from "./index-bc98d31c.mjs";
2
+ import { d as _export_sfc, a4 as DrawingManager, a5 as close_default } from "./index-bffe7847.mjs";
3
3
  import "ol";
4
4
  const icons = {
5
5
  pointMarker: "/icons/point.png",
@@ -469419,16 +469419,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
469419
469419
  }
469420
469420
  });
469421
469421
  const defaultComponents = {
469422
- measurement: () => import("./MeasurementDialog-901a569f.mjs"),
469423
- basemap: () => import("./BasemapPanel-ed3aedc9.mjs"),
469424
- print: () => import("./MapPrintDialog-ce441446.mjs"),
469425
- "layer-panel": () => import("./LayerPanel-fd86591b.mjs"),
469426
- coordinate: () => import("./CoordinateLocationDialog-1b493dd9.mjs"),
469422
+ measurement: () => import("./MeasurementDialog-a3b2acf4.mjs"),
469423
+ basemap: () => import("./BasemapPanel-2db8ac45.mjs"),
469424
+ print: () => import("./MapPrintDialog-4b3d5d88.mjs"),
469425
+ "layer-panel": () => import("./LayerPanel-b5092abf.mjs"),
469426
+ coordinate: () => import("./CoordinateLocationDialog-966cbb7e.mjs"),
469427
469427
  "region-navigation": () => import("./RegionNavigationDialog-b0b6f86b.mjs"),
469428
- "my-markers": () => import("./MyMarkersDialog-c0883329.mjs"),
469429
- "view-bookmarks": () => import("./ViewBookmarksDialog-9f767176.mjs"),
469430
- "map-drawing": () => import("./index-3dc1ae8a.mjs"),
469431
- "filter-panel": () => import("./FilterPanel-a5f38164.mjs")
469428
+ "my-markers": () => import("./MyMarkersDialog-663189c2.mjs"),
469429
+ "view-bookmarks": () => import("./ViewBookmarksDialog-513a3aa4.mjs"),
469430
+ "map-drawing": () => import("./index-2d14dc18.mjs"),
469431
+ "filter-panel": () => import("./FilterPanel-df20f797.mjs")
469432
469432
  };
469433
469433
  const _DialogRegistry = class _DialogRegistry {
469434
469434
  constructor() {
@@ -469611,7 +469611,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
469611
469611
  emits: ["tool-action", "mouse-state-change", "show-layer-panel"],
469612
469612
  setup(__props, { expose: __expose, emit: __emit }) {
469613
469613
  const props = __props;
469614
- dialogManager.getAllStates();
469615
469614
  const customPositionStyles = computed(() => {
469616
469615
  const styles = {};
469617
469616
  if (props.leftOffset !== void 0) {
@@ -469827,7 +469826,7 @@ const _export_sfc = (sfc, props) => {
469827
469826
  }
469828
469827
  return target;
469829
469828
  };
469830
- const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-80958d6e"]]);
469829
+ const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-b9b25448"]]);
469831
469830
  const TIANDITU_CONFIG = {
469832
469831
  baseUrl: "https://api.tianditu.gov.cn/v2/search",
469833
469832
  key: "9a7244dd5d1a1299a52946a3d0f8ff68"
@@ -476664,10 +476663,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
476664
476663
  return props.showLayerPanel !== void 0 ? props.showLayerPanel : ((_b3 = (_a3 = finalMapConfig.value.controls) == null ? void 0 : _a3.layerPanel) == null ? void 0 : _b3.enabled) ?? false;
476665
476664
  });
476666
476665
  const finalShowToolbar = computed(() => {
476667
- var _a3;
476666
+ var _a3, _b3, _c2;
476668
476667
  if (hasToolbarSlot.value)
476669
476668
  return false;
476670
- return props.showToolbar !== void 0 ? props.showToolbar : ((_a3 = finalMapConfig.value.ui) == null ? void 0 : _a3.showToolbar) ?? true;
476669
+ return props.showToolbar !== void 0 ? props.showToolbar : ((_a3 = finalMapConfig.value.ui) == null ? void 0 : _a3.showToolbar) ?? ((_c2 = (_b3 = finalMapConfig.value.controls) == null ? void 0 : _b3.tools) == null ? void 0 : _c2.showToolbar) ?? true;
476671
476670
  });
476672
476671
  computed(() => {
476673
476672
  var _a3;
@@ -478177,7 +478176,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
478177
478176
  };
478178
478177
  }
478179
478178
  });
478180
- const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-4eef8abb"]]);
478179
+ const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1982fcc7"]]);
478181
478180
  const _hoisted_1$1 = ["href"];
478182
478181
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
478183
478182
  __name: "index",
@@ -490071,7 +490070,7 @@ function(t3) {
490071
490070
  */
490072
490071
  function(t3) {
490073
490072
  function e8() {
490074
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-31d767d5.mjs")).catch(function(t4) {
490073
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-38d18d6e.mjs")).catch(function(t4) {
490075
490074
  return Promise.reject(new Error("Could not load canvg: " + t4));
490076
490075
  }).then(function(t4) {
490077
490076
  return t4.default ? t4.default : t4;
@@ -1,5 +1,5 @@
1
1
  import { nextTick, defineComponent, computed, ref, reactive, markRaw, watch, onMounted, onBeforeUnmount, toRefs, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createVNode, createElementVNode, normalizeClass, normalizeStyle, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, withKeys, renderSlot, vShow, createTextVNode, isVNode, render } from "vue";
2
- import { A as componentSizes, B as obtainAllFocusableElements, C as getEventCode, D as EVENT_CODE, F as ElButton, G as ElFocusTrap, H as ElInput, I as ElOverlay, J as ElIcon, K as TypeComponents, L as useGlobalComponentSettings, N as loading_default, O as TypeComponentsMap, P as useId, Q as useDraggable, S as isFunction, U as isString, V as useLockscreen, W as _export_sfc, Y as useSameTarget, Z as isClient, $ as hasOwn, a0 as isObject, a1 as isUndefined, a2 as isElement, a3 as debugWarn } from "./index-bc98d31c.mjs";
2
+ import { A as componentSizes, B as obtainAllFocusableElements, C as getEventCode, D as EVENT_CODE, F as ElButton, G as ElFocusTrap, H as ElInput, I as ElOverlay, J as ElIcon, K as TypeComponents, L as useGlobalComponentSettings, N as loading_default, O as TypeComponentsMap, P as useId, Q as useDraggable, S as isFunction, U as isString, V as useLockscreen, W as _export_sfc, Y as useSameTarget, Z as isClient, $ as hasOwn, a0 as isObject, a1 as isUndefined, a2 as isElement, a3 as debugWarn } from "./index-bffe7847.mjs";
3
3
  const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
4
4
  const FOCUSABLE_CHILDREN = "_trap-focus-children";
5
5
  const FOCUS_STACK = [];
@@ -1,4 +1,4 @@
1
- import { c as commonjsGlobal, R as RGBColor, r as requestAnimationFrame, _ as _asyncToGenerator, a as _, p as processCanvasRGBA, b as _defineProperty } from "./index-bc98d31c.mjs";
1
+ import { c as commonjsGlobal, R as RGBColor, r as requestAnimationFrame, _ as _asyncToGenerator, a as _, p as processCanvasRGBA, b as _defineProperty } from "./index-bffe7847.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  var check = function(it) {
package/lib/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aB, ap, af, a7, as, a4, aY, ax, aA, b1, b0, aI, aJ, aU, aV, am, aK, aL, a$, aZ, ao, an, aW, aX, aS, aT, aQ, aR, aO, aP, ae, aa, a9, ad, a7 as a72, a8, ab, ac, aC, aD, aG, aH, aM, aN, b2, ag, aE, aF, ak, az, aq, at, aw, ai, f, al, ay, au, g, ar, a_, ah, av, l, aj } from "./index-bc98d31c.mjs";
1
+ import { aB, ap, af, a7, as, a4, aY, ax, aA, b1, b0, aI, aJ, aU, aV, am, aK, aL, a$, aZ, ao, an, aW, aX, aS, aT, aQ, aR, aO, aP, ae, aa, a9, ad, a7 as a72, a8, ab, ac, aC, aD, aG, aH, aM, aN, b2, ag, aE, aF, ak, az, aq, at, aw, ai, f, al, ay, au, g, ar, a_, ah, av, l, aj } from "./index-bffe7847.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
package/lib/index.umd.js CHANGED
@@ -471145,7 +471145,6 @@ ${this.attributes_.map(
471145
471145
  emits: ["tool-action", "mouse-state-change", "show-layer-panel"],
471146
471146
  setup(__props, { expose: __expose, emit: __emit }) {
471147
471147
  const props = __props;
471148
- dialogManager.getAllStates();
471149
471148
  const customPositionStyles = vue.computed(() => {
471150
471149
  const styles = {};
471151
471150
  if (props.leftOffset !== void 0) {
@@ -471354,7 +471353,7 @@ ${this.attributes_.map(
471354
471353
  };
471355
471354
  }
471356
471355
  });
471357
- const OlDrawToolbar_vue_vue_type_style_index_0_scoped_80958d6e_lang = "";
471356
+ const OlDrawToolbar_vue_vue_type_style_index_0_scoped_b9b25448_lang = "";
471358
471357
  const _export_sfc = (sfc, props) => {
471359
471358
  const target = sfc.__vccOpts || sfc;
471360
471359
  for (const [key2, val] of props) {
@@ -471362,7 +471361,7 @@ ${this.attributes_.map(
471362
471361
  }
471363
471362
  return target;
471364
471363
  };
471365
- const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-80958d6e"]]);
471364
+ const OlDrawToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-b9b25448"]]);
471366
471365
  const TIANDITU_CONFIG = {
471367
471366
  baseUrl: "https://api.tianditu.gov.cn/v2/search",
471368
471367
  key: "9a7244dd5d1a1299a52946a3d0f8ff68"
@@ -478213,10 +478212,10 @@ ${this.attributes_.map(
478213
478212
  return props.showLayerPanel !== void 0 ? props.showLayerPanel : ((_b3 = (_a3 = finalMapConfig.value.controls) == null ? void 0 : _a3.layerPanel) == null ? void 0 : _b3.enabled) ?? false;
478214
478213
  });
478215
478214
  const finalShowToolbar = vue.computed(() => {
478216
- var _a3;
478215
+ var _a3, _b3, _c2;
478217
478216
  if (hasToolbarSlot.value)
478218
478217
  return false;
478219
- return props.showToolbar !== void 0 ? props.showToolbar : ((_a3 = finalMapConfig.value.ui) == null ? void 0 : _a3.showToolbar) ?? true;
478218
+ return props.showToolbar !== void 0 ? props.showToolbar : ((_a3 = finalMapConfig.value.ui) == null ? void 0 : _a3.showToolbar) ?? ((_c2 = (_b3 = finalMapConfig.value.controls) == null ? void 0 : _b3.tools) == null ? void 0 : _c2.showToolbar) ?? true;
478220
478219
  });
478221
478220
  vue.computed(() => {
478222
478221
  var _a3;
@@ -479726,8 +479725,8 @@ ${this.attributes_.map(
479726
479725
  };
479727
479726
  }
479728
479727
  });
479729
- const OlMap_vue_vue_type_style_index_0_scoped_4eef8abb_lang = "";
479730
- const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-4eef8abb"]]);
479728
+ const OlMap_vue_vue_type_style_index_0_scoped_1982fcc7_lang = "";
479729
+ const OlMap = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1982fcc7"]]);
479731
479730
  const _hoisted_1$a = ["href"];
479732
479731
  const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
479733
479732
  __name: "index",
package/lib/style.css CHANGED
@@ -685,13 +685,29 @@
685
685
  text-align: center;
686
686
  backdrop-filter: blur(4px);
687
687
  }
688
- .map-toolbar[data-v-80958d6e] {
688
+ .map-toolbar[data-v-b9b25448] {
689
689
  position: absolute;
690
690
  top: 20px;
691
691
  right: 1%;
692
- z-index: 100;
692
+ z-index: 3000;
693
+ height: 32px;
694
+ }
695
+ .map-toolbar[data-v-b9b25448] .el-menu--horizontal {
696
+ height: 100% !important;
697
+ }
698
+ .map-toolbar .toolbar-menu[data-v-b9b25448] {
699
+ background: rgba(255, 255, 255, 0.9);
700
+ backdrop-filter: blur(10px);
701
+ border-radius: 4px;
702
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
703
+ }
704
+ .map-toolbar .main-menu-item[data-v-b9b25448] {
705
+ transition: all 0.3s ease;
706
+ }
707
+ .map-toolbar .main-menu-item[data-v-b9b25448]:hover {
708
+ background-color: rgba(64, 158, 255, 0.1);
693
709
  }
694
- .map-toolbar[data-v-80958d6e]:hover {
710
+ .map-toolbar[data-v-b9b25448]:hover {
695
711
  box-shadow: var(--el-box-shadow);
696
712
  border-color: var(--el-border-color-hover);
697
713
  }.map-search-container {
@@ -1668,7 +1684,7 @@ label {
1668
1684
  width: 100% !important;
1669
1685
  height: 100% !important;
1670
1686
  }
1671
- .context-menu[data-v-4eef8abb] {
1687
+ .context-menu[data-v-1982fcc7] {
1672
1688
  background: var(--el-bg-color-overlay);
1673
1689
  border: 1px solid var(--el-border-color-light);
1674
1690
  border-radius: var(--el-border-radius-base);
@@ -1677,7 +1693,7 @@ label {
1677
1693
  min-width: 140px;
1678
1694
  overflow: hidden;
1679
1695
  }
1680
- .context-menu .context-menu-item[data-v-4eef8abb] {
1696
+ .context-menu .context-menu-item[data-v-1982fcc7] {
1681
1697
  display: flex;
1682
1698
  align-items: center;
1683
1699
  padding: 8px 16px;
@@ -1686,14 +1702,14 @@ label {
1686
1702
  color: var(--el-text-color-primary);
1687
1703
  transition: all 0.2s;
1688
1704
  }
1689
- .context-menu .context-menu-item[data-v-4eef8abb]:hover {
1705
+ .context-menu .context-menu-item[data-v-1982fcc7]:hover {
1690
1706
  background-color: var(--el-fill-color-light);
1691
1707
  color: var(--el-color-primary);
1692
1708
  }
1693
- .context-menu .context-menu-item:hover .el-icon[data-v-4eef8abb] {
1709
+ .context-menu .context-menu-item:hover .el-icon[data-v-1982fcc7] {
1694
1710
  color: var(--el-color-primary);
1695
1711
  }
1696
- .context-menu .context-menu-item .el-icon[data-v-4eef8abb] {
1712
+ .context-menu .context-menu-item .el-icon[data-v-1982fcc7] {
1697
1713
  margin-right: 8px;
1698
1714
  font-size: 16px;
1699
1715
  color: var(--el-text-color-secondary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-openlayers-plugin",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "A Vue 3 plugin for OpenLayers with custom components and utilities",
5
5
  "main": "lib/index.umd.js",
6
6
  "module": "lib/index.esm.js",