@aibee/crc-bmap 0.0.102 → 0.0.103

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();