@aibee/crc-bmap 0.0.102 → 0.0.104

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
@@ -1367,7 +1367,7 @@ var Poi = class extends EventDispatcher2 {
1367
1367
  this.position.set(options.position?.x || 0, options.position?.y || 0, options.position?.z || 0);
1368
1368
  this.overlay = new Overlay(this.context, { autoUpdate: false });
1369
1369
  this.overlay.addEventListener("update-position", ({ x, y, height }) => {
1370
- this.overlay.div.style.transform = `translate3d(calc(${x}px - 50%), calc(${-height + y}px - ${this.options.icon ? "100%" : "50%"}), 0)`;
1370
+ this.overlay.div.style.transform = `translate3d(calc(${x}px - 50%), calc(${-height + y}px - ${this.options.icon && this.options.icon_position !== "center" ? "100%" : "50%"}), 0)`;
1371
1371
  });
1372
1372
  this.overlay.bindElement(this);
1373
1373
  this.registryEvent();
@@ -3811,6 +3811,7 @@ var BMap = class extends EventDispatcher7 {
3811
3811
  this.context.control.maxZoom = Infinity;
3812
3812
  this.context.camera.zoom = 1;
3813
3813
  this.context.setAzimuthalAngle(this.config.control.defaultAzimuthal, 0);
3814
+ this.context.setPolarAngle(this.config.control.defaultPolar, 0);
3814
3815
  this.context.fitCameraToGround(void 0, 0);
3815
3816
  this.basicZoom = this.context.camera.zoom;
3816
3817
  this.context.control.minZoom = this.basicZoom;
@@ -3952,7 +3953,10 @@ var BMap = class extends EventDispatcher7 {
3952
3953
  this.config.control.defaultAzimuthal,
3953
3954
  time
3954
3955
  );
3955
- await this.changeMapType(this.type, time);
3956
+ await this.context.setPolarAngle(
3957
+ this.config.control.defaultPolar,
3958
+ time
3959
+ );
3956
3960
  await this.context.fitCameraToGround(
3957
3961
  this.config.defaultPadding,
3958
3962
  time,