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.js CHANGED
@@ -52079,6 +52079,10 @@ uniform ${precision} ${type} u_${name};
52079
52079
  * A localized version of `"Detour"`.
52080
52080
  */
52081
52081
  this.Detour = "Detour";
52082
+ /**
52083
+ * A localized version of `"Dummy"`.
52084
+ */
52085
+ this.Dummy = "Dummy";
52082
52086
  }
52083
52087
  return LocalizedStrings;
52084
52088
  }());
@@ -52221,7 +52225,7 @@ uniform ${precision} ${type} u_${name};
52221
52225
  return UserAgent;
52222
52226
  }());
52223
52227
 
52224
- var version$3 = "3.6.0";
52228
+ var version$3 = "3.7.1";
52225
52229
 
52226
52230
  /**
52227
52231
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -63253,9 +63257,7 @@ uniform ${precision} ${type} u_${name};
63253
63257
  zoomInButton.setAttribute("alt", "Zoom In");
63254
63258
  zoomInButton.setAttribute("type", "button");
63255
63259
  zoomInButton.addEventListener("click", function () {
63256
- var _a;
63257
63260
  map.setCamera({
63258
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63259
63261
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
63260
63262
  duration: ZoomControl.ZOOM_DURATION_MS,
63261
63263
  type: "ease",
@@ -63272,9 +63274,7 @@ uniform ${precision} ${type} u_${name};
63272
63274
  zoomOutButton.setAttribute("alt", "Zoom Out");
63273
63275
  zoomOutButton.setAttribute("type", "button");
63274
63276
  zoomOutButton.addEventListener("click", function () {
63275
- var _a;
63276
63277
  map.setCamera({
63277
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
63278
63278
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
63279
63279
  duration: ZoomControl.ZOOM_DURATION_MS,
63280
63280
  type: "ease",
@@ -113450,7 +113450,6 @@ uniform ${precision} ${type} u_${name};
113450
113450
  _this.pitch = 0;
113451
113451
  /**
113452
113452
  * 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`.
113453
- * Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
113454
113453
  * Default `1`.
113455
113454
  * @default 1
113456
113455
  */
@@ -115778,9 +115777,7 @@ uniform ${precision} ${type} u_${name};
115778
115777
  _this.events.invoke("error", errorData);
115779
115778
  });
115780
115779
  // --> Set initial camera state of map
115781
- _this.setCamera(__assign(__assign({
115782
- // Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
115783
- minZoom: 1 }, options), { type: "jump", duration: 0 }));
115780
+ _this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
115784
115781
  // Add delegates to map
115785
115782
  {
115786
115783
  _this.incidentDelegate = new IncidentServiceDelegate(_this);
@@ -115945,9 +115942,6 @@ uniform ${precision} ${type} u_${name};
115945
115942
  pitch: cameraOptions.pitch,
115946
115943
  around: undefined
115947
115944
  };
115948
- if (cameraOptions.minZoom < 1) {
115949
- console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
115950
- }
115951
115945
  this.map.setMinZoom(cameraOptions.minZoom);
115952
115946
  this.map.setMaxZoom(cameraOptions.maxZoom);
115953
115947
  if (cameraOptions.minPitch) {
@@ -115998,6 +115992,7 @@ uniform ${precision} ${type} u_${name};
115998
115992
  * Returns the camera's current properties.
115999
115993
  */
116000
115994
  Map.prototype.getCamera = function () {
115995
+ var _a;
116001
115996
  var southWest = this.map.getBounds().getSouthWest().toArray();
116002
115997
  var northEast = this.map.getBounds().getNorthEast().toArray();
116003
115998
  var cameraOptions = {
@@ -116007,7 +116002,8 @@ uniform ${precision} ${type} u_${name};
116007
116002
  pitch: this.map.getPitch(),
116008
116003
  bounds: new BoundingBox(southWest, northEast),
116009
116004
  minZoom: this.map.getMinZoom(),
116010
- maxZoom: this.map.getMaxZoom()
116005
+ maxZoom: this.map.getMaxZoom(),
116006
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
116011
116007
  };
116012
116008
  return cameraOptions;
116013
116009
  };