@aibee/crc-bmap 0.0.108 → 0.0.109

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
@@ -2791,7 +2791,6 @@ var HoverHelper = class extends EventDispatcher5 {
2791
2791
  }
2792
2792
  };
2793
2793
  onPointerLevel = () => {
2794
- console.log("level");
2795
2794
  this.curGraphics.clear();
2796
2795
  this.handleHoverGraphicsChange();
2797
2796
  };
@@ -3231,7 +3230,6 @@ var Context = class extends EventDispatcher6 {
3231
3230
  this.dispatchEvent({ type: "pointer-move", e, graphics, pois, position });
3232
3231
  };
3233
3232
  onPointerleave = (e) => {
3234
- console.log(e.type);
3235
3233
  this.dispatchEvent({ type: "pointer-level" });
3236
3234
  };
3237
3235
  onSelectionSelect = ({ graphics, isMultipleSelect }) => {
@@ -3847,13 +3845,14 @@ var BMap = class extends EventDispatcher7 {
3847
3845
  this.context.setAzimuthalAngle(this.config.control.defaultAzimuthal, 0);
3848
3846
  this.context.setPolarAngle(this.config.control.defaultPolar, 0);
3849
3847
  this.context.fitCameraToGround(void 0, 0);
3850
- this.basicZoom = this.context.camera.zoom;
3851
- this.context.control.minZoom = this.basicZoom;
3852
- this.context.control.maxZoom = this.basicZoom * 25;
3853
- this.context.control.addEventListener("change", this.onControlChange);
3848
+ const basicZoom = this.context.camera.zoom;
3849
+ this.context.control.minZoom = basicZoom;
3850
+ this.context.control.maxZoom = basicZoom * 25;
3854
3851
  if (this.type === "3d") {
3855
3852
  this.context.fitCameraToGround(this.config.defaultPadding, 0, false);
3856
3853
  }
3854
+ this.basicZoom = this.context.camera.zoom;
3855
+ this.context.control.addEventListener("change", this.onControlChange);
3857
3856
  this.onControlChange();
3858
3857
  this.context.cameraBound.setEnable(true);
3859
3858
  }
@@ -4198,11 +4197,11 @@ var BMap = class extends EventDispatcher7 {
4198
4197
  this.context.control.maxZoom = Infinity;
4199
4198
  this.context.camera.zoom = 1;
4200
4199
  this.context.setAzimuthalAngle(0, 0);
4201
- const basicZoom = this.context.getFitCameraToGroundZoom(void 0, 0);
4202
- this.basicZoom = basicZoom || 0;
4203
- this.context.control.minZoom = this.basicZoom;
4204
- this.context.control.maxZoom = this.basicZoom * 25;
4200
+ const basicZoom = this.context.getFitCameraToGroundZoom(void 0, 0) || 1;
4205
4201
  this.context.camera.zoom = zoom;
4202
+ this.context.control.minZoom = basicZoom;
4203
+ this.context.control.maxZoom = basicZoom * 25;
4204
+ this.basicZoom = zoom;
4206
4205
  this.context.control.addEventListener("change", this.onControlChange);
4207
4206
  this.context.setAzimuthalAngle(azimuthal, 0);
4208
4207
  this.context.cameraBound.setEnable(true);
@@ -5415,7 +5414,7 @@ var Navigation = class extends Plugin {
5415
5414
  } else {
5416
5415
  this.path = new Path2(this, this.options.path);
5417
5416
  this.path.create(cPath);
5418
- this.path.position.z = this.bmap.context.currentFloor.groundMaxHeight + 0.1;
5417
+ this.path.position.z = this.bmap.context.currentFloor.groundMaxHeight + 1;
5419
5418
  this.bmap.context.scene.add(this.path);
5420
5419
  }
5421
5420
  if (this.startPoi) {