@maptalks/vt 0.82.1 → 0.82.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.82.1
2
+ * @maptalks/vt v0.82.2
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2023 maptalks.org
5
5
  */
@@ -635,31 +635,31 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
635
635
  let i = this.G[this.V];
636
636
  i || (this.Y(), i = this.tt());
637
637
  const r = this.et();
638
- n.isDefaultRender() || i.length || r.length ? (!n.options.collision || this.ft && this.ft === t || n.clearCollisionIndex(),
639
- this.dt = t, this.pt = this.yt(this.getMap().getGLRes()), this.gt = e || {}, this.vt(t),
640
- super.draw(t), this.ct !== t && this.bt(t), this.xt(t), this.completeRender(), this.ct = t) : this.completeRender();
638
+ n.isDefaultRender() || i.length || r.length ? (n.options.collision && n.clearCollisionIndex(),
639
+ this.ft = t, this.dt = this.pt(this.getMap().getGLRes()), this.yt = e || {}, this.gt(t),
640
+ super.draw(t), this.ct !== t && this.vt(t), this.bt(t), this.completeRender(), this.ct = t) : this.completeRender();
641
641
  }
642
642
  ut() {
643
643
  this.it().forEach((t, e) => {
644
644
  t.renderIndex = e;
645
645
  });
646
646
  }
647
- bt() {
647
+ vt() {
648
648
  const t = this.it();
649
- this.wt = [];
649
+ this.xt = [];
650
650
  let e = +!!this.layer.getGroundConfig().enable;
651
651
  t.forEach((t, n) => {
652
- t.isVisible() && Ct(t) && (this.wt[n] = e, t.needPolygonOffset() && e++);
653
- }), this.At = e;
652
+ t.isVisible() && Ct(t) && (this.xt[n] = e, t.needPolygonOffset() && e++);
653
+ }), this.wt = e;
654
654
  }
655
655
  getFrameTimestamp() {
656
- return this.dt;
656
+ return this.ft;
657
657
  }
658
658
  drawOnInteracting(t, e, n) {
659
659
  this.draw(e, n);
660
660
  }
661
661
  drawOutline(t) {
662
- (this.kt || this._t) && (this._t ? this.paintOutlineAll(t) : this.kt.forEach(e => {
662
+ (this.At || this.kt) && (this.kt ? this.paintOutlineAll(t) : this.At.forEach(e => {
663
663
  this[e[0]](t, ...e[1]);
664
664
  }));
665
665
  }
@@ -668,15 +668,15 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
668
668
  }
669
669
  getShadowMeshes() {
670
670
  const t = [];
671
- return this.Tt().forEach(e => {
671
+ return this._t().forEach(e => {
672
672
  if (!e) return;
673
- if (!this.St(e)) return;
673
+ if (!this.Tt(e)) return;
674
674
  const n = e.getShadowMeshes();
675
675
  if (Array.isArray(n)) for (let e = 0; e < n.length; e++) t.push(n[e]);
676
676
  }), t;
677
677
  }
678
678
  isForeground(t) {
679
- return !(!this.Mt || !this.Mt[t.properties.tile.id]);
679
+ return !(!this.St || !this.St[t.properties.tile.id]);
680
680
  }
681
681
  isTileNearCamera(e) {
682
682
  const n = this.layer;
@@ -686,7 +686,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
686
686
  return i - e.properties.tile.z <= 1;
687
687
  }
688
688
  isBackTile(t) {
689
- return !(!this.Pt || !this.Pt[t]);
689
+ return !(!this.Mt || !this.Mt[t]);
690
690
  }
691
691
  loadTile(t) {
692
692
  const {url: e} = t, n = this.U[e];
@@ -707,11 +707,11 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
707
707
  extent2d: t.extent2d
708
708
  },
709
709
  glScale: i,
710
- zScale: this.pt,
710
+ zScale: this.dt,
711
711
  centimeterToPoint: n,
712
712
  fetchOptions: r,
713
713
  styleCounter: this.V
714
- }, this.It.bind(this, e));
714
+ }, this.Pt.bind(this, e));
715
715
  }
716
716
  return {};
717
717
  }
@@ -723,7 +723,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
723
723
  const e = this.getMap();
724
724
  return rt(this.layer.getSpatialReference().getResolution(t), e);
725
725
  }
