@aibee/crc-bmap 0.0.50 → 0.0.51

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
@@ -2987,6 +2987,22 @@ var BMap = class extends EventDispatcher7 {
2987
2987
  removeSelectGraphic(graphic) {
2988
2988
  this.context.selection.remove(graphic);
2989
2989
  }
2990
+ resize() {
2991
+ this.context.onWindowResize();
2992
+ const azimuthal = this.context.control.getAzimuthalAngle();
2993
+ const zoom = this.context.camera.zoom;
2994
+ this.context.control.minZoom = 0;
2995
+ this.context.control.maxZoom = Infinity;
2996
+ this.context.camera.zoom = 1;
2997
+ this.context.setAzimuthalAngle(0, 0);
2998
+ this.context.fitCameraToGround(void 0, 0);
2999
+ this.basicZoom = this.context.camera.zoom;
3000
+ this.context.control.minZoom = this.basicZoom;
3001
+ this.context.control.maxZoom = this.basicZoom * 25;
3002
+ this.context.camera.zoom = zoom;
3003
+ this.context.control.addEventListener("change", this.onControlChange);
3004
+ this.context.setAzimuthalAngle(azimuthal, 0);
3005
+ }
2990
3006
  dispose() {
2991
3007
  this.context.dispose();
2992
3008
  this.floorDataMap.clear();