vue-openlayers-plugin 1.0.52 → 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.
@@ -83479,11 +83479,13 @@ class GeoJSONLayerHandler extends BaseLayer$2 {
83479
83479
  * 设置基于属性的样式
83480
83480
  */
83481
83481
  setPropertyBasedStyle(propertyName, styleMapping, defaultStyleConfig) {
83482
- if (defaultStyleConfig) {
83483
- this.styleConfig = defaultStyleConfig;
83484
- }
83482
+ const styleFunction = styleManager.createPropertyBasedStyleFunction(
83483
+ propertyName,
83484
+ styleMapping,
83485
+ defaultStyleConfig
83486
+ );
83485
83487
  const layer2 = this.getLayer();
83486
- layer2.setStyle(this.createStyleFunction());
83488
+ layer2.setStyle(styleFunction);
83487
83489
  }
83488
83490
  /**
83489
83491
  * 定位到图层中的所有要素
@@ -490518,7 +490520,7 @@ function(t3) {
490518
490520
  */
490519
490521
  function(t3) {
490520
490522
  function e8() {
490521
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-559e2a35.mjs")).catch(function(t4) {
490523
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-49a6cfdb.mjs")).catch(function(t4) {
490522
490524
  return Promise.reject(new Error("Could not load canvg: " + t4));
490523
490525
  }).then(function(t4) {
490524
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-04ba0573.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-04ba0573.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
@@ -83988,11 +83988,13 @@ ${this.attributes_.map(
83988
83988
  * 设置基于属性的样式
83989
83989
  */
83990
83990
  setPropertyBasedStyle(propertyName, styleMapping, defaultStyleConfig) {
83991
- if (defaultStyleConfig) {
83992
- this.styleConfig = defaultStyleConfig;
83993
- }
83991
+ const styleFunction = styleManager.createPropertyBasedStyleFunction(
83992
+ propertyName,
83993
+ styleMapping,
83994
+ defaultStyleConfig
83995
+ );
83994
83996
  const layer2 = this.getLayer();
83995
- layer2.setStyle(this.createStyleFunction());
83997
+ layer2.setStyle(styleFunction);
83996
83998
  }
83997
83999
  /**
83998
84000
  * 定位到图层中的所有要素
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-openlayers-plugin",
3
- "version": "1.0.52",
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",