@aibee/crc-bmap 0.0.27 → 0.0.29

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
@@ -989,10 +989,10 @@ var PoiLayer = class extends Layer {
989
989
  this.context.removeEventListener("update", this.onUpdate);
990
990
  }
991
991
  dispose() {
992
- super.dispose();
993
- this.unRegistryEvent();
994
992
  this.pois.forEach((item) => item.dispose());
995
993
  this.pois.length = 0;
994
+ super.dispose();
995
+ this.unRegistryEvent();
996
996
  }
997
997
  };
998
998
 
@@ -1609,6 +1609,12 @@ var BoxSelection = class extends BaseSvg {
1609
1609
  setEnable(enable) {
1610
1610
  super.setEnable(enable);
1611
1611
  setRectPosition(this.rect, 0, 0, 0, 0);
1612
+ if (enable) {
1613
+ this.registryEvent();
1614
+ } else {
1615
+ this.startPoint = void 0;
1616
+ this.unRegistryEvent();
1617
+ }
1612
1618
  }
1613
1619
  registryEvent() {
1614
1620
  this.context.container.addEventListener("pointerdown", this.onPointerDown);