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-esm.js CHANGED
@@ -52215,7 +52215,7 @@ var UserAgent = /** @class */ (function () {
52215
52215
  return UserAgent;
52216
52216
  }());
52217
52217
 
52218
- var version$3 = "3.6.0";
52218
+ var version$3 = "3.6.1";
52219
52219
 
52220
52220
  /**
52221
52221
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -63247,9 +63247,7 @@ var ZoomControl = /** @class */ (function (_super) {
63247
63247
  zoomInButton.setAttribute("alt", "Zoom In");
63248
63248
  zoomInButton.setAttribute("type", "button");
63249
63249
  zoomInButton.addEventListener("click", function () {
63250
- var _a;
63251
63250
  map.setCamera({
63252
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63253
63251
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
63254
63252
  duration: ZoomControl.ZOOM_DURATION_MS,
63255
63253
  type: "ease",
@@ -63266,9 +63264,7 @@ var ZoomControl = /** @class */ (function (_super) {
63266
63264
  zoomOutButton.setAttribute("alt", "Zoom Out");
63267
63265
  zoomOutButton.setAttribute("type", "button");
63268
63266
  zoomOutButton.addEventListener("click", function () {
63269
- var _a;
63270
63267
  map.setCamera({
63271
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63272
63268
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
63273
63269
  duration: ZoomControl.ZOOM_DURATION_MS,
63274
63270
  type: "ease",
@@ -115992,6 +115988,7 @@ var Map$1 = /** @class */ (function (_super) {
115992
115988
  * Returns the camera's current properties.
115993
115989
  */
115994
115990
  Map.prototype.getCamera = function () {
115991
+ var _a;
115995
115992
  var southWest = this.map.getBounds().getSouthWest().toArray();
115996
115993
  var northEast = this.map.getBounds().getNorthEast().toArray();
115997
115994
  var cameraOptions = {
@@ -116001,7 +115998,8 @@ var Map$1 = /** @class */ (function (_super) {
116001
115998
  pitch: this.map.getPitch(),
116002
115999
  bounds: new BoundingBox(southWest, northEast),
116003
116000
  minZoom: this.map.getMinZoom(),
116004
- maxZoom: this.map.getMaxZoom()
116001
+ maxZoom: this.map.getMaxZoom(),
116002
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
116005
116003
  };
116006
116004
  return cameraOptions;
116007
116005
  };