@maptalks/vt 0.107.0 → 0.107.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @maptalks/vt v0.107.0
2
+ * @maptalks/vt v0.107.1
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2025 maptalks.org
5
5
  */
@@ -4812,7 +4812,7 @@
4812
4812
  this.symbolDef = t, this.symbol = oe(t, (() => (i[0] = n.zoom, i))), this.styledVectors = [],
4813
4813
  this.properties = {}, this._fnTypes = n.fnTypes || gs.genFnTypes(this.symbolDef),
4814
4814
  st(this.symbolDef.visible) && (this._visibleFn = re(this.symbolDef.visible)), n.atlas && (this.iconAtlas = n.atlas.iconAtlas,
4815
- this.glyphAtlas = n.atlas.glyphAtlas), this.features = this._check(e);
4815
+ this.glyphAtlas = n.atlas.glyphAtlas), this.maxAltitude = 0, this.features = this._check(e);
4816
4816
  }
4817
4817
  needAltitudeAttribute() {
4818
4818
  const e = Math.max(Math.abs(this.maxPosZ), Math.abs(this.minPosZ));
@@ -4871,7 +4871,7 @@
4871
4871
  const i = this.getAltitude(t.properties);
4872
4872
  if (i) for (let e = 0; e < t.geometry.length; e++) {
4873
4873
  const n = t.geometry[e];
4874
- if (n && n.length) for (let e = 0; e < n.length; e++) n[e].z += i;
4874
+ if (n && n.length) for (let e = 0; e < n.length; e++) n[e].z = (n[e].z || 0) + i;
4875
4875
  }
4876
4876
  }
4877
4877
  if (this.maxPosZ = 0, this.minPosZ = 0, !this.options.forceAltitudeAttribute) {
@@ -4999,7 +4999,7 @@
4999
4999
  createDataPack(e, t) {
5000
5000
  if (!e || !e.length) return null;
5001
5001
  this.maxIndex = 0, this.maxPos = 0, this._minX = this._minY = 1 / 0, this._maxX = this._maxY = -1 / 0,
5002
- this.maxAltitude = 0, this.dynamicAttrs = {};
5002
+ this.dynamicAttrs = {};
5003
5003
  const n = this.data = {};
5004
5004
  this._arrayPool = fs, fs.reset();
5005
5005
  let i = this.elements = fs.get();
@@ -22482,6 +22482,6 @@
22482
22482
  e.PointLayer = Ul, e.PolygonLayer = Yl, e.SYMBOLS_NEED_REBUILD_IN_VECTOR = zu, e.SYMBOLS_NEED_REBUILD_IN_VT = Nu,
22483
22483
  e.TextPainter = Do, e.TextPlugin = nl, e.TubePlugin = al, e.Vector3DLayer = an,
22484
22484
  e.VectorTileLayer = Qt, e.VectorTileLayerRenderer = Vt, e.WaterPlugin = ul, e.WireframePainter = sa,
22485
- e.WireframePlugin = sl, "undefined" != typeof console && console.log("@maptalks/vt v0.107.0");
22485
+ e.WireframePlugin = sl, "undefined" != typeof console && console.log("@maptalks/vt v0.107.1");
22486
22486
  }));
22487
22487
  //# sourceMappingURL=maptalks.vt.js.map