@aibee/crc-bmap 0.0.82 → 0.0.84

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
@@ -1518,6 +1518,10 @@ var Floor = class extends Object3D8 {
1518
1518
  this.add(this.groundUpper);
1519
1519
  this.add(this.models);
1520
1520
  }
1521
+ getPosition() {
1522
+ const box = new Box35().setFromObject(this.groundUpper);
1523
+ return box.getCenter(new Vector38());
1524
+ }
1521
1525
  createGround(options) {
1522
1526
  const ground = new Graphic(this.context, options);
1523
1527
  this.addGrounds([ground]);
@@ -3182,7 +3186,7 @@ var BMap = class extends EventDispatcher7 {
3182
3186
  this.context.control.maxZoom = this.basicZoom * 25;
3183
3187
  this.context.control.addEventListener("change", this.onControlChange);
3184
3188
  if (this.type === "3d") {
3185
- this.context.fitCameraToGround([80, 20, 80, 20], 0, false);
3189
+ this.context.fitCameraToGround([20, 20, 20, 20], 0, false);
3186
3190
  }
3187
3191
  this.onControlChange();
3188
3192
  this.context.cameraBound.setEnable(true);