azure-maps-control 3.6.0 → 3.7.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
@@ -52073,6 +52073,10 @@ var LocalizedStrings = /** @class */ (function () {
52073
52073
  * A localized version of `"Detour"`.
52074
52074
  */
52075
52075
  this.Detour = "Detour";
52076
+ /**
52077
+ * A localized version of `"Dummy"`.
52078
+ */
52079
+ this.Dummy = "Dummy";
52076
52080
  }
52077
52081
  return LocalizedStrings;
52078
52082
  }());
@@ -52215,7 +52219,7 @@ var UserAgent = /** @class */ (function () {
52215
52219
  return UserAgent;
52216
52220
  }());
52217
52221
 
52218
- var version$3 = "3.6.0";
52222
+ var version$3 = "3.7.1";
52219
52223
 
52220
52224
  /**
52221
52225
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -63247,9 +63251,7 @@ var ZoomControl = /** @class */ (function (_super) {
63247
63251
  zoomInButton.setAttribute("alt", "Zoom In");
63248
63252
  zoomInButton.setAttribute("type", "button");
63249
63253
  zoomInButton.addEventListener("click", function () {
63250
- var _a;
63251
63254
  map.setCamera({
63252
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63253
63255
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
63254
63256
  duration: ZoomControl.ZOOM_DURATION_MS,
63255
63257
  type: "ease",
@@ -63266,9 +63268,7 @@ var ZoomControl = /** @class */ (function (_super) {
63266
63268
  zoomOutButton.setAttribute("alt", "Zoom Out");
63267
63269
  zoomOutButton.setAttribute("type", "button");
63268
63270
  zoomOutButton.addEventListener("click", function () {
63269
- var _a;
63270
63271
  map.setCamera({
63271
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63272
63272
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
63273
63273
  duration: ZoomControl.ZOOM_DURATION_MS,
63274
63274
  type: "ease",
@@ -113444,7 +113444,6 @@ var CameraOptions = /** @class */ (function (_super) {
113444
113444
  _this.pitch = 0;
113445
113445
  /**
113446
113446
  * The minimum zoom level that the map can be zoomed out to during the animation. Must be between 0 and 24, and less than or equal to `maxZoom`.
113447
- * Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
113448
113447
  * Default `1`.
113449
113448
  * @default 1
113450
113449
  */
@@ -115772,9 +115771,7 @@ var Map$1 = /** @class */ (function (_super) {
115772
115771
  _this.events.invoke("error", errorData);
115773
115772
  });
115774
115773
  // --> Set initial camera state of map
115775
- _this.setCamera(__assign(__assign({
115776
- // Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
115777
- minZoom: 1 }, options), { type: "jump", duration: 0 }));
115774
+ _this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
115778
115775
  // Add delegates to map
115779
115776
  {
115780
115777
  _this.incidentDelegate = new IncidentServiceDelegate(_this);
@@ -115939,9 +115936,6 @@ var Map$1 = /** @class */ (function (_super) {
115939
115936
  pitch: cameraOptions.pitch,
115940
115937
  around: undefined
115941
115938
  };
115942
- if (cameraOptions.minZoom < 1) {
115943
- console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
115944
- }
115945
115939
  this.map.setMinZoom(cameraOptions.minZoom);
115946
115940
  this.map.setMaxZoom(cameraOptions.maxZoom);
115947
115941
  if (cameraOptions.minPitch) {
@@ -115992,6 +115986,7 @@ var Map$1 = /** @class */ (function (_super) {
115992
115986
  * Returns the camera's current properties.
115993
115987
  */
115994
115988
  Map.prototype.getCamera = function () {
115989
+ var _a;
115995
115990
  var southWest = this.map.getBounds().getSouthWest().toArray();
115996
115991
  var northEast = this.map.getBounds().getNorthEast().toArray();
115997
115992
  var cameraOptions = {
@@ -116001,7 +115996,8 @@ var Map$1 = /** @class */ (function (_super) {
116001
115996
  pitch: this.map.getPitch(),
116002
115997
  bounds: new BoundingBox(southWest, northEast),
116003
115998
  minZoom: this.map.getMinZoom(),
116004
- maxZoom: this.map.getMaxZoom()
115999
+ maxZoom: this.map.getMaxZoom(),
116000
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
116005
116001
  };
116006
116002
  return cameraOptions;
116007
116003
  };