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.
package/dist/atlas.js CHANGED
@@ -52221,7 +52221,7 @@ uniform ${precision} ${type} u_${name};
52221
52221
  return UserAgent;
52222
52222
  }());
52223
52223
 
52224
- var version$3 = "3.6.0";
52224
+ var version$3 = "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.
@@ -63253,9 +63253,7 @@ uniform ${precision} ${type} u_${name};
63253
63253
  zoomInButton.setAttribute("alt", "Zoom In");
63254
63254
  zoomInButton.setAttribute("type", "button");
63255
63255
  zoomInButton.addEventListener("click", function () {
63256
- var _a;
63257
63256
  map.setCamera({
63258
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63259
63257
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
63260
63258
  duration: ZoomControl.ZOOM_DURATION_MS,
63261
63259
  type: "ease",
@@ -63272,9 +63270,7 @@ uniform ${precision} ${type} u_${name};
63272
63270
  zoomOutButton.setAttribute("alt", "Zoom Out");
63273
63271
  zoomOutButton.setAttribute("type", "button");
63274
63272
  zoomOutButton.addEventListener("click", function () {
63275
- var _a;
63276
63273
  map.setCamera({
63277
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63278
63274
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
63279
63275
  duration: ZoomControl.ZOOM_DURATION_MS,
63280
63276
  type: "ease",
@@ -115998,6 +115994,7 @@ uniform ${precision} ${type} u_${name};
115998
115994
  * Returns the camera's current properties.
115999
115995
  */
116000
115996
  Map.prototype.getCamera = function () {
115997
+ var _a;
116001
115998
  var southWest = this.map.getBounds().getSouthWest().toArray();
116002
115999
  var northEast = this.map.getBounds().getNorthEast().toArray();
116003
116000
  var cameraOptions = {
@@ -116007,7 +116004,8 @@ uniform ${precision} ${type} u_${name};
116007
116004
  pitch: this.map.getPitch(),
116008
116005
  bounds: new BoundingBox(southWest, northEast),
116009
116006
  minZoom: this.map.getMinZoom(),
116010
- maxZoom: this.map.getMaxZoom()
116007
+ maxZoom: this.map.getMaxZoom(),
116008
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
116011
116009
  };
116012
116010
  return cameraOptions;
116013
116011
  };