azure-maps-control 3.6.0 → 3.6.1

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.
@@ -52221,7 +52221,7 @@ uniform ${precision} ${type} u_${name};
52221
52221
  return UserAgent;
52222
52222
  }());
52223
52223
 
52224
- var version = "3.6.0";
52224
+ var version = "3.6.1";
52225
52225
 
52226
52226
  /**
52227
52227
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -63244,9 +63244,7 @@ uniform ${precision} ${type} u_${name};
63244
63244
  zoomInButton.setAttribute("alt", "Zoom In");
63245
63245
  zoomInButton.setAttribute("type", "button");
63246
63246
  zoomInButton.addEventListener("click", function () {
63247
- var _a;
63248
63247
  map.setCamera({
63249
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63250
63248
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
63251
63249
  duration: ZoomControl.ZOOM_DURATION_MS,
63252
63250
  type: "ease",
@@ -63263,9 +63261,7 @@ uniform ${precision} ${type} u_${name};
63263
63261
  zoomOutButton.setAttribute("alt", "Zoom Out");
63264
63262
  zoomOutButton.setAttribute("type", "button");
63265
63263
  zoomOutButton.addEventListener("click", function () {
63266
- var _a;
63267
63264
  map.setCamera({
63268
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63269
63265
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
63270
63266
  duration: ZoomControl.ZOOM_DURATION_MS,
63271
63267
  type: "ease",
@@ -74763,6 +74759,7 @@ uniform ${precision} ${type} u_${name};
74763
74759
  * Returns the camera's current properties.
74764
74760
  */
74765
74761
  Map.prototype.getCamera = function () {
74762
+ var _a;
74766
74763
  var southWest = this.map.getBounds().getSouthWest().toArray();
74767
74764
  var northEast = this.map.getBounds().getNorthEast().toArray();
74768
74765
  var cameraOptions = {
@@ -74772,7 +74769,8 @@ uniform ${precision} ${type} u_${name};
74772
74769
  pitch: this.map.getPitch(),
74773
74770
  bounds: new BoundingBox(southWest, northEast),
74774
74771
  minZoom: this.map.getMinZoom(),
74775
- maxZoom: this.map.getMaxZoom()
74772
+ maxZoom: this.map.getMaxZoom(),
74773
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
74776
74774
  };
74777
74775
  return cameraOptions;
74778
74776
  };
@@ -52221,7 +52221,7 @@ uniform ${precision} ${type} u_${name};
52221
52221
  return UserAgent;
52222
52222
  }());
52223
52223
 
52224
- var version$2 = "3.6.0";
52224
+ var version$2 = "3.6.1";
52225
52225
 
52226
52226
  /**
52227
52227
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -63244,9 +63244,7 @@ uniform ${precision} ${type} u_${name};
63244
63244
  zoomInButton.setAttribute("alt", "Zoom In");
63245
63245
  zoomInButton.setAttribute("type", "button");
63246
63246
  zoomInButton.addEventListener("click", function () {
63247
- var _a;
63248
63247
  map.setCamera({
63249
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63250
63248
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
63251
63249
  duration: ZoomControl.ZOOM_DURATION_MS,
63252
63250
  type: "ease",
@@ -63263,9 +63261,7 @@ uniform ${precision} ${type} u_${name};
63263
63261
  zoomOutButton.setAttribute("alt", "Zoom Out");
63264
63262
  zoomOutButton.setAttribute("type", "button");
63265
63263
  zoomOutButton.addEventListener("click", function () {
63266
- var _a;
63267
63264
  map.setCamera({
63268
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63269
63265
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
63270
63266
  duration: ZoomControl.ZOOM_DURATION_MS,
63271
63267
  type: "ease",
@@ -98430,6 +98426,7 @@ uniform ${precision} ${type} u_${name};
98430
98426
  * Returns the camera's current properties.
98431
98427
  */
98432
98428
  Map.prototype.getCamera = function () {
98429
+ var _a;
98433
98430
  var southWest = this.map.getBounds().getSouthWest().toArray();
98434
98431
  var northEast = this.map.getBounds().getNorthEast().toArray();
98435
98432
  var cameraOptions = {
@@ -98439,7 +98436,8 @@ uniform ${precision} ${type} u_${name};
98439
98436
  pitch: this.map.getPitch(),
98440
98437
  bounds: new BoundingBox(southWest, northEast),
98441
98438
  minZoom: this.map.getMinZoom(),
98442
- maxZoom: this.map.getMaxZoom()
98439
+ maxZoom: this.map.getMaxZoom(),
98440
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
98443
98441
  };
98444
98442
  return cameraOptions;
98445
98443
  };