@xingm/vmap-cesium-toolbar 0.0.1-alpha.10 → 0.0.1-alpha.11

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/dist/index.js CHANGED
@@ -72,7 +72,7 @@ class v {
72
72
  * 根据场景模式更新偏移高度
73
73
  */
74
74
  updateOffsetHeight() {
75
- this.scene.mode === n.SceneMode.SCENE3D ? this.offsetHeight = 0 : this.offsetHeight = 0;
75
+ this.scene.mode === n.SceneMode.SCENE3D ? this.offsetHeight = 1 : this.offsetHeight = 0;
76
76
  }
77
77
  /**
78
78
  * 开始绘制线条
@@ -180,7 +180,8 @@ class v {
180
180
  outlineWidth: 3,
181
181
  // 不再贴地抬高,统一使用 NONE,与线/面高度一致
182
182
  heightReference: n.HeightReference.NONE,
183
- scaleByDistance: new n.NearFarScalar(150, 1, 15e6, 0.5)
183
+ scaleByDistance: new n.NearFarScalar(150, 1, 15e6, 0.5),
184
+ disableDepthTestDistance: Number.POSITIVE_INFINITY
184
185
  }
185
186
  });
186
187
  this.tempEntities.push(s), this.updateDrawingEntity();