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.
@@ -890,7 +890,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
890
890
  return UserAgent;
891
891
  }());
892
892
 
893
- var version = "3.6.0";
893
+ var version = "3.6.1";
894
894
 
895
895
  /**
896
896
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -11913,9 +11913,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11913
11913
  zoomInButton.setAttribute("alt", "Zoom In");
11914
11914
  zoomInButton.setAttribute("type", "button");
11915
11915
  zoomInButton.addEventListener("click", function () {
11916
- var _a;
11917
11916
  map.setCamera({
11918
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11919
11917
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
11920
11918
  duration: ZoomControl.ZOOM_DURATION_MS,
11921
11919
  type: "ease",
@@ -11932,9 +11930,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11932
11930
  zoomOutButton.setAttribute("alt", "Zoom Out");
11933
11931
  zoomOutButton.setAttribute("type", "button");
11934
11932
  zoomOutButton.addEventListener("click", function () {
11935
- var _a;
11936
11933
  map.setCamera({
11937
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11938
11934
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
11939
11935
  duration: ZoomControl.ZOOM_DURATION_MS,
11940
11936
  type: "ease",
@@ -23432,6 +23428,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23432
23428
  * Returns the camera's current properties.
23433
23429
  */
23434
23430
  Map.prototype.getCamera = function () {
23431
+ var _a;
23435
23432
  var southWest = this.map.getBounds().getSouthWest().toArray();
23436
23433
  var northEast = this.map.getBounds().getNorthEast().toArray();
23437
23434
  var cameraOptions = {
@@ -23441,7 +23438,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23441
23438
  pitch: this.map.getPitch(),
23442
23439
  bounds: new BoundingBox(southWest, northEast),
23443
23440
  minZoom: this.map.getMinZoom(),
23444
- maxZoom: this.map.getMaxZoom()
23441
+ maxZoom: this.map.getMaxZoom(),
23442
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
23445
23443
  };
23446
23444
  return cameraOptions;
23447
23445
  };
@@ -890,7 +890,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
890
890
  return UserAgent;
891
891
  }());
892
892
 
893
- var version$2 = "3.6.0";
893
+ var version$2 = "3.6.1";
894
894
 
895
895
  /**
896
896
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -11913,9 +11913,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11913
11913
  zoomInButton.setAttribute("alt", "Zoom In");
11914
11914
  zoomInButton.setAttribute("type", "button");
11915
11915
  zoomInButton.addEventListener("click", function () {
11916
- var _a;
11917
11916
  map.setCamera({
11918
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11919
11917
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
11920
11918
  duration: ZoomControl.ZOOM_DURATION_MS,
11921
11919
  type: "ease",
@@ -11932,9 +11930,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11932
11930
  zoomOutButton.setAttribute("alt", "Zoom Out");
11933
11931
  zoomOutButton.setAttribute("type", "button");
11934
11932
  zoomOutButton.addEventListener("click", function () {
11935
- var _a;
11936
11933
  map.setCamera({
11937
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11938
11934
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
11939
11935
  duration: ZoomControl.ZOOM_DURATION_MS,
11940
11936
  type: "ease",
@@ -47099,6 +47095,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47099
47095
  * Returns the camera's current properties.
47100
47096
  */
47101
47097
  Map.prototype.getCamera = function () {
47098
+ var _a;
47102
47099
  var southWest = this.map.getBounds().getSouthWest().toArray();
47103
47100
  var northEast = this.map.getBounds().getNorthEast().toArray();
47104
47101
  var cameraOptions = {
@@ -47108,7 +47105,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47108
47105
  pitch: this.map.getPitch(),
47109
47106
  bounds: new BoundingBox(southWest, northEast),
47110
47107
  minZoom: this.map.getMinZoom(),
47111
- maxZoom: this.map.getMaxZoom()
47108
+ maxZoom: this.map.getMaxZoom(),
47109
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
47112
47110
  };
47113
47111
  return cameraOptions;
47114
47112
  };