@aibee/crc-bmap 0.0.85 → 0.0.86

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/lib/bmap.esm.js CHANGED
@@ -2819,7 +2819,7 @@ var Context = class extends EventDispatcher6 {
2819
2819
  const xScale = (width - right - left) / size.x;
2820
2820
  const yScale = (height - top - bottom) / size.y;
2821
2821
  const scale = Math.min(xScale, yScale);
2822
- const center2 = new Vector312((max.x + min.x) / 2, (max.y + min.y) / 2, max.z);
2822
+ const center2 = new Vector312((max.x + min.x) / 2, (max.y + min.y) / 2, 0);
2823
2823
  return { zoom: scale * this.camera.zoom, center: center2 };
2824
2824
  }
2825
2825
  /**
@@ -3306,9 +3306,9 @@ var BMap = class extends EventDispatcher7 {
3306
3306
  resetView(duration = 300) {
3307
3307
  return __async(this, null, function* () {
3308
3308
  const time = duration / 3;
3309
- yield this.context.setAzimuthalAngle(0, time);
3309
+ yield this.context.setAzimuthalAngle(this.config.control.defaultAzimuthal, time);
3310
3310
  yield this.changeMapType(this.type, time);
3311
- yield this.context.fitCameraToGround(void 0, time);
3311
+ yield this.context.fitCameraToGround(this.config.defaultPadding, time, false);
3312
3312
  });
3313
3313
  }
3314
3314
  /**