vue-openlayers-plugin 1.0.51 → 1.0.53

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.
@@ -81039,7 +81039,6 @@ class MapOperationTool {
81039
81039
  duration: fitOptions.duration,
81040
81040
  minZoom: fitOptions.minZoom
81041
81041
  });
81042
- ElMessage.success(`成功定位到 ${features2.length} 个 GeoJSON 要素`);
81043
81042
  } catch (error2) {
81044
81043
  console.error("定位到 GeoJSON 失败:", error2);
81045
81044
  ElMessage.error("定位到 GeoJSON 数据失败");
@@ -81080,7 +81079,6 @@ class MapOperationTool {
81080
81079
  zoom: targetZoom,
81081
81080
  duration: duration2
81082
81081
  });
81083
- ElMessage.success("成功定位到 GeoJSON 要素中心");
81084
81082
  } catch (error2) {
81085
81083
  console.error("定位到 GeoJSON 中心失败:", error2);
81086
81084
  ElMessage.error("定位到 GeoJSON 要素中心失败");
@@ -81189,7 +81187,6 @@ class GeoJSONLocationTool {
81189
81187
  minZoom: fitOptions.minZoom
81190
81188
  });
81191
81189
  if (fitOptions.showMessage) {
81192
- ElMessage.success(`成功定位到 ${features2.length} 个 GeoJSON 要素`);
81193
81190
  }
81194
81191
  return true;
81195
81192
  } catch (error2) {
@@ -81238,7 +81235,6 @@ class GeoJSONLocationTool {
81238
81235
  duration: (options == null ? void 0 : options.duration) || 1e3
81239
81236
  });
81240
81237
  if ((options == null ? void 0 : options.showMessage) !== false) {
81241
- ElMessage.success("成功定位到 GeoJSON 要素中心");
81242
81238
  }
81243
81239
  return true;
81244
81240
  } catch (error2) {
@@ -83483,11 +83479,13 @@ class GeoJSONLayerHandler extends BaseLayer$2 {
83483
83479
  * 设置基于属性的样式
83484
83480
  */
83485
83481
  setPropertyBasedStyle(propertyName, styleMapping, defaultStyleConfig) {
83486
- if (defaultStyleConfig) {
83487
- this.styleConfig = defaultStyleConfig;
83488
- }
83482
+ const styleFunction = styleManager.createPropertyBasedStyleFunction(
83483
+ propertyName,
83484
+ styleMapping,
83485
+ defaultStyleConfig
83486
+ );
83489
83487
  const layer2 = this.getLayer();
83490
- layer2.setStyle(this.createStyleFunction());
83488
+ layer2.setStyle(styleFunction);
83491
83489
  }
83492
83490
  /**
83493
83491
  * 定位到图层中的所有要素
@@ -490522,7 +490520,7 @@ function(t3) {
490522
490520
  */
490523
490521
  function(t3) {
490524
490522
  function e8() {
490525
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-7867bf7f.mjs")).catch(function(t4) {
490523
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-49a6cfdb.mjs")).catch(function(t4) {
490526
490524
  return Promise.reject(new Error("Could not load canvg: " + t4));
490527
490525
  }).then(function(t4) {
490528
490526
  return t4.default ? t4.default : t4;
@@ -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-0cfcd57c.mjs";
1
+ import { c as commonjsGlobal, R as RGBColor, r as requestAnimationFrame, _ as _asyncToGenerator, a as _, p as processCanvasRGBA, b as _defineProperty } from "./index-a3727619.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 { z, B, d, C, D, a2, a3, u, y, a7, a6, I, H, Z, $, L, J, K, a4, h, M, a0, a1, X, Y, U, W, Q, S, P, A, F, G, N, O, a8, e, T, E, V, x, j, o, t, f, k, g, w, q, m, n, a5, i, s, l, v } from "./index-0cfcd57c.mjs";
1
+ import { z, B, d, C, D, a2, a3, u, y, a7, a6, I, H, Z, $, L, J, K, a4, h, M, a0, a1, X, Y, U, W, Q, S, P, A, F, G, N, O, a8, e, T, E, V, x, j, o, t, f, k, g, w, q, m, n, a5, i, s, l, v } from "./index-a3727619.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
package/lib/index.umd.js CHANGED
@@ -81548,7 +81548,6 @@ ${this.attributes_.map(
81548
81548
  duration: fitOptions.duration,
81549
81549
  minZoom: fitOptions.minZoom
81550
81550
  });
81551
- ElMessage.success(`成功定位到 ${features2.length} 个 GeoJSON 要素`);
81552
81551
  } catch (error2) {
81553
81552
  console.error("定位到 GeoJSON 失败:", error2);
81554
81553
  ElMessage.error("定位到 GeoJSON 数据失败");
@@ -81589,7 +81588,6 @@ ${this.attributes_.map(
81589
81588
  zoom: targetZoom,
81590
81589
  duration: duration2
81591
81590
  });
81592
- ElMessage.success("成功定位到 GeoJSON 要素中心");
81593
81591
  } catch (error2) {
81594
81592
  console.error("定位到 GeoJSON 中心失败:", error2);
81595
81593
  ElMessage.error("定位到 GeoJSON 要素中心失败");
@@ -81698,7 +81696,6 @@ ${this.attributes_.map(
81698
81696
  minZoom: fitOptions.minZoom
81699
81697
  });
81700
81698
  if (fitOptions.showMessage) {
81701
- ElMessage.success(`成功定位到 ${features2.length} 个 GeoJSON 要素`);
81702
81699
  }
81703
81700
  return true;
81704
81701
  } catch (error2) {
@@ -81747,7 +81744,6 @@ ${this.attributes_.map(
81747
81744
  duration: (options == null ? void 0 : options.duration) || 1e3
81748
81745
  });
81749
81746
  if ((options == null ? void 0 : options.showMessage) !== false) {
81750
- ElMessage.success("成功定位到 GeoJSON 要素中心");
81751
81747
  }
81752
81748
  return true;
81753
81749
  } catch (error2) {
@@ -83992,11 +83988,13 @@ ${this.attributes_.map(
83992
83988
  * 设置基于属性的样式
83993
83989
  */
83994
83990
  setPropertyBasedStyle(propertyName, styleMapping, defaultStyleConfig) {
83995
- if (defaultStyleConfig) {
83996
- this.styleConfig = defaultStyleConfig;
83997
- }
83991
+ const styleFunction = styleManager.createPropertyBasedStyleFunction(
83992
+ propertyName,
83993
+ styleMapping,
83994
+ defaultStyleConfig
83995
+ );
83998
83996
  const layer2 = this.getLayer();
83999
- layer2.setStyle(this.createStyleFunction());
83997
+ layer2.setStyle(styleFunction);
84000
83998
  }
84001
83999
  /**
84002
84000
  * 定位到图层中的所有要素
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-openlayers-plugin",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
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",