@maptalks/vt 0.107.0 → 0.107.2

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.2
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2025 maptalks.org
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @maptalks/vt v0.107.0
2
+ * @maptalks/vt v0.107.2
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2025 maptalks.org
5
5
  */
@@ -4823,7 +4823,7 @@ function L(e) {
4823
4823
  this.symbolDef = t, this.symbol = oe(t, (() => (i[0] = n.zoom, i))), this.styledVectors = [],
4824
4824
  this.properties = {}, this._fnTypes = n.fnTypes || gs.genFnTypes(this.symbolDef),
4825
4825
  st(this.symbolDef.visible) && (this._visibleFn = re(this.symbolDef.visible)), n.atlas && (this.iconAtlas = n.atlas.iconAtlas,
4826
- this.glyphAtlas = n.atlas.glyphAtlas), this.features = this._check(e);
4826
+ this.glyphAtlas = n.atlas.glyphAtlas), this.maxAltitude = 0, this.features = this._check(e);
4827
4827
  }
4828
4828
  needAltitudeAttribute() {
4829
4829
  const e = Math.max(Math.abs(this.maxPosZ), Math.abs(this.minPosZ));
@@ -4882,7 +4882,7 @@ function L(e) {
4882
4882
  const i = this.getAltitude(t.properties);
4883
4883
  if (i) for (let e = 0; e < t.geometry.length; e++) {
4884
4884
  const n = t.geometry[e];
4885
- if (n && n.length) for (let e = 0; e < n.length; e++) n[e].z += i;
4885
+ if (n && n.length) for (let e = 0; e < n.length; e++) n[e].z = (n[e].z || 0) + i;
4886
4886
  }
4887
4887
  }
4888
4888
  if (this.maxPosZ = 0, this.minPosZ = 0, !this.options.forceAltitudeAttribute) {
@@ -5010,7 +5010,7 @@ function L(e) {
5010
5010
  createDataPack(e, t) {
5011
5011
  if (!e || !e.length) return null;
5012
5012
  this.maxIndex = 0, this.maxPos = 0, this._minX = this._minY = 1 / 0, this._maxX = this._maxY = -1 / 0,
5013
- this.maxAltitude = 0, this.dynamicAttrs = {};
5013
+ this.dynamicAttrs = {};
5014
5014
  const n = this.data = {};
5015
5015
  this._arrayPool = fs, fs.reset();
5016
5016
  let i = this.elements = fs.get();
@@ -20566,5 +20566,5 @@ if (r.transcoders) {
20566
20566
 
20567
20567
  export { Do as BillBoardPainter, $o as BillBoardPlugin, Ul as ExtrudePolygonLayer, Cn as FillPainter, Lo as FillPlugin, Xl as FilterUtil, Xo as GLTFPhongPlugin, Yo as GLTFStandardPlugin, Qo as GeoJSONVectorTileLayer, Zo as HeatmapPlugin, Pr as IconPainter, zo as IconPlugin, No as LineGradientPlugin, Rn as LinePainter, Ho as LinePlugin, Ia as LineStringLayer, jo as LitPlugin, Jo as MapboxVectorTileLayer, Ms as NativeLinePainter, Uo as NativeLinePlugin, Ts as NativePointPainter, Wl as PackUtil, Vs as PhongPainter, Bo as PhongPlugin, Ma as PointLayer, Fa as PolygonLayer, Zl as SYMBOLS_NEED_REBUILD_IN_VECTOR, Yl as SYMBOLS_NEED_REBUILD_IN_VT, xs as TextPainter, Vo as TextPlugin, Wo as TubePlugin, mt as Vector3DLayer, ht as VectorTileLayer, $e as VectorTileLayerRenderer, qo as WaterPlugin, Bs as WireframePainter, Go as WireframePlugin };
20568
20568
 
20569
- "undefined" != typeof console && console.log("@maptalks/vt v0.107.0");
20569
+ "undefined" != typeof console && console.log("@maptalks/vt v0.107.2");
20570
20570
  //# sourceMappingURL=maptalks.vt.es.js.map