@mapcatch/util 1.0.13 → 1.0.14

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.
package/CHANGELOG.md CHANGED
@@ -53,4 +53,8 @@
53
53
 
54
54
  ## v1.0.13
55
55
 
56
- - [improve] diffLayers检查所有图层的metadata,有变化则提交更新
56
+ - [improve] diffLayers检查所有图层的metadata,有变化则提交更新
57
+
58
+ ## v1.0.14
59
+
60
+ - [improve] addIcons2Map支持sdf符号
@@ -49080,13 +49080,13 @@ function L3(T, E = 12) {
49080
49080
  };
49081
49081
  }
49082
49082
  function aM(T, E) {
49083
- E.forEach((a) => {
49084
- T.loadImage(a, (r, i) => {
49085
- let t = a.split("/").pop().split(".")[0];
49086
- if (!T.hasImage(t)) {
49087
- if (r)
49088
- throw r;
49089
- T.addImage(t, i);
49083
+ E.forEach(({ url: a, sdf: r }) => {
49084
+ T.loadImage(a, (i, t) => {
49085
+ let n = path.split("/").pop().split(".")[0];
49086
+ if (!T.hasImage(n)) {
49087
+ if (i)
49088
+ throw i;
49089
+ T.addImage(n, t, { sdf: r });
49090
49090
  }
49091
49091
  });
49092
49092
  });