726
- It(t, e, n) {
726
+ Pt(t, e, n) {
727
727
  if (!this.U[t]) return;
728
728
  if (n && n.canceled) return;
729
729
  const i = this.layer, r = i.isDefaultRender(), {tiles: o} = this.U[t];
@@ -738,7 +738,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
738
738
  for (let t = 0; t < o.length; t++) {
739
739
  const e = o[t];
740
740
  this.consumeTile({
741
- Ot: !0
741
+ It: !0
742
742
  }, e);
743
743
  }
744
744
  return;
@@ -749,16 +749,16 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
749
749
  for (let t = 0; t < n.data.length; t++) {
750
750
  const e = n.data[t];
751
751
  if (!e || !e.data || !e.styledFeatures.length) continue;
752
- const {isUpdated: i, layer: r} = this.Ct(0, t, e, a, l);
752
+ const {isUpdated: i, layer: r} = this.Ot(0, t, e, a, l);
753
753
  l.push(r), i && (s = i);
754
754
  }
755
755
  for (let t = 0; t < n.featureData.length; t++) {
756
756
  const e = n.featureData[t];
757
- e && e.data && e.styledFeatures.length && this.Ct(1, t, e, a);
757
+ e && e.data && e.styledFeatures.length && this.Ot(1, t, e, a);
758
758
  }
759
- s && i.Ft();
759
+ s && i.Ct();
760
760
  const h = o[0].z, c = this.layer.getDataSchema(h);
761
- if (this.Et(c, n.schema), delete n.features, r && n.data.length !== l.length) {
761
+ if (this.Ft(c, n.schema), delete n.features, r && n.data.length !== l.length) {
762
762
  const t = n.data;
763
763
  n.data = [];
764
764
  for (let e = 0; e < t.length; e++) t[e] && t[e].features && n.data.push(t[e]);
@@ -790,8 +790,8 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
790
790
  url: t
791
791
  });
792
792
  }
793
- Ct(t, e, n, i) {
794
- const {style: r, isUpdated: o} = this.zt(t, e, n.data), s = this.layer, a = s.isDefaultRender(), l = r.symbol, h = gt(i, n.styledFeatures, e, l, s);
793
+ Ot(t, e, n, i) {
794
+ const {style: r, isUpdated: o} = this.Et(t, e, n.data), s = this.layer, a = s.isDefaultRender(), l = r.symbol, h = gt(i, n.styledFeatures, e, l, s);
795
795
  delete n.styledFeatures, n.features = h;
796
796
  let c = n.data;
797
797
  return Array.isArray(c) && (c = c[0]), {
@@ -802,7 +802,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
802
802
  } : null
803
803
  };
804
804
  }
805
- Et(t, e) {
805
+ Ft(t, e) {
806
806
  for (const n in e) {
807
807
  t[n] || (t[n] = {
808
808
  types: e[n].types,
@@ -812,23 +812,23 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
812
812
  for (const t in i) (!r[t] || r[t] && "object" !== i[t] && "object" === r[t]) && (r[t] = i[t]);
813
813
  }
814
814
  }
815
- zt(t, e, n) {
815
+ Et(t, e, n) {
816
816
  Array.isArray(n) && (n = n[0]);
817
817
  const i = this.layer;
818
818
  let r, o = !1;
819
819
  if (i.isDefaultRender() && 0 === t) {
820
- let t = this.jt;
821
- t || (t = this.jt = {});
820
+ let t = this.zt;
821
+ t || (t = this.zt = {});
822
822
  const e = n.layer, i = n.type;
823
823
  t[e] || (t[e] = []);
824
824
  const s = ("plugin_" + i).trim();
825
- t[e][s] ? r = t[e][s] : (r = this.Dt(i), r.filter = n.filter, t[e].push(r), t[e][s] = r,
825
+ t[e][s] ? r = t[e][s] : (r = this.jt(i), r.filter = n.filter, t[e].push(r), t[e][s] = r,
826
826
  o = !0);
827
827
  } else {
828
828
  const s = i.$(), a = i.nt(t, s), l = this.tt();
829
829
  if (r = a[e], !r.renderPlugin) {
830
830
  o = !0;
831
- const {plugin: t, symbol: i, renderPlugin: s} = this.Dt(n.type);
831
+ const {plugin: t, symbol: i, renderPlugin: s} = this.jt(n.type);
832
832
  l[e] = t, r.symbol = i, r.renderPlugin = s;
833
833
  }
834
834
  }
@@ -840,20 +840,20 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
840
840
  it(t) {
841
841
  const e = t && t.style;
842
842
  let n = this.tt(e) || [];
843
- this.layer.isDefaultRender() && this.jt && (n = [], t ? t.layers && t.layers.forEach(t => {
843
+ this.layer.isDefaultRender() && this.zt && (n = [], t ? t.layers && t.layers.forEach(t => {
844
844
  const e = ("plugin_" + t.type).trim();
845
- n.push(this.jt[t.layer][e].plugin);
846
- }) : Object.keys(this.jt).forEach(t => {
847
- for (let e = 0; e < this.jt[t].length; e++) n.push(this.jt[t][e].plugin);
845
+ n.push(this.zt[t.layer][e].plugin);
846
+ }) : Object.keys(this.zt).forEach(t => {
847
+ for (let e = 0; e < this.zt[t].length; e++) n.push(this.zt[t][e].plugin);
848
848
  }));
849
849
  const i = this.et(e);
850
850
  return i && i.length && (n = n.slice(), et(n, i)), n;
851
851
  }
852
- Tt() {
853
- if (this.layer.isDefaultRender() && this.jt) {
852
+ _t() {
853
+ if (this.layer.isDefaultRender() && this.zt) {
854
854
  const t = [];
855
- return Object.keys(this.jt).forEach(e => {
856
- for (let n = 0; n < this.jt[e].length; n++) t.push(this.jt[e][n].plugin);
855
+ return Object.keys(this.zt).forEach(e => {
856
+ for (let n = 0; n < this.zt[e].length; n++) t.push(this.zt[e][n].plugin);
857
857
  }), t;
858
858
  }
859
859
  const t = [];
@@ -867,11 +867,11 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
867
867
  et(t) {
868
868
  return tt(t) && (t = this.V), this.W[t] || At;
869
869
  }
870
- vt(t, e) {
871
- const n = !!this.Rt, i = this.layer.isDefaultRender() && this.jt, r = this.gt;
872
- this.Tt().forEach((o, s) => {
870
+ gt(t, e) {
871
+ const n = !!this.Dt, i = this.layer.isDefaultRender() && this.zt, r = this.yt;
872
+ this._t().forEach((o, s) => {
873
873
  if (!o || e && !e(o)) return;
874
- if (!this.St(s)) return;
874
+ if (!this.Tt(s)) return;
875
875
  const a = this.regl, l = this.gl, h = i ? o.defaultSymbol : o.style && o.style.symbol, c = {
876
876
  regl: a,
877
877
  layer: this.layer,
@@ -886,45 +886,45 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
886
886
  r && Y(c, r), o.startFrame(c);
887
887
  });
888
888
  }
889
- xt(t) {
890
- const e = this.gt, n = e.renderMode, i = e && e.renderTarget && e.renderTarget.fbo, r = this.getMap().cameraPosition, o = this.Tt(), s = !!this.Rt, a = !e.timestamp || e.isFinalRender;
891
- !this.layer.options.collision || this.ft && this.ft === t ? o.forEach(e => {
892
- if (!this.St(e) || !Ct(e)) return;
889
+ bt(t) {
890
+ const e = this.yt, n = e.renderMode, i = e && e.renderTarget && e.renderTarget.fbo, r = this.getMap().cameraPosition, o = this._t(), s = !!this.Dt, a = !e.timestamp || e.isFinalRender;
891
+ this.layer.options.collision && !e.isPostProcess ? o.forEach(e => {
892
+ if (!this.Tt(e) || !Ct(e)) return;
893
893
  if (n && "default" !== n && !e.supportRenderMode(n)) return;
894
894
  if (s && !Mt(e)) return;
895
- const i = this.Lt(e, 0, r, t);
896
- e.prepareRender(i);
895
+ const i = this.Rt(e, 0, r, t);
896
+ e.prepareRender(i), e.updateCollision(i);
897
897
  }) : o.forEach(e => {
898
- if (!this.St(e) || !Ct(e)) return;
898
+ if (!this.Tt(e) || !Ct(e)) return;
899
899
  if (n && "default" !== n && !e.supportRenderMode(n)) return;
900
900
  if (s && !Mt(e)) return;
901
- const i = this.Lt(e, 0, r, t);
902
- e.prepareRender(i), e.updateCollision(i), this.ft = t;
901
+ const i = this.Rt(e, 0, r, t);
902
+ e.prepareRender(i);
903
903
  });
904
904
  const l = this.ct !== e.timestamp;
905
905
  let h = !1;
906
906
  if (l && !s) {
907
- const e = -this.layer.getPolygonOffset(), n = this.Lt(null, e, r, t);
907
+ const e = -this.layer.getPolygonOffset(), n = this.Rt(null, e, r, t);
908
908
  n.offsetFactor = n.offsetUnits = e, this.B.paint(n);
909
909
  }
910
910
  o.forEach((e, o) => {
911
- if (!this.Nt(e)) return;
911
+ if (!this.Lt(e)) return;
912
912
  if (n && "default" !== n && !e.supportRenderMode(n)) return;
913
913
  if (s && !Mt(e)) return;
914
914
  this.regl.clear({
915
915
  stencil: 255,
916
916
  framebuffer: i
917
- }), this.isEnableTileStencil() && e.painter && !e.painter.needClearStencil() && this.Ht(i);
918
- const a = this.wt[o] || 0, l = this.Lt(e, a, r, t), c = e.endFrame(l);
917
+ }), this.isEnableTileStencil() && e.painter && !e.painter.needClearStencil() && this.Nt(i);
918
+ const a = this.xt[o] || 0, l = this.Rt(e, a, r, t), c = e.endFrame(l);
919
919
  c && c.redraw && this.setToRedraw(), h = !0;
920
- }), h && this.layer.fire("canvasisdirty"), a && this.Vt();
920
+ }), h && this.layer.fire("canvasisdirty"), a && this.Ht();
921
921
  }
922
922
  getPolygonOffsetCount() {
923
- return this.At || 0;
923
+ return this.wt || 0;
924
924
  }
925
- Vt() {
925
+ Ht() {
926
926
  if (this.layer.options.debug) {
927
- const t = this.gt, e = [], n = this.getMap().projViewMatrix;
927
+ const t = this.yt, e = [], n = this.getMap().projViewMatrix;
928
928
  for (const i in this.tilesInView) {
929
929
  const o = this.tilesInView[i].info, s = o.transform, a = this.tilesInView[i].image.extent, l = t && t.renderTarget;
930
930
  if (s && a) {
@@ -934,13 +934,13 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
934
934
  }
935
935
  }
936
936
  }
937
- Nt(t) {
937
+ Lt(t) {
938
938
  if (!t) return !0;
939
- const e = this.gt, n = this.St(t), i = e && e.states && e.states.includesChanged, r = this.Ut(t.painter.scene.getMeshes());
939
+ const e = this.yt, n = this.Tt(t), i = e && e.states && e.states.includesChanged, r = this.Vt(t.painter.scene.getMeshes());
940
940
  return !n || !i && !r ? 0 : r ? 2 : 1;
941
941
  }
942
- Lt(t, e, n, i) {
943
- const r = !!this.Rt, o = r && t && St(t), s = this.regl, a = this.gl, l = {
942
+ Rt(t, e, n, i) {
943
+ const r = !!this.Dt, o = r && t && St(t), s = this.regl, a = this.gl, l = {
944
944
  regl: s,
945
945
  layer: this.layer,
946
946
  gl: a,
@@ -951,43 +951,43 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
951
951
  polygonOffsetIndex: e,
952
952
  cameraPosition: n,
953
953
  timestamp: i
954
- }, h = this.gt;
954
+ }, h = this.yt;
955
955
  return h && Y(l, h), l;
956
956
  }
957
- Ut(t) {
957
+ Vt(t) {
958
958
  if (!t) return !1;
959
- const e = this.gt && this.gt.sceneFilter;
959
+ const e = this.yt && this.yt.sceneFilter;
960
960
  return e ? t.filter(t => e(t) || t.properties.hlBloomMesh && e(t.properties.hlBloomMesh)).length > 0 : t.length > 0;
961
961
  }
962
- Ht(t) {
962
+ Nt(t) {
963
963
  const e = this.isEnableTileStencil(), n = this.getCurrentTileZoom();
964
- let i = this.Gt;
965
- i || (i = this.Gt = new pt(this.regl, this.canvas, this.getMap())), i.start();
966
- const {tiles: r} = this.Wt;
967
- let {parentTiles: o, childTiles: s} = this.Wt, a = 1;
964
+ let i = this.Ut;
965
+ i || (i = this.Ut = new pt(this.regl, this.canvas, this.getMap())), i.start();
966
+ const {tiles: r} = this.Gt;
967
+ let {parentTiles: o, childTiles: s} = this.Gt, a = 1;
968
968
  s = s.sort(Ot);
969
- for (let t = 0; t < s.length; t++) this.qt(s[t].info, e ? a : this.getTileLevelValue(s[t].info.z, n)),
969
+ for (let t = 0; t < s.length; t++) this.Wt(s[t].info, e ? a : this.getTileLevelValue(s[t].info.z, n)),
970
970
  a++;
971
971
  o = o.sort(Ot);
972
- for (let t = 0; t < o.length; t++) this.qt(o[t].info, e ? a : this.getTileLevelValue(o[t].info.z, n)),
972
+ for (let t = 0; t < o.length; t++) this.Wt(o[t].info, e ? a : this.getTileLevelValue(o[t].info.z, n)),
973
973
  a++;
974
974
  const l = r.sort(Ot);
975
- for (let t = l.length - 1; t >= 0; t--) this.qt(l[t].info, e ? a : this.getTileLevelValue(l[t].info.z, n)),
975
+ for (let t = l.length - 1; t >= 0; t--) this.Wt(l[t].info, e ? a : this.getTileLevelValue(l[t].info.z, n)),
976
976
  a++;
977
977
  i.render(t);
978
978
  }
979
- qt(t, e) {
979
+ Wt(t, e) {
980
980
  const n = _t.set(t.extent2d.xmin, t.extent2d.ymax), i = t.transform = t.transform || this.calculateTileMatrix(n, t.z, t.extent);
981
- t.stencilRef = e, this.Gt.add(e, t.extent, i);
981
+ t.stencilRef = e, this.Ut.add(e, t.extent, i);
982
982
  }
983
983
  onDrawTileStart(t) {
984
984
  super.onDrawTileStart(t);
985
985
  const {tiles: e, childTiles: n, parentTiles: i} = t;
986
- this.Mt = {}, this.Pt = {};
987
- for (let t = 0; t < e.length; t++) this.Mt[e[t].info.id] = 1;
988
- for (let t = 0; t < n.length; t++) this.Pt[n[t].info.id] = 1;
989
- for (let t = 0; t < i.length; t++) this.Pt[i[t].info.id] = 1;
990
- this.Wt = t;
986
+ this.St = {}, this.Mt = {};
987
+ for (let t = 0; t < e.length; t++) this.St[e[t].info.id] = 1;
988
+ for (let t = 0; t < n.length; t++) this.Mt[n[t].info.id] = 1;
989
+ for (let t = 0; t < i.length; t++) this.Mt[i[t].info.id] = 1;
990
+ this.Gt = t;
991
991
  }
992
992
  isEnableTileStencil() {
993
993
  const t = this.it();
@@ -995,10 +995,10 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
995
995
  return !0;
996
996
  }
997
997
  setTerrainHelper(t) {
998
- this.Rt = t;
998
+ this.Dt = t;
999
999
  }
1000
1000
  getTerrainHelper() {
1001
- return this.Rt;
1001
+ return this.Dt;
1002
1002
  }
1003
1003
  drawTileOnTerrain(...t) {
1004
1004
  Pt.prototype.drawTile.call(this, ...t);
@@ -1011,7 +1011,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1011
1011
  width: n,
1012
1012
  height: i
1013
1013
  });
1014
- this.Bt || (this.Bt = t.renderbuffer({
1014
+ this.qt || (this.qt = t.renderbuffer({
1015
1015
  width: n,
1016
1016
  height: i,
1017
1017
  format: "depth24 stencil8"
@@ -1023,7 +1023,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1023
1023
  colorFormat: "rgba",
1024
1024
  ignoreStatusCheck: !0
1025
1025
  };
1026
- o.depthStencil = this.Bt;
1026
+ o.depthStencil = this.qt;
1027
1027
  const s = t.framebuffer(o);
1028
1028
  return s.colorTex = r, s;
1029
1029
  }
@@ -1031,36 +1031,36 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1031
1031
  t.destroy(), t.colorTex && (t.colorTex.destroy(), delete t.colorTex);
1032
1032
  }
1033
1033
  renderTerrainSkin(t, e, n) {
1034
- const i = this.ct, r = this.gt, o = this.layer.getTileSize().width;
1035
- this.vt(i);
1034
+ const i = this.ct, r = this.yt, o = this.layer.getTileSize().width;
1035
+ this.gt(i);
1036
1036
  for (let e = 0; e < n.length; e++) {
1037
1037
  const i = n[e].texture;
1038
- this.gt = {
1038
+ this.yt = {
1039
1039
  renderTarget: {
1040
1040
  fbo: i
1041
1041
  }
1042
- }, Tt.framebuffer = i, t.clear(Tt), this.gt.viewport = Et(o), this.Jt(n[e].tile, i);
1042
+ }, Tt.framebuffer = i, t.clear(Tt), this.yt.viewport = Et(o), this.Bt(n[e].tile, i);
1043
1043
  }
1044
- this.$t(n), this.gt = r;
1044
+ this.Jt(n), this.yt = r;
1045
1045
  }
1046
- Jt(t) {
1046
+ Bt(t) {
1047
1047
  const {info: e, image: n} = t;
1048
1048
  this.drawTile(e, n, St);
1049
1049
  }
1050
- $t(t) {
1051
- const e = this.Tt(), n = this.getMap().cameraPosition, i = this.ct || 0;
1050
+ Jt(t) {
1051
+ const e = this._t(), n = this.getMap().cameraPosition, i = this.ct || 0;
1052
1052
  this.layer.options.collision ? e.forEach(t => {
1053
- if (!this.St(t) || !Ct(t)) return;
1053
+ if (!this.Tt(t) || !Ct(t)) return;
1054
1054
  if (!St(t) || !this.layer.options.awareOfTerrain) return;
1055
- const e = this.Lt(t, 0, n, i);
1055
+ const e = this.Rt(t, 0, n, i);
1056
1056
  e.isRenderingTerrainSkin = !0, t.prepareRender(e), t.updateCollision(e);
1057
1057
  }) : e.forEach(t => {
1058
- if (!this.St(t) || !Ct(t)) return;
1058
+ if (!this.Tt(t) || !Ct(t)) return;
1059
1059
  if (!St(t) || !this.layer.options.awareOfTerrain) return;
1060
- const e = this.Lt(t, 0, n, i);
1060
+ const e = this.Rt(t, 0, n, i);
1061
1061
  e.isRenderingTerrainSkin = !0, t.prepareRender(e);
1062
1062
  }), e.forEach((e, n) => {
1063
- if (!this.Nt(e) || !St(e)) return;
1063
+ if (!this.Lt(e) || !St(e)) return;
1064
1064
  for (let e = 0; e < t.length; e++) {
1065
1065
  const n = t[e].texture;
1066
1066
  this.regl.clear({
@@ -1068,13 +1068,13 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1068
1068
  framebuffer: n
1069
1069
  });
1070
1070
  }
1071
- const i = this.wt[n] || 0, r = this.Lt(e, i, [ 0, 0, 0 ], this.ct);
1071
+ const i = this.xt[n] || 0, r = this.Rt(e, i, [ 0, 0, 0 ], this.ct);
1072
1072
  r.isRenderingTerrainSkin = !0, e.endFrame(r);
1073
1073
  });
1074
1074
  }
1075
1075
  drawTile(t, e, n) {
1076
1076
  if (!e.cache) return;
1077
- const i = !!this.Rt, r = e.cache, o = _t.set(t.extent2d.xmin, t.extent2d.ymax), s = t.transform = t.transform || this.calculateTileMatrix(o, t.z, t.extent), a = t.tileTranslationMatrix = t.tileTranslationMatrix || this.calculateTileTranslationMatrix(o, t.z), l = t.terrainTransform = t.terrainTransform || this.calculateTerrainTileMatrix(o, t.z, t.extent), h = this.gt, c = [];
1077
+ const i = !!this.Dt, r = e.cache, o = _t.set(t.extent2d.xmin, t.extent2d.ymax), s = t.transform = t.transform || this.calculateTileMatrix(o, t.z, t.extent), a = t.tileTranslationMatrix = t.tileTranslationMatrix || this.calculateTileTranslationMatrix(o, t.z), l = t.terrainTransform = t.terrainTransform || this.calculateTerrainTileMatrix(o, t.z, t.extent), h = this.yt, c = [];
1078
1078
  et(c, e.data), et(c, e.featureData);
1079
1079
  this.it(e).forEach((o, u) => {
1080
1080
  if (!o || n && !n(o)) return;
@@ -1092,10 +1092,10 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1092
1092
  tileVectorTransform: s,
1093
1093
  tileTranslationMatrix: a,
1094
1094
  tileExtent: e.extent,
1095
- timestamp: this.dt,
1095
+ timestamp: this.ft,
1096
1096
  tileInfo: t,
1097
1097
  tileZoom: this._tileZoom,
1098
- bloom: this.gt && this.gt.bloom,
1098
+ bloom: this.yt && this.yt.bloom,
1099
1099
  isRenderingTerrain: i,
1100
1100
  isRenderingTerrainSkin: f
1101
1101
  };
@@ -1103,13 +1103,13 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1103
1103
  const y = o.paintTile(m);
1104
1104
  !this.X && (y.retire || y.redraw) && o.supportRenderMode("taa") && (this.X = !0),
1105
1105
  y.redraw && this.setToRedraw();
1106
- }), e && e.style === this.V && this.Xt(t), this.setCanvasUpdated();
1106
+ }), e && e.style === this.V && this.$t(t), this.setCanvasUpdated();
1107
1107
  }
1108
- Yt(t, e) {
1109
- if (!e.loadTime || e.Ot) return;
1108
+ Xt(t, e) {
1109
+ if (!e.loadTime || e.It) return;
1110
1110
  let n = e.cache;
1111
1111
  n || (n = e.cache = {});
1112
- const i = !!this.Rt, r = _t.set(t.extent2d.xmin, t.extent2d.ymax), o = t.transform = t.transform || this.calculateTileMatrix(r, t.z, e.extent), s = t.tileTranslationMatrix = t.tileTranslationMatrix || this.calculateTileTranslationMatrix(r, t.z), a = t.terrainTransform = t.terrainTransform || this.calculateTerrainTileMatrix(r, t.z, t.extent), l = [];
1112
+ const i = !!this.Dt, r = _t.set(t.extent2d.xmin, t.extent2d.ymax), o = t.transform = t.transform || this.calculateTileMatrix(r, t.z, e.extent), s = t.tileTranslationMatrix = t.tileTranslationMatrix || this.calculateTileTranslationMatrix(r, t.z), a = t.terrainTransform = t.terrainTransform || this.calculateTerrainTileMatrix(r, t.z, t.extent), l = [];
1113
1113
  et(l, e.data), et(l, e.featureData);
1114
1114
  this.it(e).forEach((r, h) => {
1115
1115
  if (!r) return;
@@ -1130,7 +1130,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1130
1130
  isRenderingTerrainSkin: c,
1131
1131
  tileTranslationMatrix: s,
1132
1132
  tileExtent: e.extent,
1133
- timestamp: this.dt,
1133
+ timestamp: this.ft,
1134
1134
  tileInfo: t,
1135
1135
  tileZoom: this._tileZoom
1136
1136
  }, p = r.createTile(d);
@@ -1145,14 +1145,14 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1145
1145
  if (!this.layer.isVisible()) return i;
1146
1146
  return this.it().forEach(r => {
1147
1147
  if (!r) return;
1148
- if (!this.St(r)) return;
1148
+ if (!this.Tt(r)) return;
1149
1149
  const o = r.pick(t, e, n.tolerance);
1150
1150
  o && (o.type = r.getType(), i.push(o));
1151
1151
  }), i;
1152
1152
  }
1153
1153
  deleteTile(t) {
1154
1154
  if (t) {
1155
- if (t.image && !t.image.Ot) {
1155
+ if (t.image && !t.image.It) {
1156
1156
  const e = t.image && t.image.style, n = this.tt(e);
1157
1157
  n && n.forEach((e, n) => {
1158
1158
  e && e.deleteTile({
@@ -1182,15 +1182,15 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1182
1182
  })));
1183
1183
  }
1184
1184
  onRemove() {
1185
- this.Gt && this.Gt.remove(), this.q && (this.q.removeLayer(t => {
1185
+ this.Ut && this.Ut.remove(), this.q && (this.q.removeLayer(t => {
1186
1186
  if (t) throw t;
1187
1187
  }), this.q.remove(), delete this.q), this.pickingFBO && (this.canvas.pickingFBO || this.pickingFBO.destroy(),
1188
- delete this.pickingFBO), this.ot && (this.ot.delete(), delete this.ot), this.Bt && (this.Bt.destroy(),
1189
- delete this.Bt), this.B && (this.B.dispose(), delete this.B), super.onRemove && super.onRemove(),
1188
+ delete this.pickingFBO), this.ot && (this.ot.delete(), delete this.ot), this.qt && (this.qt.destroy(),
1189
+ delete this.qt), this.B && (this.B.dispose(), delete this.B), super.onRemove && super.onRemove(),
1190
1190
  this.K();
1191
1191
  }
1192
1192
  K() {
1193
- this.Tt().forEach(t => {
1193
+ this._t().forEach(t => {
1194
1194
  t.remove();
1195
1195
  }), this.plugins = {};
1196
1196
  }
@@ -1204,28 +1204,28 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1204
1204
  const n = t.renderPlugin;
1205
1205
  if (!n) return null;
1206
1206
  if (!n.type) throw new Error("invalid plugin type for style at " + e);
1207
- const i = this.Zt(n);
1207
+ const i = this.Yt(n);
1208
1208
  return i.styleCounter = this.V, i.style = t, i;
1209
1209
  }), i = [];
1210
1210
  e.forEach((t, e) => {
1211
1211
  const n = t.renderPlugin;
1212
1212
  if (!n) return null;
1213
1213
  if (!n.type) throw new Error("invalid plugin type for features at " + e);
1214
- const r = this.Zt(n);
1214
+ const r = this.Yt(n);
1215
1215
  return r.style = t, r.styleCounter = this.V, i.push(r), r;
1216
1216
  });
1217
1217
  const r = this.V;
1218
- if (this.G[r] = n, this.W[r] = i, this.layer.fire("pluginsinited"), this.Kt && this.Kt.size || this.layer.Kt) {
1219
- this.layer.Kt && this.layer.Qt();
1218
+ if (this.G[r] = n, this.W[r] = i, this.layer.fire("pluginsinited"), this.Zt && this.Zt.size || this.layer.Zt) {
1219
+ this.layer.Zt && this.layer.Kt();
1220
1220
  this.getMap().getRenderer().callInNextFrame(() => {
1221
1221
  this.it().forEach(t => {
1222
- t.highlight(this.Kt);
1222
+ t.highlight(this.Zt);
1223
1223
  });
1224
1224
  });
1225
1225
  }
1226
1226
  return n;
1227
1227
  }
1228
- Zt(t) {
1228
+ Yt(t) {
1229
1229
  const e = this.layer.constructor.getPlugins()[t.type];
1230
1230
  if (!e) throw new Error(`Plugin for (${t.type}) is not loaded.`);
1231
1231
  const n = new e;
@@ -1242,7 +1242,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1242
1242
  }
1243
1243
  return i;
1244
1244
  }
1245
- yt(t) {
1245
+ pt(t) {
1246
1246
  return rt(t, this.getMap());
1247
1247
  }
1248
1248
  debugFBO(t, e) {
@@ -1260,7 +1260,7 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1260
1260
  const c = new ImageData(i, r);
1261
1261
  c.data.set(s), o.putImageData(c, 0, 0);
1262
1262
  }
1263
- Dt(t) {
1263
+ jt(t) {
1264
1264
  let e;
1265
1265
  switch (t) {
1266
1266
  case "native-line":
@@ -1321,14 +1321,14 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1321
1321
  };
1322
1322
  }
1323
1323
  return null;
1324
- }(t), i = this.Zt(e);
1324
+ }(t), i = this.Yt(e);
1325
1325
  return i.defaultSymbol = n, {
1326
1326
  plugin: i,
1327
1327
  symbol: n,
1328
1328
  renderPlugin: e
1329
1329
  };
1330
1330
  }
1331
- St() {
1331
+ Tt() {
1332
1332
  return !0;
1333
1333
  }
1334
1334
  isEnableWorkAround(t) {
@@ -1342,21 +1342,21 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1342
1342
  }(this.gl));
1343
1343
  }
1344
1344
  getZScale() {
1345
- return this.pt;
1345
+ return this.dt;
1346
1346
  }
1347
1347
  outline(t, e) {
1348
- e && (Array.isArray(e) || (e = [ e ]), this.kt || (this.kt = []), this.kt.push([ "paintOutline", [ t, e ] ]),
1348
+ e && (Array.isArray(e) || (e = [ e ]), this.At || (this.At = []), this.At.push([ "paintOutline", [ t, e ] ]),
1349
1349
  this.setToRedraw());
1350
1350
  }
1351
1351
  outlineFeatures(t) {
1352
- t && (Array.isArray(t) || (t = [ t ]), this.kt || (this.kt = []), this.kt.push([ "paintOutline", [ null, t ] ]),
1352
+ t && (Array.isArray(t) || (t = [ t ]), this.At || (this.At = []), this.At.push([ "paintOutline", [ null, t ] ]),
1353
1353
  this.setToRedraw());
1354
1354
  }
1355
1355
  outlineBatch(t) {
1356
- this.kt || (this.kt = []), this.kt.push([ "paintBatchOutline", [ t ] ]), this.setToRedraw();
1356
+ this.At || (this.At = []), this.At.push([ "paintBatchOutline", [ t ] ]), this.setToRedraw();
1357
1357
  }
1358
1358
  outlineAll() {
1359
- this._t = !0, this.setToRedraw();
1359
+ this.kt = !0, this.setToRedraw();
1360
1360
  }
1361
1361
  paintOutlineAll(t) {
1362
1362
  const e = this.it();
@@ -1379,18 +1379,18 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1379
1379
  !n[e] || n[e].painter && !n[e].painter.isVisible() || n[e].outlineAll(t);
1380
1380
  }
1381
1381
  cancelOutline() {
1382
- delete this.kt, delete this._t, this.setToRedraw();
1382
+ delete this.At, delete this.kt, this.setToRedraw();
1383
1383
  }
1384
1384
  setZIndex() {
1385
1385
  return this.setToRedraw(), this.X = !0, super.setZIndex.apply(this, arguments);
1386
1386
  }
1387
1387
  consumeTile(t, e) {
1388
- t.Ot && this.Xt(e), super.consumeTile(t, e), this.Yt(e, t);
1388
+ t.It && this.$t(e), super.consumeTile(t, e), this.Xt(e, t);
1389
1389
  }
1390
1390
  onTileError(t, e) {
1391
- this.Xt(e), super.onTileError(t, e);
1391
+ this.$t(e), super.onTileError(t, e);
1392
1392
  }
1393
- Xt(t) {
1393
+ $t(t) {
1394
1394
  const {id: e} = t;
1395
1395
  if (this.Z && this.Z[e]) {
1396
1396
  const t = this.Z[e];
@@ -1398,22 +1398,22 @@ class Pt extends t.renderer.TileLayerCanvasRenderer {
1398
1398
  }
1399
1399
  }
1400
1400
  highlight(t) {
1401
- if (this.Kt || (this.Kt = new Map), Array.isArray(t)) for (let e = 0; e < t.length; e++) tt(t[e].name) && !tt(t[e].id) && (t[e] = Y({}, t[e]),
1402
- t[e].name = t[e].id), this.Kt.set(t[e].name, t[e]); else tt(t.name) && !tt(t.id) && ((t = Y({}, t)).name = t.id),
1403
- this.Kt.set(t.name, t);
1401
+ if (this.Zt || (this.Zt = new Map), Array.isArray(t)) for (let e = 0; e < t.length; e++) tt(t[e].name) && !tt(t[e].id) && (t[e] = Y({}, t[e]),
1402
+ t[e].name = t[e].id), this.Zt.set(t[e].name, t[e]); else tt(t.name) && !tt(t.id) && ((t = Y({}, t)).name = t.id),
1403
+ this.Zt.set(t.name, t);
1404
1404
  this.it().forEach(t => {
1405
- t.highlight(this.Kt);
1405
+ t.highlight(this.Zt);
1406
1406
  });
1407
1407
  }
1408
1408
  cancelHighlight(t) {
1409
- if (!this.Kt) return;
1410
- if (Array.isArray(t)) for (let e = 0; e < t.length; e++) this.Kt.delete(t[e]); else this.Kt.delete(t);
1409
+ if (!this.Zt) return;
1410
+ if (Array.isArray(t)) for (let e = 0; e < t.length; e++) this.Zt.delete(t[e]); else this.Zt.delete(t);
1411
1411
  this.it().forEach(t => {
1412
- t.highlight(this.Kt);
1412
+ t.highlight(this.Zt);
1413
1413
  });
1414
1414
  }
1415
1415
  cancelAllHighlight() {
1416
- delete this.Kt;
1416
+ delete this.Zt;
1417
1417
  this.it().forEach(t => {
1418
1418
  t.cancelAllHighlight();
1419
1419
  });
@@ -1472,7 +1472,7 @@ Pt.include({
1472
1472
  const t = new Array(3), e = new Array(3), n = new Array(3);
1473
1473
  return function(o, s, a) {
1474
1474
  const l = this.getTileGLScale(s), h = o, c = this.layer.getTileSize().width, u = r.identity([]);
1475
- return r.scale(u, u, i.set(t, l, l, this.pt)), r.translate(u, u, i.set(e, h.x, h.y, 0)),
1475
+ return r.scale(u, u, i.set(t, l, l, this.dt)), r.translate(u, u, i.set(e, h.x, h.y, 0)),
1476
1476
  r.scale(u, u, i.set(n, c / a, -c / a, 1)), u;
1477
1477
  };
1478
1478
  }(),
@@ -1513,7 +1513,7 @@ const jt = "function" == typeof fetch && "function" == typeof AbortController, D
1513
1513
  const i = new AbortController, r = e;
1514
1514
  return r.signal = i.signal, r.referrerPolicy = r.referrerPolicy || "origin", r.method = r.method || "GET",
1515
1515
  fetch(t, r).then(i => {
1516
- const r = this.te(i, e.returnJSON, e.responseType);
1516
+ const r = this.Qt(i, e.returnJSON, e.responseType);
1517
1517
  r.message ? (r.url = t, n(r)) : r.then(t => {
1518
1518
  "arraybuffer" === e.responseType ? n(null, {
1519
1519
  data: t,
@@ -1531,7 +1531,7 @@ const jt = "function" == typeof fetch && "function" == typeof AbortController, D
1531
1531
  }), i;
1532
1532
  }
1533
1533
  {
1534
- const r = Dt.ee(n);
1534
+ const r = Dt.te(n);
1535
1535
  if (r.open(e.method || "GET", t, !0), e) {
1536
1536
  for (const t in e.headers) r.setRequestHeader(t, e.headers[t]);
1537
1537
  r.withCredentials = "include" === e.credentials, e.responseType && (r.responseType = e.responseType);
@@ -1539,12 +1539,12 @@ const jt = "function" == typeof fetch && "function" == typeof AbortController, D
1539
1539
  return r.send(i ? e.body : null), r;
1540
1540
  }
1541
1541
  },
1542
- te: (t, e, n) => 200 !== t.status ? {
1542
+ Qt: (t, e, n) => 200 !== t.status ? {
1543
1543
  status: t.status,
1544
1544
  statusText: t.statusText,
1545
1545
  message: `incorrect http request with status code(${t.status}): ${t.statusText}`
1546
1546
  } : "arraybuffer" === n ? t.arrayBuffer() : e ? t.json() : t.text(),
1547
- ne: function(t, e) {
1547
+ ee: function(t, e) {
1548
1548
  return function() {
1549
1549
  if (4 === t.readyState) if (200 === t.status) if ("arraybuffer" === t.responseType) {
1550
1550
  0 === t.response.byteLength ? e({
@@ -1564,7 +1564,7 @@ const jt = "function" == typeof fetch && "function" == typeof AbortController, D
1564
1564
  });
1565
1565
  };
1566
1566
  },
1567
- ee: function(t) {
1567
+ te: function(t) {
1568
1568
  let e;
1569
1569
  try {
1570
1570
  e = new XMLHttpRequest;
@@ -1577,7 +1577,7 @@ const jt = "function" == typeof fetch && "function" == typeof AbortController, D
1577
1577
  } catch (t) {}
1578
1578
  }
1579
1579
  }
1580
- return e.onreadystatechange = Dt.ne(e, t), e;
1580
+ return e.onreadystatechange = Dt.ee(e, t), e;
1581
1581
  },
1582
1582
  getArrayBuffer(t, e, n) {
1583
1583
  if (Q(e)) {
@@ -1676,19 +1676,19 @@ class Vt extends t.TileLayer {
1676
1676
  n.style ? (r = n, r.$root || (r.$root = i)) : r = {
1677
1677
  $root: i,
1678
1678
  style: n
1679
- }, this.options.style = e, this.ie(r);
1679
+ }, this.options.style = e, this.ne(r);
1680
1680
  }), this;
1681
1681
  }
1682
- return this.options.style = t, this.ie(t), this;
1682
+ return this.options.style = t, this.ne(t), this;
1683
1683
  }
1684
- re(t, e, n, i) {
1684
+ ie(t, e, n, i) {
1685
1685
  const r = i / this.getTileSize().width;
1686
1686
  return t.set(n.x + e.x / r, n.y - e.y / r);
1687
1687
  }
1688
1688
  queryTilePointTerrain(t, e, n, i, r) {
1689
1689
  const o = this.getRenderer(), s = o && o.getTerrainHelper();
1690
1690
  if (!o || !s) return Nt[0] = null, Nt[1] = 0, Nt;
1691
- const a = this.re(Rt, t, n, i);
1691
+ const a = this.ie(Rt, t, n, i);
1692
1692
  return e && s.queryTileTerrainByPointAtRes ? s.queryTileTerrainByPointAtRes(a, r, e.id, e) : (Nt[0] = null,
1693
1693
  Nt[1] = 0, Nt);
1694
1694
  }
@@ -1696,11 +1696,11 @@ class Vt extends t.TileLayer {
1696
1696
  const e = this.getRenderer(), n = e && e.getTerrainHelper();
1697
1697
  return e && n ? n.getTerrainTiles(t) : null;
1698
1698
  }
1699
- ie(t) {
1700
- if (this.oe = null, t && t.$root) {
1699
+ ne(t) {
1700
+ if (this.re = null, t && t.$root) {
1701
1701
  let e = t.$root;
1702
- e && "/" === e[e.length - 1] && (e = e.substring(0, e.length - 1)), this.oe = e,
1703
- this.se = function(t) {
1702
+ e && "/" === e[e.length - 1] && (e = e.substring(0, e.length - 1)), this.re = e,
1703
+ this.oe = function(t) {
1704
1704
  return "{$root}" === t ? e : null;
1705
1705
  };
1706
1706
  }
@@ -1722,26 +1722,26 @@ class Vt extends t.TileLayer {
1722
1722
  featureStyle: s
1723
1723
  };
1724
1724
  return t.$root && (a.$root = t.$root), a;
1725
- }(t = JSON.parse(JSON.stringify(t))), this.ae = t.featureStyle || [], this.le = function(t) {
1725
+ }(t = JSON.parse(JSON.stringify(t))), this.se = t.featureStyle || [], this.ae = function(t) {
1726
1726
  if (!t || !Array.isArray(t)) return [];
1727
1727
  const e = [];
1728
1728
  for (let n = 0; n < t.length; n++) {
1729
1729
  const i = t[n].style;
1730
1730
  if (i && Array.isArray(i) && i.length) for (let r = 0; r < i.length; r++) {
1731
1731
  const o = Y({}, t[n], i[r]);
1732
- i[r].he = e.length, delete o.style, e.push(o);
1732
+ i[r].le = e.length, delete o.style, e.push(o);
1733
1733
  } else e.push(Y({}, t[n]));
1734
1734
  }
1735
1735
  return e;
1736
- }(t.featureStyle), this.ce = t.style || [];
1736
+ }(t.featureStyle), this.he = t.style || [];
1737
1737
  const e = t.background || {};
1738
- this.ue = {
1738
+ this.ce = {
1739
1739
  enable: e.enable || !1,
1740
1740
  color: Gt(e.color) || [ 0, 0, 0, 0 ],
1741
1741
  opacity: Wt(e.opacity, 1),
1742
1742
  patternFile: e.patternFile,
1743
1743
  depthRange: e.depthRange
1744
- }, this.validateStyle(), this.se && this.fe(), this.Ft();
1744
+ }, this.validateStyle(), this.oe && this.ue(), this.Ct();
1745
1745
  const n = this.getRenderer();
1746
1746
  n && n.setStyle(), this.fire("setstyle", {
1747
1747
  style: this.getStyle(),
@@ -1753,13 +1753,13 @@ class Vt extends t.TileLayer {
1753
1753
  return t ? t.getPolygonOffsetCount() : 0;
1754
1754
  }
1755
1755
  getPolygonOffset() {
1756
- return this.de || 0;
1756
+ return this.fe || 0;
1757
1757
  }
1758
1758
  setPolygonOffset(t, e) {
1759
- return this.de = t, this.pe = e, this;
1759
+ return this.fe = t, this.de = e, this;
1760
1760
  }
1761
1761
  getTotalPolygonOffset() {
1762
- return this.pe;
1762
+ return this.de;
1763
1763
  }
1764
1764
  outlineAll() {
1765
1765
  const t = this.getRenderer();
@@ -1782,13 +1782,13 @@ class Vt extends t.TileLayer {
1782
1782
  return t ? (t.cancelOutline(), this) : this;
1783
1783
  }
1784
1784
  highlight(t) {
1785
- this.me(t);
1785
+ this.pe(t);
1786
1786
  const e = this.getRenderer();
1787
- return e ? (e.highlight(t), this) : (this.Kt || (this.Kt = []), this.Kt.push(t),
1787
+ return e ? (e.highlight(t), this) : (this.Zt || (this.Zt = []), this.Zt.push(t),
1788
1788
  this);
1789
1789
  }
1790
- me(t) {
1791
- if (Array.isArray(t)) for (let e = 0; e < t.length; e++) this.me(t[e]); else {
1790
+ pe(t) {
1791
+ if (Array.isArray(t)) for (let e = 0; e < t.length; e++) this.pe(t[e]); else {
1792
1792
  if (t.filter) {
1793
1793
  if (!this.options.features) throw new Error("options.features must be turned on to support filter in highlight");
1794
1794
  if (!t.name) throw new Error("A name is required for highlight with filter");
@@ -1796,10 +1796,10 @@ class Vt extends t.TileLayer {
1796
1796
  if (tt(t.filter) && tt(t.id)) throw new Error("id or filter must be provided for highlight");
1797
1797
  }
1798
1798
  }
1799
- Qt() {
1800
- if (this.Kt) {
1801
- for (let t = 0; t < this.Kt.length; t++) this.highlight(this.Kt[t]);
1802
- delete this.Kt;
1799
+ Kt() {
1800
+ if (this.Zt) {
1801
+ for (let t = 0; t < this.Zt.length; t++) this.highlight(this.Zt[t]);
1802
+ delete this.Zt;
1803
1803
  }
1804
1804
  }
1805
1805
  cancelHighlight(t) {
@@ -1810,22 +1810,22 @@ class Vt extends t.TileLayer {
1810
1810
  const t = this.getRenderer();
1811
1811
  return t ? (t.cancelAllHighlight(), this) : this;
1812
1812
  }
1813
- fe() {
1814
- t.Util.convertStylePath(this.ce, this.se), t.Util.convertStylePath(this.le, this.se);
1813
+ ue() {
1814
+ t.Util.convertStylePath(this.he, this.oe), t.Util.convertStylePath(this.ae, this.oe);
1815
1815
  }
1816
1816
  updateSceneConfig(t, e) {
1817
- return Z(t) && (t = this.ye(t)), this.ge(0, t, e);
1817
+ return Z(t) && (t = this.me(t)), this.ye(0, t, e);
1818
1818
  }
1819
1819
  updateFeatureSceneConfig(t, e, n) {
1820
- return this.ge(1, t, n, e);
1820
+ return this.ye(1, t, n, e);
1821
1821
  }
1822
- ge(t, e, n, i) {
1822
+ ye(t, e, n, i) {
1823
1823
  const r = this.nt(t);
1824
1824
  if (!r) return this;
1825
1825
  let o, s = e;
1826
1826
  if (r[e].renderPlugin.sceneConfig || (r[e].renderPlugin.sceneConfig = {}), Y(r[e].renderPlugin.sceneConfig, n),
1827
1827
  void 0 !== i) {
1828
- qt(this.ae, e, i), s = this.ae[e].style[i].he;
1828
+ qt(this.se, e, i), s = this.se[e].style[i].le;
1829
1829
  const t = r[s].renderPlugin;
1830
1830
  t.sceneConfig || (t.sceneConfig = {}), o = t.sceneConfig;
1831
1831
  } else Bt(r, e), o = r[e].renderPlugin.sceneConfig;
@@ -1849,16 +1849,16 @@ class Vt extends t.TileLayer {
1849
1849
  }), this;
1850
1850
  }
1851
1851
  updateDataConfig(t, e) {
1852
- return Z(t) && (t = this.ye(t)), this.ve(0, t, e);
1852
+ return Z(t) && (t = this.me(t)), this.ge(0, t, e);
1853
1853
  }
1854
1854
  updateFeatureDataConfig(t, e, n) {
1855
- return this.ve(1, t, n, e);
1855
+ return this.ge(1, t, n, e);
1856
1856
  }
1857
- ve(t, e, n, i) {
1857
+ ge(t, e, n, i) {
1858
1858
  const r = this.nt(t);
1859
1859
  if (!r) return this;
1860
1860
  let o, s = e;
1861
- void 0 !== i ? (qt(this.ae, e, i), s = this.ae[e].style[i].he, o = r[s].renderPlugin.dataConfig) : (Bt(r, e),
1861
+ void 0 !== i ? (qt(this.se, e, i), s = this.se[e].style[i].le, o = r[s].renderPlugin.dataConfig) : (Bt(r, e),
1862
1862
  o = r[e].renderPlugin.dataConfig);
1863
1863
  const a = Y({}, o);
1864
1864
  if (Y(o, n), Array.isArray(this.options.style)) Y(this.options.style[e].renderPlugin.dataConfig, n); else {
@@ -1878,19 +1878,19 @@ class Vt extends t.TileLayer {
1878
1878
  }), this;
1879
1879
  }
1880
1880
  updateSymbol(t, e) {
1881
- return Z(t) && (t = this.ye(t)), this.be(0, t, e);
1881
+ return Z(t) && (t = this.me(t)), this.ve(0, t, e);
1882
1882
  }
1883
1883
  updateFeatureSymbol(t, e, n) {
1884
- return this.be(1, t, n, e);
1884
+ return this.ve(1, t, n, e);
1885
1885
  }
1886
- be(e, n, i, r) {
1886
+ ve(e, n, i, r) {
1887
1887
  const o = this.nt(e);
1888
1888
  if (!o) return this;
1889
1889
  let s = n;
1890
- void 0 !== r && (qt(this.ae, n, r), s = this.ae[n].style[r].he);
1890
+ void 0 !== r && (qt(this.se, n, r), s = this.se[n].style[r].le);
1891
1891
  const a = o[s];
1892
1892
  if (!a) throw new Error("No style defined at " + n);
1893
- const l = this, h = this.se;
1893
+ const l = this, h = this.oe;
1894
1894
  function c(i, o, s) {
1895
1895
  if (!i) return !1;
1896
1896
  h && (i = JSON.parse(JSON.stringify(i)), t.Util.parseSymbolPath(i, h));
@@ -1913,14 +1913,14 @@ class Vt extends t.TileLayer {
1913
1913
  void 0 === s ? u[n].symbol = f : u[n].symbol[s] = f), c;
1914
1914
  }
1915
1915
  const u = this.getRenderer();
1916
- if (!u) return c(), this.Ft(), this;
1916
+ if (!u) return c(), this.Ct(), this;
1917
1917
  let f = !1;
1918
1918
  const d = a.symbol;
1919
1919
  if (Array.isArray(i)) for (let t = 0; t < i.length; t++) {
1920
1920
  const e = c(i[t], d[t], t);
1921
1921
  e && (f = e);
1922
1922
  } else c(i, d);
1923
- return this.Ft(), f ? u.setStyle() : (f = u.updateSymbol(e, s, i), f && u.setStyle()),
1923
+ return this.Ct(), f ? u.setStyle() : (f = u.updateSymbol(e, s, i), f && u.setStyle()),
1924
1924
  0 === e ? this.fire("updatesymbol", {
1925
1925
  index: n,
1926
1926
  symbol: i
@@ -1934,15 +1934,15 @@ class Vt extends t.TileLayer {
1934
1934
  if (e) {
1935
1935
  return 0 === t ? e.style : e.featureStyle;
1936
1936
  }
1937
- return 0 === t ? this.ce : this.le;
1937
+ return 0 === t ? this.he : this.ae;
1938
1938
  }
1939
1939
  isDefaultRender() {
1940
- return !!this.xe && this.options.defaultRendering;
1940
+ return !!this.be && this.options.defaultRendering;
1941
1941
  }
1942
1942
  validateStyle() {
1943
- this.xe = !1;
1944
- let t = this.ce;
1945
- this.options.style || (this.xe = !0, t = this.ce = []), Array.isArray(t) || (t = this.ce = [ t ]);
1943
+ this.be = !1;
1944
+ let t = this.he;
1945
+ this.options.style || (this.be = !0, t = this.he = []), Array.isArray(t) || (t = this.he = [ t ]);
1946
1946
  for (let e = 0; e < t.length; e++) {
1947
1947
  let n = t[e].filter;
1948
1948
  if (n && n.value && (n = n.value), n || console.warn(`render plugin at ${e} doesn't define filter, its filter will be set to 'default' by default.`),
@@ -1952,14 +1952,14 @@ class Vt extends t.TileLayer {
1952
1952
  getStyle() {
1953
1953
  return this.options.style ? JSON.parse(JSON.stringify(this.options.style)) : null;
1954
1954
  }
1955
- ye(t) {
1956
- const e = this.ce;
1955
+ me(t) {
1956
+ const e = this.he;
1957
1957
  if (!e) return -1;
1958
1958
  for (let n = 0; n < e.length; n++) if (e[n].name === t) return n;
1959
1959
  throw new Error("No style defined with name: " + t);
1960
1960
  }
1961
1961
  getGroundConfig() {
1962
- this.we || (this.we = {
1962
+ this.xe || (this.xe = {
1963
1963
  enable: !0,
1964
1964
  renderPlugin: {
1965
1965
  type: "fill",
@@ -1971,18 +1971,18 @@ class Vt extends t.TileLayer {
1971
1971
  }
1972
1972
  });
1973
1973
  const t = this.$().background || {};
1974
- return this.we.enable = t.enable, this.we.symbol.polygonFill = t.color, this.we.symbol.polygonOpacity = t.opacity,
1975
- this.we.symbol.polygonPatternFile = t.patternFile, this.we.renderPlugin.sceneConfig.depthRange = t.depthRange,
1976
- this.we;
1974
+ return this.xe.enable = t.enable, this.xe.symbol.polygonFill = t.color, this.xe.symbol.polygonOpacity = t.opacity,
1975
+ this.xe.symbol.polygonPatternFile = t.patternFile, this.xe.renderPlugin.sceneConfig.depthRange = t.depthRange,
1976
+ this.xe;
1977
1977
  }
1978
1978
  getComputedStyle() {
1979
1979
  return JSON.parse(JSON.stringify(this.$()));
1980
1980
  }
1981
1981
  $() {
1982
1982
  return {
1983
- background: this.ue,
1984
- style: this.ce || [],
1985
- featureStyle: this.le || []
1983
+ background: this.ce,
1984
+ style: this.he || [],
1985
+ featureStyle: this.ae || []
1986
1986
  };
1987
1987
  }
1988
1988
  identify(e, n = {}) {
@@ -1995,9 +1995,9 @@ class Vt extends t.TileLayer {
1995
1995
  const n = this.getMap(), i = this.getRenderer();
1996
1996
  if (!n || !i) return [];
1997
1997
  const r = n.getDevicePixelRatio(), o = i.pick(t.x * r, t.y * r, e);
1998
- return this.options.features && "id" !== this.options.features ? this.Ae(o) : o;
1998
+ return this.options.features && "id" !== this.options.features ? this.we(o) : o;
1999
1999
  }
2000
- Ae(t) {
2000
+ we(t) {
2001
2001
  if (!this.getRenderer()) return t;
2002
2002
  const e = this._getTileConfig(), n = this.getSpatialReference();
2003
2003
  for (let i = 0; i < t.length; i++) {
@@ -2007,21 +2007,21 @@ class Vt extends t.TileLayer {
2007
2007
  if (f) {
2008
2008
  r.data = Y({}, r.data), r.data.feature = Y({}, r.data.feature);
2009
2009
  const t = r.data.feature.type;
2010
- r.data.feature.type = "Feature", r.data.feature.geometry = this.ke(t, f, u, h, c);
2010
+ r.data.feature.type = "Feature", r.data.feature.geometry = this.Ae(t, f, u, h, c);
2011
2011
  }
2012
2012
  }
2013
2013
  return t;
2014
2014
  }
2015
- ke(t, e, n, i, r) {
2015
+ Ae(t, e, n, i, r) {
2016
2016
  let o, s;
2017
- if (1 === t) e.length <= 1 ? (o = "Point", s = this._e(e, n, i, r)[0] || []) : (o = "MultiPoint",
2018
- s = this._e(e, n, i, r)); else if (2 === t) e.length <= 1 ? (o = "LineString", s = this._e(e, n, i, r)[0] || []) : (o = "MultiLineString",
2019
- s = this._e(e, n, i, r)); else if (3 === t) {
2017
+ if (1 === t) e.length <= 1 ? (o = "Point", s = this.ke(e, n, i, r)[0] || []) : (o = "MultiPoint",
2018
+ s = this.ke(e, n, i, r)); else if (2 === t) e.length <= 1 ? (o = "LineString", s = this.ke(e, n, i, r)[0] || []) : (o = "MultiLineString",
2019
+ s = this.ke(e, n, i, r)); else if (3 === t) {
2020
2020
  let t;
2021
2021
  s = [];
2022
2022
  let a = 0;
2023
2023
  for (let o = 0; o < e.length; o++) {
2024
- w.calculateSignedArea(e[o]) > 0 && (a++, t && t.length && s.push(t), t = []), t.push(this._e(e[o], n, i, r));
2024
+ w.calculateSignedArea(e[o]) > 0 && (a++, t && t.length && s.push(t), t = []), t.push(this.ke(e[o], n, i, r));
2025
2025
  }
2026
2026
  t.length && s.push(t), a <= 1 ? (o = "Polygon", s = s[0]) : o = "MultiPolygon";
2027
2027
  }
@@ -2030,14 +2030,14 @@ class Vt extends t.TileLayer {
2030
2030
  coordinates: s
2031
2031
  };
2032
2032
  }
2033
- _e(t, e, n, i) {
2033
+ ke(t, e, n, i) {
2034
2034
  const r = n / this.getTileSize().width, o = this.getMap(), s = [];
2035
- for (let a = 0; a < t.length; a++) Array.isArray(t[a]) ? s.push(this._e(t[a], e, n, i)) : (Rt.x = e.x + t[a].x / r,
2035
+ for (let a = 0; a < t.length; a++) Array.isArray(t[a]) ? s.push(this.ke(t[a], e, n, i)) : (Rt.x = e.x + t[a].x / r,
2036
2036
  Rt.y = e.y - t[a].y / r, o.pointAtResToCoord(Rt, i, Lt), s.push(Lt.toArray()));
2037
2037
  return s;
2038
2038
  }
2039
2039
  getDataSchema(t) {
2040
- return this.Te || (this.Te = {}), tt(t) || this.Te[t] || (this.Te[t] = {}), tt(t) ? this.Te : this.Te[t];
2040
+ return this._e || (this._e = {}), tt(t) || this._e[t] || (this._e[t] = {}), tt(t) ? this._e : this._e[t];
2041
2041
  }
2042
2042
  onRemove() {
2043
2043
  super.onRemove();
@@ -2045,7 +2045,7 @@ class Vt extends t.TileLayer {
2045
2045
  static fromJSON(t) {
2046
2046
  return t && "VectorTileLayer" === t.type ? new Vt(t.id, t.options) : null;
2047
2047
  }
2048
- Ft() {}
2048
+ Ct() {}
2049
2049
  static registerPlugin(t) {
2050
2050
  Vt.plugins || (Vt.plugins = {}), Vt.plugins[t.type] = t;
2051
2051
  }
@@ -2149,17 +2149,17 @@ class Yt extends Vt {
2149
2149
  }
2150
2150
  setData(t) {
2151
2151
  if (this.options.data = t, t && (Z(t) || t.url)) {
2152
- return !!this.getRenderer() && this.Se(), this;
2152
+ return !!this.getRenderer() && this.Te(), this;
2153
2153
  }
2154
- return this.Me(t), this.Se(), this;
2154
+ return this.Se(t), this.Te(), this;
2155
2155
  }
2156
- Me(t) {
2156
+ Se(t) {
2157
2157
  if (this.options.convertFn) {
2158
2158
  t = new Function("data", this.options.convertFn + "\nreturn convert(data)")(t);
2159
2159
  }
2160
- return this.features = t, this.Pe(), this;
2160
+ return this.features = t, this.Me(), this;
2161
2161
  }
2162
- Se() {
2162
+ Te() {
2163
2163
  const t = this.getRenderer();
2164
2164
  if (t) {
2165
2165
  const e = t.getWorkerConnection();
@@ -2172,19 +2172,19 @@ class Yt extends Vt {
2172
2172
  }
2173
2173
  }
2174
2174
  getExtent() {
2175
- return this.Ie;
2175
+ return this.Pe;
2176
2176
  }
2177
2177
  onWorkerReady(t, e) {
2178
2178
  t ? this.fire("dataerror", {
2179
2179
  error: t
2180
- }) : (e && (e.extent && this.Oe(e.extent), e.idMap && (this.Ce = e.idMap)), this.fire("dataload", {
2180
+ }) : (e && (e.extent && this.Ie(e.extent), e.idMap && (this.Oe = e.idMap)), this.fire("dataload", {
2181
2181
  extent: e && e.extent
2182
2182
  }));
2183
2183
  }
2184
- Oe(e) {
2185
- this.Ie = new t.Extent(...e);
2184
+ Ie(e) {
2185
+ this.Pe = new t.Extent(...e);
2186
2186
  }
2187
- Fe(t, e) {
2187
+ Ce(t, e) {
2188
2188
  Z(t) ? Dt.getJSON(t, e) : Dt.getJSON(t.url, t, e);
2189
2189
  }
2190
2190
  getData() {
@@ -2194,21 +2194,21 @@ class Yt extends Vt {
2194
2194
  return this.getId() + "," + t + "," + e + "," + n;
2195
2195
  }
2196
2196
  getFeature(t) {
2197
- return this.Ce[t];
2197
+ return this.Oe[t];
2198
2198
  }
2199
2199
  static fromJSON(t) {
2200
2200
  return t && "GeoJSONVectorTileLayer" === t.type ? new Yt(t.id, t.options) : null;
2201
2201
  }
2202
- Pe() {
2202
+ Me() {
2203
2203
  if (!this.features) return;
2204
2204
  if (this.features = JSON.parse(JSON.stringify(this.features)), !this.features) return;
2205
2205
  let t = 0;
2206
- this.Ce = {};
2206
+ this.Oe = {};
2207
2207
  const e = this.features;
2208
2208
  Array.isArray(e) ? e.forEach(e => {
2209
- e && (K(e.id) || (e.id = t++), this.Ce[e.id] = e);
2209
+ e && (K(e.id) || (e.id = t++), this.Oe[e.id] = e);
2210
2210
  }) : e.features && e.features.forEach(e => {
2211
- e && (K(e.id) || (e.id = t++), this.Ce[e.id] = e);
2211
+ e && (K(e.id) || (e.id = t++), this.Oe[e.id] = e);
2212
2212
  });
2213
2213
  }
2214
2214
  }
@@ -2250,13 +2250,13 @@ class te extends t.OverlayLayer {
2250
2250
  return 1;
2251
2251
  }
2252
2252
  getPolygonOffset() {
2253
- return this.de || 0;
2253
+ return this.fe || 0;
2254
2254
  }
2255
2255
  setPolygonOffset(t, e) {
2256
- return this.de = t, this.pe = e, this;
2256
+ return this.fe = t, this.de = e, this;
2257
2257
  }
2258
2258
  getTotalPolygonOffset() {
2259
- return this.pe;
2259
+ return this.de;
2260
2260
  }
2261
2261
  identify(e, n = {}) {
2262
2262
  const i = this.getMap(), r = this.getRenderer();
@@ -2748,18 +2748,18 @@ const de = [];
2748
2748
 
2749
2749
  class pe extends t.renderer.CanvasRenderer {
2750
2750
  constructor(...t) {
2751
- super(...t), this.features = {}, this.Ee = {}, this.D = 0, this.ze = {}, this.je = {},
2752
- this.De = {}, this.Re = {}, this.Le = {}, this.Ne = !0, this.He = {
2751
+ super(...t), this.features = {}, this.Fe = {}, this.D = 0, this.Ee = {}, this.ze = {},
2752
+ this.je = {}, this.De = {}, this.Re = {}, this.Le = !0, this.Ne = {
2753
2753
  id: 0,
2754
2754
  pickingId: 0
2755
- }, this.Ve = Y({}, ee, ne), this.Ue = {};
2755
+ }, this.He = Y({}, ee, ne), this.Ve = {};
2756
2756
  }
2757
2757
  hasNoAARendering() {
2758
2758
  return !0;
2759
2759
  }
2760
2760
  needToRedraw() {
2761
2761
  const t = super.needToRedraw();
2762
- return t || (this.painter && this.painter.needToRedraw() || this.Ge && this.Ge.needToRedraw() || this.We && this.We.needToRedraw());
2762
+ return t || (this.painter && this.painter.needToRedraw() || this.Ue && this.Ue.needToRedraw() || this.Ge && this.Ge.needToRedraw());
2763
2763
  }
2764
2764
  getAnalysisMeshes() {
2765
2765
  return de;
@@ -2768,44 +2768,44 @@ class pe extends t.renderer.CanvasRenderer {
2768
2768
  return null;
2769
2769
  }
2770
2770
  draw(t, e) {
2771
- this.dt = t;
2771
+ this.ft = t;
2772
2772
  const n = this.layer;
2773
- this.prepareCanvas(), this.pt = this.yt(this.getMap().getGLRes()), this.gt = e || {};
2774
- const i = this.gt.renderMode, r = this.qe();
2775
- if (this.vt(r, i), this.Ne) this.buildMesh(), this.Be(), this.Je(), this.Ue = {},
2776
- this.$e = !1, this.Ne = !1, this.Xe = !1; else if (this.$e) {
2777
- const t = this.atlas, e = this.Ye, n = this.Ze;
2778
- delete this.atlas, delete this.Ye, delete this.Ze, this.buildMesh(t), this.Be(e),
2779
- this.Je(n), this.$e = !1, this.Xe = !1;
2780
- } else if (this.Xe) {
2781
- const t = this.Ze;
2782
- delete this.Ze, this.Je(t), this.Xe = !1;
2783
- }
2784
- if (!this.meshes && !this.Ke && !this.Qe) return void this.completeRender();
2785
- this.tn && (this.en(), this.tn = !1), this.nn();
2773
+ this.prepareCanvas(), this.dt = this.pt(this.getMap().getGLRes()), this.yt = e || {};
2774
+ const i = this.yt.renderMode, r = this.We();
2775
+ if (this.gt(r, i), this.Le) this.buildMesh(), this.qe(), this.Be(), this.Ve = {},
2776
+ this.Je = !1, this.Le = !1, this.$e = !1; else if (this.Je) {
2777
+ const t = this.atlas, e = this.Xe, n = this.Ye;
2778
+ delete this.atlas, delete this.Xe, delete this.Ye, this.buildMesh(t), this.qe(e),
2779
+ this.Be(n), this.Je = !1, this.$e = !1;
2780
+ } else if (this.$e) {
2781
+ const t = this.Ye;
2782
+ delete this.Ye, this.Be(t), this.$e = !1;
2783
+ }
2784
+ if (!this.meshes && !this.Ze && !this.Ke) return void this.completeRender();
2785
+ this.Qe && (this.tn(), this.Qe = !1), this.en();
2786
2786
  const o = !i || "default" === i;
2787
2787
  let s = 0;
2788
- if (0 === this.layer.options.meshRenderOrder && this.in(r, s++, i), this.Qe && (o || this.We.supportRenderMode(i)) && (this.We.startFrame(r),
2789
- this.We.addMesh(this.Qe, null, {
2790
- bloom: this.gt.bloom
2791
- }), this.We.prepareRender(r), r.polygonOffsetIndex = s++, this.We.render(r)), 1 === this.layer.options.meshRenderOrder && this.in(r, s++, i),
2792
- this.Ke && (o || this.Ge.supportRenderMode(i))) {
2793
- const e = !this.gt.timestamp || this.gt.isFinalRender, i = !this.ft || this.ft !== t;
2788
+ if (0 === this.layer.options.meshRenderOrder && this.nn(r, s++, i), this.Ke && (o || this.Ge.supportRenderMode(i)) && (this.Ge.startFrame(r),
2789
+ this.Ge.addMesh(this.Ke, null, {
2790
+ bloom: this.yt.bloom
2791
+ }), this.Ge.prepareRender(r), r.polygonOffsetIndex = s++, this.Ge.render(r)), 1 === this.layer.options.meshRenderOrder && this.nn(r, s++, i),
2792
+ this.Ze && (o || this.Ue.supportRenderMode(i))) {
2793
+ const e = !this.yt.timestamp || this.yt.isFinalRender, i = !this.in || this.in !== t;
2794
2794
  n.options.collision && i && n.clearCollisionIndex();
2795
2795
  const o = this.layer.options.sceneConfig;
2796
- this.Ge.sceneConfig.collision = !o || (!!tt(o.collision) || o.collision), this.Ge.startFrame(r),
2797
- this.Ge.addMesh(this.Ke, null, {
2798
- bloom: this.gt.bloom
2799
- }), this.Ge.prepareRender(r), n.options.collision && i && (this.Ge.updateCollision(r),
2800
- e && (this.ft = t)), this.Ge.render(r);
2796
+ this.Ue.sceneConfig.collision = !o || (!!tt(o.collision) || o.collision), this.Ue.startFrame(r),
2797
+ this.Ue.addMesh(this.Ze, null, {
2798
+ bloom: this.yt.bloom
2799
+ }), this.Ue.prepareRender(r), n.options.collision && i && (this.Ue.updateCollision(r),
2800
+ e && (this.in = t)), this.Ue.render(r);
2801
2801
  }
2802
2802
  (o || e && e.isFinalRender) && (this.completeRender(), this.layer.fire("canvasisdirty"));
2803
2803
  }
2804
- vt(t, e) {
2804
+ gt(t, e) {
2805
2805
  const n = !e || "default" === e;
2806
2806
  this.painter && (n || this.painter.supportRenderMode(e)) && this.painter.startFrame(t);
2807
2807
  }
2808
- in(t, e, n) {
2808
+ nn(t, e, n) {
2809
2809
  const i = !n || "default" === n;
2810
2810
  this.painter && this.meshes && (i || this.painter.supportRenderMode(n)) && (this.painter.addMesh(this.meshes, null, {
2811
2811
  bloom: t && t.bloom
@@ -2817,7 +2817,7 @@ class pe extends t.renderer.CanvasRenderer {
2817
2817
  isForeground() {
2818
2818
  return !0;
2819
2819
  }
2820
- qe() {
2820
+ We() {
2821
2821
  const t = {
2822
2822
  regl: this.regl,
2823
2823
  layer: this.layer,
@@ -2828,13 +2828,13 @@ class pe extends t.renderer.CanvasRenderer {
2828
2828
  cameraPosition: this.getMap().cameraPosition,
2829
2829
  timestamp: this.getFrameTimestamp()
2830
2830
  };
2831
- return this.gt && Y(t, this.gt), t;
2831
+ return this.yt && Y(t, this.yt), t;
2832
2832
  }
2833
2833
  drawOnInteracting(t, e, n) {
2834
2834
  this.draw(e, n);
2835
2835
  }
2836
2836
  getFrameTimestamp() {
2837
- return this.dt;
2837
+ return this.ft;
2838
2838
  }
2839
2839
  sn(t, e) {
2840
2840
  (t = t || e) === e && (e = null);
@@ -2847,18 +2847,18 @@ class pe extends t.renderer.CanvasRenderer {
2847
2847
  const a = this.features[s];
2848
2848
  if (Array.isArray(a)) for (let r = 0; r < a.length; r++) {
2849
2849
  const o = a[r], s = o[ue];
2850
- (!t || t[s] || e && (!e || e[s])) && (o.visible || (this.tn = !0), this.an(o.geometry, i),
2850
+ (!t || t[s] || e && (!e || e[s])) && (o.visible || (this.Qe = !0), this.an(o.geometry, i),
2851
2851
  n.push(o));
2852
2852
  } else {
2853
- a.visible || (this.tn = !0);
2853
+ a.visible || (this.Qe = !0);
2854
2854
  const r = a[ue];
2855
2855
  if (t && !t[r] && (!e || e && !e[r])) continue;
2856
2856
  this.an(a.geometry, i), n.push(a);
2857
2857
  }
2858
2858
  }
2859
2859
  if (n.length || (this.meshes && this.painter && (this.painter.deleteMesh(this.meshes),
2860
- delete this.meshes), this.Ke && (this.Ge.deleteMesh(this.Ke), delete this.Ke), this.Qe && (this.We.deleteMesh(this.Qe),
2861
- delete this.Qe)), i[3] && (i[0] /= i[3], i[1] /= i[3]), isNaN(i[0]) || isNaN(i[1])) throw new Error("invalid geometry coordinates for " + this.layer.getJSONType());
2860
+ delete this.meshes), this.Ze && (this.Ue.deleteMesh(this.Ze), delete this.Ze), this.Ke && (this.Ge.deleteMesh(this.Ke),
2861
+ delete this.Ke)), i[3] && (i[0] /= i[3], i[1] /= i[3]), isNaN(i[0]) || isNaN(i[1])) throw new Error("invalid geometry coordinates for " + this.layer.getJSONType());
2862
2862
  return {
2863
2863
  features: n,
2864
2864
  center: i
@@ -2884,7 +2884,7 @@ class pe extends t.renderer.CanvasRenderer {
2884
2884
  const h = e.createGeometries([ t.data ], gt(s, null, 0, o, this.layer));
2885
2885
  for (let t = 0; t < h.length; t++) h[t] && this.hn(h[t].geometry);
2886
2886
  const c = r.identity([]);
2887
- r.translate(c, c, i.set([], l[0], l[1], 0)), r.scale(c, c, i.set([], 1, 1, this.pt));
2887
+ r.translate(c, c, i.set([], l[0], l[1], 0)), r.scale(c, c, i.set([], 1, 1, this.dt));
2888
2888
  const u = e.createMeshes(h, c, {
2889
2889
  tilePoint: [ l[0], l[1] ]
2890
2890
  });
@@ -2952,40 +2952,40 @@ class pe extends t.renderer.CanvasRenderer {
2952
2952
  });
2953
2953
  });
2954
2954
  }
2955
- Be(t) {
2956
- const e = Object.keys(this.De), n = Object.keys(this.Re);
2957
- if (!e.length && !n.length) return void (this.Ke && (this.Ge.deleteMesh(this.Ke),
2958
- delete this.Ke));
2959
- const {features: o, center: s} = this.sn(this.De, this.Re), a = [], l = [];
2955
+ qe(t) {
2956
+ const e = Object.keys(this.je), n = Object.keys(this.De);
2957
+ if (!e.length && !n.length) return void (this.Ze && (this.Ue.deleteMesh(this.Ze),
2958
+ delete this.Ze));
2959
+ const {features: o, center: s} = this.sn(this.je, this.De), a = [], l = [];
2960
2960
  for (let t = 0; t < o.length; t++) {
2961
2961
  const e = o[t][ue];
2962
- this.De[e] && a.push(o[t]), this.Re[e] && l.push(o[t]);
2962
+ this.je[e] && a.push(o[t]), this.De[e] && l.push(o[t]);
2963
2963
  }
2964
- if (!a.length && !l.length) return void (this.Ke && (this.Ge.deleteMesh(this.Ke),
2965
- delete this.Ke));
2966
- const h = this.tn;
2964
+ if (!a.length && !l.length) return void (this.Ze && (this.Ue.deleteMesh(this.Ze),
2965
+ delete this.Ze));
2966
+ const h = this.Qe;
2967
2967
  this.mn = s;
2968
2968
  const c = this.yn(a, l, t, s);
2969
- this.Ye = {};
2969
+ this.Xe = {};
2970
2970
  const u = [], f = [];
2971
2971
  this.gn = !0, Promise.all(c).then(t => {
2972
- if (this.Ke && (this.Ge.deleteMesh(this.Ke), delete this.Ke), !t || !t.length) return void this.setToRedraw();
2973
- const e = this.Ge.createGeometries(t.map(t => (t && t.data && (t.data.isIdUnique = !0),
2974
- t && t.data)), this.ze);
2972
+ if (this.Ze && (this.Ue.deleteMesh(this.Ze), delete this.Ze), !t || !t.length) return void this.setToRedraw();
2973
+ const e = this.Ue.createGeometries(t.map(t => (t && t.data && (t.data.isIdUnique = !0),
2974
+ t && t.data)), this.Ee);
2975
2975
  for (let n = 0; n < e.length; n++) this.hn(e[n].geometry, t[n] && t[n].data);
2976
2976
  const n = t[0] && t[0].data.iconAtlas, o = t[0] && t[0].data.glyphAtlas || t[1] && t[1].data.glyphAtlas;
2977
- n && (this.Ye.iconAtlas = n), o && (this.Ye.glyphAtlas = o);
2977
+ n && (this.Xe.iconAtlas = n), o && (this.Xe.glyphAtlas = o);
2978
2978
  const a = r.identity([]);
2979
- r.translate(a, a, i.set(f, s[0], s[1], 0)), r.scale(a, a, i.set(u, 1, 1, this.pt));
2980
- const l = this.Ge.createMeshes(e, a);
2979
+ r.translate(a, a, i.set(f, s[0], s[1], 0)), r.scale(a, a, i.set(u, 1, 1, this.dt));
2980
+ const l = this.Ue.createMeshes(e, a);
2981
2981
  for (let t = 0; t < l.length; t++) l[t].geometry.properties.originElements = l[t].geometry.properties.elements.slice(),
2982
2982
  l[t].properties.level = 0, l[t].material.set("flipY", 1), l[t].properties.meshKey = he++;
2983
- this.Ke = l, h && (this.tn = !0), this.gn = !1, this.setToRedraw(), this.layer.fire("buildmarkermesh");
2983
+ this.Ze = l, h && (this.Qe = !0), this.gn = !1, this.setToRedraw(), this.layer.fire("buildmarkermesh");
2984
2984
  });
2985
2985
  }
2986
- en() {
2987
- if (this.Ke && (this.vn(this.Ke[0], this.De), this.vn(this.Ke[1], this.Re)), this.Qe) for (let t = 0; t < this.Qe.length; t++) this.vn(this.Qe[t], this.Le);
2988
- if (this.meshes) for (let t = 0; t < this.meshes.length; t++) this.vn(this.meshes[t], this.ze);
2986
+ tn() {
2987
+ if (this.Ze && (this.vn(this.Ze[0], this.je), this.vn(this.Ze[1], this.De)), this.Ke) for (let t = 0; t < this.Ke.length; t++) this.vn(this.Ke[t], this.Re);
2988
+ if (this.meshes) for (let t = 0; t < this.meshes.length; t++) this.vn(this.meshes[t], this.Ee);
2989
2989
  }
2990
2990
  vn(t, e) {
2991
2991
  if (!t) return;
@@ -3011,14 +3011,14 @@ class pe extends t.renderer.CanvasRenderer {
3011
3011
  markerHeightType: Uint16Array
3012
3012
  }, o = Y({}, r);
3013
3013
  r.allowEmptyPack = 1;
3014
- return A.splitPointSymbol(this.Ve).map((n, i) => new A(0 === i ? t : e, n, 0 === i ? r : o).load());
3014
+ return A.splitPointSymbol(this.He).map((n, i) => new A(0 === i ? t : e, n, 0 === i ? r : o).load());
3015
3015
  }
3016
3016
  updateMesh() {}
3017
3017
  bn(t) {
3018
3018
  const e = t._getInternalSymbol(), n = {
3019
3019
  zoom: this.getMap().getZoom()
3020
3020
  }, i = this.xn(t);
3021
- if (!this.Ke) return !1;
3021
+ if (!this.Ze) return !1;
3022
3022
  let r = this.features[i];
3023
3023
  Array.isArray(r) || (r = [ r ]);
3024
3024
  const o = [], s = [], a = [], l = this.getMap().getZoom();
@@ -3028,14 +3028,14 @@ class pe extends t.renderer.CanvasRenderer {
3028
3028
  for (let t = 0; t < r.length; t++) {
3029
3029
  if (!r[t]) continue;
3030
3030
  const i = Array.isArray(e) ? e[t] : e, o = Array.isArray(h) ? h[t] : h, s = Array.isArray(c) ? c[t] : c, a = new _(r, i, o, s, n).getIconAndGlyph();
3031
- if (!this.Ye || !A.isAtlasLoaded(a, this.Ye)) return this.wn(), this.setToRedraw(),
3031
+ if (!this.Xe || !A.isAtlasLoaded(a, this.Xe)) return this.wn(), this.setToRedraw(),
3032
3032
  !1;
3033
3033
  }
3034
3034
  for (let t = 0; t < r.length; t++) {
3035
3035
  const e = r[t][ue];
3036
- this.De[e] && s.push(r[t]), this.Re[e] && a.push(r[t]);
3036
+ this.je[e] && s.push(r[t]), this.De[e] && a.push(r[t]);
3037
3037
  }
3038
- const u = r[0].id, f = this.yn(s, a, this.Ye, this.mn), d = this.Ke;
3038
+ const u = r[0].id, f = this.yn(s, a, this.Xe, this.mn), d = this.Ze;
3039
3039
  return Promise.all(f).then(t => {
3040
3040
  for (let e = 0; e < t.length; e++) {
3041
3041
  if (!t[e]) continue;
@@ -3054,7 +3054,7 @@ class pe extends t.renderer.CanvasRenderer {
3054
3054
  }), !0;
3055
3055
  }
3056
3056
  An(t) {
3057
- return this.kn(t, this.Qe, this.Ze, this._n, this.We, T, ie, this.Tn);
3057
+ return this.kn(t, this.Ke, this.Ye, this._n, this.Ge, T, ie, this.Tn);
3058
3058
  }
3059
3059
  kn(t, e, n, i, r, o, s, a) {
3060
3060
  if (!e) return !1;
@@ -3111,16 +3111,16 @@ class pe extends t.renderer.CanvasRenderer {
3111
3111
  this.layer.fire("updatemesh"), this.setToRedraw();
3112
3112
  }
3113
3113
  }
3114
- Je(t) {
3115
- if (!Object.keys(this.Le).length) return void (this.Qe && (this.We.deleteMesh(this.Qe),
3116
- delete this.Qe));
3117
- const {features: e, center: n} = this.sn(this.Le);
3114
+ Be(t) {
3115
+ if (!Object.keys(this.Re).length) return void (this.Ke && (this.Ge.deleteMesh(this.Ke),
3116
+ delete this.Ke));
3117
+ const {features: e, center: n} = this.sn(this.Re);
3118
3118
  if (!e.length) return;
3119
- const i = this.tn;
3119
+ const i = this.Qe;
3120
3120
  this._n = n;
3121
- const r = this.Tn(e), o = Y({}, ie), s = r.map((e, i) => this.createMesh(this.We, T, o, e, t && t[i], n));
3121
+ const r = this.Tn(e), o = Y({}, ie), s = r.map((e, i) => this.createMesh(this.Ge, T, o, e, t && t[i], n));
3122
3122
  this.Mn = !0, Promise.all(s).then(t => {
3123
- this.Qe && this.We.deleteMesh(this.Qe);
3123
+ this.Ke && this.Ge.deleteMesh(this.Ke);
3124
3124
  const e = [], n = [];
3125
3125
  for (let i = 0; i < t.length; i++) {
3126
3126
  const r = t[i] && t[i].meshes;
@@ -3132,7 +3132,7 @@ class pe extends t.renderer.CanvasRenderer {
3132
3132
  n[i] = t[i].atlas;
3133
3133
  }
3134
3134
  }
3135
- this.Qe = e, this.Ze = n, i && (this.tn = i), this.Mn = !1, this.setToRedraw(),
3135
+ this.Ke = e, this.Ye = n, i && (this.Qe = i), this.Mn = !1, this.setToRedraw(),
3136
3136
  this.layer.fire("buildlinemesh");
3137
3137
  });
3138
3138
  }
@@ -3145,10 +3145,10 @@ class pe extends t.renderer.CanvasRenderer {
3145
3145
  return [ i, r, o ];
3146
3146
  }
3147
3147
  Pn() {
3148
- this.$e = !0, this.setToRedraw();
3148
+ this.Je = !0, this.setToRedraw();
3149
3149
  }
3150
3150
  wn() {
3151
- this.Ne = !0, this.setToRedraw();
3151
+ this.Le = !0, this.setToRedraw();
3152
3152
  }
3153
3153
  In(t) {
3154
3154
  const e = this.layer.getId();
@@ -3166,29 +3166,29 @@ class pe extends t.renderer.CanvasRenderer {
3166
3166
  xn(t) {
3167
3167
  void 0 === t[oe] && (t[oe] = this.D++);
3168
3168
  const e = t[oe];
3169
- this.features[e] && this.On(e), this.features[e] = ae(t, this.He, this.features[e]);
3169
+ this.features[e] && this.On(e), this.features[e] = ae(t, this.Ne, this.features[e]);
3170
3170
  const n = this.features[e];
3171
- return this.Cn(n, e), this.Ee[e] = t, e;
3171
+ return this.Cn(n, e), this.Fe[e] = t, e;
3172
3172
  }
3173
3173
  Cn(t, e) {
3174
3174
  if (!t) return;
3175
3175
  const n = Array.isArray(t) ? t[0].id : t.id;
3176
- if (this.je[n] = t, Array.isArray(t)) for (let n = 0; n < t.length; n++) {
3176
+ if (this.ze[n] = t, Array.isArray(t)) for (let n = 0; n < t.length; n++) {
3177
3177
  const i = t[n][ue];
3178
- if (t[n][oe] = e, this.ze[i] = {
3178
+ if (t[n][oe] = e, this.Ee[i] = {
3179
3179
  feature: t[n]
3180
- }, this.ze[i][oe] = e, !this.needCheckPointLineSymbols()) continue;
3180
+ }, this.Ee[i][oe] = e, !this.needCheckPointLineSymbols()) continue;
3181
3181
  const r = {
3182
3182
  feature: t[n]
3183
3183
  };
3184
- ge(t[n]) && (this.De[i] = r), ve(t[n]) && (this.Re[i] = r), we(t[n]) && (this.Le[i] = r);
3184
+ ge(t[n]) && (this.je[i] = r), ve(t[n]) && (this.De[i] = r), we(t[n]) && (this.Re[i] = r);
3185
3185
  } else {
3186
3186
  t[oe] = e;
3187
3187
  const n = {
3188
3188
  feature: t
3189
3189
  }, i = t[ue];
3190
- if (this.ze[i] = n, !this.needCheckPointLineSymbols()) return;
3191
- ge(t) && (this.De[i] = n), ve(t) && (this.Re[i] = n), we(t) && (this.Le[i] = n);
3190
+ if (this.Ee[i] = n, !this.needCheckPointLineSymbols()) return;
3191
+ ge(t) && (this.je[i] = n), ve(t) && (this.De[i] = n), we(t) && (this.Re[i] = n);
3192
3192
  }
3193
3193
  }
3194
3194
  needCheckPointLineSymbols() {
@@ -3198,21 +3198,21 @@ class pe extends t.renderer.CanvasRenderer {
3198
3198
  const e = this.features[t];
3199
3199
  if (e) if (Array.isArray(e)) for (let t = 0; t < e.length; t++) {
3200
3200
  const n = e[t][ue], i = e[t].id;
3201
- delete this.je[i], delete this.ze[n], delete this.De[n], delete this.Re[n], delete this.Le[n];
3201
+ delete this.ze[i], delete this.Ee[n], delete this.je[n], delete this.De[n], delete this.Re[n];
3202
3202
  } else {
3203
3203
  const t = e[ue], n = e.id;
3204
- delete this.je[n], delete this.ze[t], delete this.De[t], delete this.Re[t], delete this.Le[t];
3204
+ delete this.ze[n], delete this.Ee[t], delete this.je[t], delete this.De[t], delete this.Re[t];
3205
3205
  }
3206
3206
  }
3207
3207
  pick(t, e, n) {
3208
3208
  const i = [];
3209
3209
  if (!this.layer.isVisible()) return i;
3210
- return [ this.painter, this.Ge, this.We ].forEach(r => {
3210
+ return [ this.painter, this.Ue, this.Ge ].forEach(r => {
3211
3211
  if (!r) return;
3212
3212
  const o = r.pick(t, e, n.tolerance);
3213
3213
  if (o && o.data && o.data.feature) {
3214
3214
  const t = o.data.feature;
3215
- i.push(this.Ee[t[oe]]);
3215
+ i.push(this.Fe[t[oe]]);
3216
3216
  }
3217
3217
  }), i;
3218
3218
  }
@@ -3220,15 +3220,15 @@ class pe extends t.renderer.CanvasRenderer {
3220
3220
  const e = t[oe], n = this.features[e];
3221
3221
  return Array.isArray(n) ? n[0][ue] : n[ue];
3222
3222
  }
3223
- nn() {
3223
+ en() {
3224
3224
  let t = !1;
3225
- for (const e in this.Ue) {
3226
- const n = this.Ue[e], i = this.Fn(n);
3227
- if (!this.gn && (this.De[i] || this.Re[i])) {
3225
+ for (const e in this.Ve) {
3226
+ const n = this.Ve[e], i = this.Fn(n);
3227
+ if (!this.gn && (this.je[i] || this.De[i])) {
3228
3228
  const e = this.bn(n);
3229
3229
  t = t || e;
3230
3230
  }
3231
- if (!this.Mn && this.Le[i]) {
3231
+ if (!this.Mn && this.Re[i]) {
3232
3232
  const e = this.An(n);
3233
3233
  t = t || e;
3234
3234
  }
@@ -3237,7 +3237,7 @@ class pe extends t.renderer.CanvasRenderer {
3237
3237
  t = t || e;
3238
3238
  }
3239
3239
  }
3240
- this.Ue = {}, t && (me(this), this.layer.fire("partialupdate"));
3240
+ this.Ve = {}, t && (me(this), this.layer.fire("partialupdate"));
3241
3241
  }
3242
3242
  zn(t) {
3243
3243
  this.xn(t), this.wn(), me(this);
@@ -3249,7 +3249,7 @@ class pe extends t.renderer.CanvasRenderer {
3249
3249
  if (t && t.length) {
3250
3250
  for (let e = 0; e < t.length; e++) {
3251
3251
  const n = t[e][oe];
3252
- void 0 !== n && (delete this.Ee[n], this.On(n), delete this.features[n]);
3252
+ void 0 !== n && (delete this.Fe[n], this.On(n), delete this.features[n]);
3253
3253
  }
3254
3254
  this.wn(), me(this);
3255
3255
  }
@@ -3283,7 +3283,7 @@ class pe extends t.renderer.CanvasRenderer {
3283
3283
  }
3284
3284
  onGeometryPositionChange(t) {
3285
3285
  const e = t.target._getParent() || t.target, n = e[oe];
3286
- this.In([ e ]), this.Ue[n] = e, me(this);
3286
+ this.In([ e ]), this.Ve[n] = e, me(this);
3287
3287
  }
3288
3288
  onGeometryZIndexChange() {
3289
3289
  this.wn();
@@ -3309,11 +3309,11 @@ class pe extends t.renderer.CanvasRenderer {
3309
3309
  }
3310
3310
  }
3311
3311
  Dn() {
3312
- this.tn = !0;
3312
+ this.Qe = !0;
3313
3313
  }
3314
3314
  onGeometryPropertiesChange(t) {
3315
3315
  const e = t.target, n = e[oe];
3316
- this.features[n] = ae(e, this.He), this.Cn(this.features[n], n), this.wn(), me(this);
3316
+ this.features[n] = ae(e, this.Ne), this.Cn(this.features[n], n), this.wn(), me(this);
3317
3317
  }
3318
3318
  createContext() {
3319
3319
  const t = this.canvas.gl && this.canvas.gl.wrap;
@@ -3325,13 +3325,13 @@ class pe extends t.renderer.CanvasRenderer {
3325
3325
  n.markerPerspectiveRatio = this.layer.options.markerPerspectiveRatio || 0, this.Rn(n, "markerBloom"),
3326
3326
  this.Rn(n, "textBloom");
3327
3327
  const i = Y({}, lt, this.layer.options.sceneConfig || {});
3328
- this.Ge = new e(this.regl, this.layer, n, i, 0), this.Ge.setTextShaderDefines({
3328
+ this.Ue = new e(this.regl, this.layer, n, i, 0), this.Ue.setTextShaderDefines({
3329
3329
  REVERSE_MAP_ROTATION_ON_PITCH: 1
3330
3330
  });
3331
3331
  const r = te.get3DPainterClass("line"), o = Y({}, ie);
3332
3332
  this.Rn(o, "lineBloom");
3333
3333
  const s = Y({}, this.layer.options.sceneConfig || {});
3334
- void 0 === s.depthMask && (s.depthMask = !0), this.We = new r(this.regl, this.layer, o, s, 0),
3334
+ void 0 === s.depthMask && (s.depthMask = !0), this.Ge = new r(this.regl, this.layer, o, s, 0),
3335
3335
  this.layer.getGeometries() && this.onGeometryAdd(this.layer.getGeometries());
3336
3336
  }
3337
3337
  Rn(t, e) {
@@ -3384,16 +3384,16 @@ class pe extends t.renderer.CanvasRenderer {
3384
3384
  this.painter && this.painter.resize(e.width, e.height));
3385
3385
  }
3386
3386
  onRemove() {
3387
- super.onRemove(), this.painter && this.painter.delete(), this.Ge && this.Ge.delete(),
3388
- this.We && this.We.delete();
3387
+ super.onRemove(), this.painter && this.painter.delete(), this.Ue && this.Ue.delete(),
3388
+ this.Ge && this.Ge.delete();
3389
3389
  }
3390
3390
  drawOutline(t) {
3391
- if (this._t && (this.painter && this.painter.outlineAll(t), this.Ge.outlineAll(t),
3392
- this.We.outlineAll(t)), this.Ln) for (let e = 0; e < this.Ln.length; e++) this.painter && this.painter.outline(t, this.Ln[e]),
3393
- this.Ge.outline(t, this.Ln[e]), this.We.outline(t, this.Ln[e]);
3391
+ if (this.kt && (this.painter && this.painter.outlineAll(t), this.Ue.outlineAll(t),
3392
+ this.Ge.outlineAll(t)), this.Ln) for (let e = 0; e < this.Ln.length; e++) this.painter && this.painter.outline(t, this.Ln[e]),
3393
+ this.Ue.outline(t, this.Ln[e]), this.Ge.outline(t, this.Ln[e]);
3394
3394
  }
3395
3395
  outlineAll() {
3396
- this._t = !0, this.setToRedraw();
3396
+ this.kt = !0, this.setToRedraw();
3397
3397
  }
3398
3398
  outline(t) {
3399
3399
  this.Ln || (this.Ln = []);
@@ -3408,12 +3408,12 @@ class pe extends t.renderer.CanvasRenderer {
3408
3408
  this.Ln.push(e), this.setToRedraw();
3409
3409
  }
3410
3410
  cancelOutline() {
3411
- delete this._t, delete this.Ln, this.setToRedraw();
3411
+ delete this.kt, delete this.Ln, this.setToRedraw();
3412
3412
  }
3413
3413
  isEnableWorkAround(t) {
3414
3414
  return "win-intel-gpu-crash" === t && (this.layer.options.workarounds["win-intel-gpu-crash"] && ye(this.gl));
3415
3415
  }
3416
- yt(t) {
3416
+ pt(t) {
3417
3417
  return rt(t, this.getMap());
3418
3418
  }
3419
3419
  }
@@ -3530,7 +3530,7 @@ Se.registerRenderer("gl", class extends pe {
3530
3530
  buildMesh() {
3531
3531
  let {features: t, center: e} = this.sn();
3532
3532
  if (t = t.filter(t => !!t.properties[Me]), !t.length) return;
3533
- const n = this.tn;
3533
+ const n = this.Qe;
3534
3534
  this.Nn = e;
3535
3535
  const i = Y({}, this.painterSymbol), r = this.createMesh(this.painter, T, i, t, null, e);
3536
3536
  this.En = !0, r.then(t => {
@@ -3540,7 +3540,7 @@ Se.registerRenderer("gl", class extends pe {
3540
3540
  e.push(...i);
3541
3541
  for (let t = 0; t < i.length; t++) i[t].feaGroupIndex = 0, i[t].geometry.properties.originElements = i[t].geometry.properties.elements.slice();
3542
3542
  }
3543
- this.meshes = e, n && (this.tn = n), this.En = !1, this.setToRedraw();
3543
+ this.meshes = e, n && (this.Qe = n), this.En = !1, this.setToRedraw();
3544
3544
  });
3545
3545
  }
3546
3546
  }), Se.registerRenderer("canvas", null);
@@ -3588,7 +3588,7 @@ class Oe extends pe {
3588
3588
  buildMesh(t) {
3589
3589
  const {features: e, center: n} = this.sn();
3590
3590
  if (!e.length) return;
3591
- const i = this.tn;
3591
+ const i = this.Qe;
3592
3592
  this.Nn = n;
3593
3593
  const r = this.Hn(e), o = Y({}, Ie), s = r.map((e, i) => this.createMesh(this.painter, P, o, e, t && t[i], n));
3594
3594
  this.En = !0, Promise.all(s).then(t => {
@@ -3603,7 +3603,7 @@ class Oe extends pe {
3603
3603
  n[i] = t[i].atlas;
3604
3604
  }
3605
3605
  }
3606
- this.meshes = e, this.atlas = n, i && (this.tn = i), this.En = !1, this.setToRedraw(),
3606
+ this.meshes = e, this.atlas = n, i && (this.Qe = i), this.En = !1, this.setToRedraw(),
3607
3607
  this.layer.fire("buildmesh");
3608
3608
  });
3609
3609
  }
@@ -3614,7 +3614,7 @@ class Oe extends pe {
3614
3614
  const n = this.painter.getRayCastData(t, e);
3615
3615
  if (!n || !n.feature) return null;
3616
3616
  const i = n.feature[oe];
3617
- return this.Ee[i];
3617
+ return this.Fe[i];
3618
3618
  }
3619
3619
  Hn(t) {
3620
3620
  const e = [], n = [];
@@ -4164,7 +4164,7 @@ $e.registerRenderer("gl", class extends Oe {
4164
4164
  }(this.layer.options.material);
4165
4165
  s && (o.uv = 1, 2 === s && (o.tangent = 1));
4166
4166
  if (!t.length) return Promise.resolve([]);
4167
- const a = qe(t, o, 1 / 0, r, 1, this.pt, e, i, void 0, Float32Array), l = a.data.data.aPosition;
4167
+ const a = qe(t, o, 1 / 0, r, 1, this.dt, e, i, void 0, Float32Array), l = a.data.data.aPosition;
4168
4168
  for (let t = 0; t < l.length; t += 3) l[t] -= n[0], l[t + 1] -= n[1];
4169
4169
  return a;
4170
4170
  }
@@ -5411,17 +5411,17 @@ class ti {
5411
5411
  return a || (a = o[s] = r ? y(t) : g(t)), a(n.getZoom(), i);
5412
5412
  }
5413
5413
  highlight(t) {
5414
- this.Kt = t, this.qi = this.layer.getRenderer().getFrameTimestamp(), this.setToRedraw(!0);
5414
+ this.Zt = t, this.qi = this.layer.getRenderer().getFrameTimestamp(), this.setToRedraw(!0);
5415
5415
  }
5416
5416
  cancelAllHighlight() {
5417
- this.Kt = null, this.qi = this.layer.getRenderer().getFrameTimestamp(), this.setToRedraw(!0);
5417
+ this.Zt = null, this.qi = this.layer.getRenderer().getFrameTimestamp(), this.setToRedraw(!0);
5418
5418
  }
5419
5419
  Bi(t, e) {
5420
5420
  const {featureIds: n, pickingIdIndiceMap: i} = e;
5421
5421
  t.properties.aFeaIds = n, t.properties.pickingIdIndiceMap = i;
5422
5422
  }
5423
5423
  Ti(t) {
5424
- const {pickingIdIndiceMap: e} = t.geometry.properties, n = this.Kt ? function(t, e, n) {
5424
+ const {pickingIdIndiceMap: e} = t.geometry.properties, n = this.Zt ? function(t, e, n) {
5425
5425
  const {aPickingId: i, feaIdPickingMap: r, features: o} = t.geometry.properties, s = new Map, a = n.keys();
5426
5426
  for (const t of a) {
5427
5427
  const a = n.get(t);
@@ -5441,7 +5441,7 @@ class ti {
5441
5441
  }
5442
5442
  }
5443
5443
  return s;
5444
- }(t, this.layer, this.Kt) : null;
5444
+ }(t, this.layer, this.Zt) : null;
5445
5445
  l.highlightMesh(this.regl, t, n, this.qi, e);
5446
5446
  }
5447
5447
  _i(t, e, n, i, r) {
@@ -10137,7 +10137,7 @@ const Fs = tn("water", gs);
10137
10137
  Fs.registerAt(Vt), te.registerPainter("lit", Jo), te.registerPainter("icon", Vr),
10138
10138
  te.registerPainter("fill", fi), te.registerPainter("line", yi), te.registerPainter("line-gradient", gi),
10139
10139
  te.registerPainter("water", gs), te.registerPainter("tube", Yo), n.ShaderLib.register("vt_position_vert", "#ifdef HAS_TERRAIN_ALTITUDE\n attribute float aTerrainAltitude;\n#endif\n#ifdef HAS_ALTITUDE\n vec3 unpackVTPosition() {\n float altitude = aAltitude;\n #ifdef HAS_TERRAIN_ALTITUDE\n altitude += aTerrainAltitude * 100.0;\n #endif\n return vec3(aPosition, altitude);\n }\n#else\n float position_modValue = 16384.0;\n float position_delta = 0.00001;\n vec3 unpackVTPosition() {\n float z = aPosition.z;\n vec2 pos = sign(aPosition.xy + position_delta) * mod(abs(aPosition.xy), position_modValue);\n vec2 highs = floor(abs(aPosition.xy) / position_modValue);\n float altitude = sign(z + position_delta) * (highs.x * 2.0 + highs.y) * pow(2.0, 15.0) + z;\n #ifdef HAS_TERRAIN_ALTITUDE\n altitude += aTerrainAltitude * 100.0;\n #endif\n return vec3(pos, altitude);\n }\n#endif"),
10140
- Vt.VERSION = "0.82.1", te.VERSION = "0.82.1";
10140
+ Vt.VERSION = "0.82.2", te.VERSION = "0.82.2";
10141
10141
 
10142
10142
  if (e.mat4.create(), e.transcoders) {
10143
10143
  const n = t.Map.VERSION;
@@ -10151,4 +10151,4 @@ if (e.mat4.create(), e.transcoders) {
10151
10151
 
10152
10152
  export { $e as ExtrudePolygonLayer, fi as FillPainter, bs as FillPlugin, Is as GLTFPhongPlugin, Os as GLTFStandardPlugin, Yt as GeoJSONVectorTileLayer, Cs as HeatmapPlugin, Vr as IconPainter, As as IconPlugin, ws as LineGradientPlugin, yi as LinePainter, xs as LinePlugin, Se as LineStringLayer, Ms as LitPlugin, $t as MapboxVectorTileLayer, zo as NativeLinePainter, _s as NativeLinePlugin, Co as NativePointPainter, Go as PhongPainter, Ts as PhongPlugin, Te as PointLayer, Pe as PolygonLayer, So as TextPainter, ks as TextPlugin, Ps as TubePlugin, te as Vector3DLayer, Vt as VectorTileLayer, Pt as VectorTileLayerRenderer, Fs as WaterPlugin, qo as WireframePainter, Ss as WireframePlugin };
10153
10153
 
10154
- "undefined" != typeof console && console.log("@maptalks/vt v0.82.1");
10154
+ "undefined" != typeof console && console.log("@maptalks/vt v0.82.2");