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.
@@ -748,6 +748,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
748
748
  * A localized version of `"Detour"`.
749
749
  */
750
750
  this.Detour = "Detour";
751
+ /**
752
+ * A localized version of `"Dummy"`.
753
+ */
754
+ this.Dummy = "Dummy";
751
755
  }
752
756
  return LocalizedStrings;
753
757
  }());
@@ -890,7 +894,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
890
894
  return UserAgent;
891
895
  }());
892
896
 
893
- var version = "3.6.0";
897
+ var version = "3.7.1";
894
898
 
895
899
  /**
896
900
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -11913,9 +11917,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11913
11917
  zoomInButton.setAttribute("alt", "Zoom In");
11914
11918
  zoomInButton.setAttribute("type", "button");
11915
11919
  zoomInButton.addEventListener("click", function () {
11916
- var _a;
11917
11920
  map.setCamera({
11918
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11919
11921
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
11920
11922
  duration: ZoomControl.ZOOM_DURATION_MS,
11921
11923
  type: "ease",
@@ -11932,9 +11934,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11932
11934
  zoomOutButton.setAttribute("alt", "Zoom Out");
11933
11935
  zoomOutButton.setAttribute("type", "button");
11934
11936
  zoomOutButton.addEventListener("click", function () {
11935
- var _a;
11936
11937
  map.setCamera({
11937
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11938
11938
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
11939
11939
  duration: ZoomControl.ZOOM_DURATION_MS,
11940
11940
  type: "ease",
@@ -20910,7 +20910,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20910
20910
  _this.pitch = 0;
20911
20911
  /**
20912
20912
  * 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`.
20913
- * Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
20914
20913
  * Default `1`.
20915
20914
  * @default 1
20916
20915
  */
@@ -23227,9 +23226,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23227
23226
  _this.events.invoke("error", errorData);
23228
23227
  });
23229
23228
  // --> Set initial camera state of map
23230
- _this.setCamera(__assign(__assign({
23231
- // Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
23232
- minZoom: 1 }, options), { type: "jump", duration: 0 }));
23229
+ _this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
23233
23230
  _this.flowDelegate = new FlowServiceDelegate(_this);
23234
23231
  _this.accessibleMapDelegate = new AccessibleMapDelegate(_this);
23235
23232
  _this.userInteractionDelegate = new UserInteractionDelegate(_this, options);
@@ -23379,9 +23376,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23379
23376
  pitch: cameraOptions.pitch,
23380
23377
  around: undefined
23381
23378
  };
23382
- if (cameraOptions.minZoom < 1) {
23383
- console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
23384
- }
23385
23379
  this.map.setMinZoom(cameraOptions.minZoom);
23386
23380
  this.map.setMaxZoom(cameraOptions.maxZoom);
23387
23381
  if (cameraOptions.minPitch) {
@@ -23432,6 +23426,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23432
23426
  * Returns the camera's current properties.
23433
23427
  */
23434
23428
  Map.prototype.getCamera = function () {
23429
+ var _a;
23435
23430
  var southWest = this.map.getBounds().getSouthWest().toArray();
23436
23431
  var northEast = this.map.getBounds().getNorthEast().toArray();
23437
23432
  var cameraOptions = {
@@ -23441,7 +23436,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23441
23436
  pitch: this.map.getPitch(),
23442
23437
  bounds: new BoundingBox(southWest, northEast),
23443
23438
  minZoom: this.map.getMinZoom(),
23444
- maxZoom: this.map.getMaxZoom()
23439
+ maxZoom: this.map.getMaxZoom(),
23440
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
23445
23441
  };
23446
23442
  return cameraOptions;
23447
23443
  };
@@ -748,6 +748,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
748
748
  * A localized version of `"Detour"`.
749
749
  */
750
750
  this.Detour = "Detour";
751
+ /**
752
+ * A localized version of `"Dummy"`.
753
+ */
754
+ this.Dummy = "Dummy";
751
755
  }
752
756
  return LocalizedStrings;
753
757
  }());
@@ -890,7 +894,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
890
894
  return UserAgent;
891
895
  }());
892
896
 
893
- var version$2 = "3.6.0";
897
+ var version$2 = "3.7.1";
894
898
 
895
899
  /**
896
900
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -11913,9 +11917,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11913
11917
  zoomInButton.setAttribute("alt", "Zoom In");
11914
11918
  zoomInButton.setAttribute("type", "button");
11915
11919
  zoomInButton.addEventListener("click", function () {
11916
- var _a;
11917
11920
  map.setCamera({
11918
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11919
11921
  zoom: map.getCamera().zoom + _this.options.zoomDelta,
11920
11922
  duration: ZoomControl.ZOOM_DURATION_MS,
11921
11923
  type: "ease",
@@ -11932,9 +11934,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11932
11934
  zoomOutButton.setAttribute("alt", "Zoom Out");
11933
11935
  zoomOutButton.setAttribute("type", "button");
11934
11936
  zoomOutButton.addEventListener("click", function () {
11935
- var _a;
11936
11937
  map.setCamera({
11937
- maxBounds: (_a = map._getMap().getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
11938
11938
  zoom: map.getCamera().zoom - _this.options.zoomDelta,
11939
11939
  duration: ZoomControl.ZOOM_DURATION_MS,
11940
11940
  type: "ease",
@@ -44571,7 +44571,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
44571
44571
  _this.pitch = 0;
44572
44572
  /**
44573
44573
  * 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`.
44574
- * Setting `minZoom` below 1 may result in an empty map when the zoom level is less than 1.
44575
44574
  * Default `1`.
44576
44575
  * @default 1
44577
44576
  */
@@ -46892,9 +46891,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
46892
46891
  _this.events.invoke("error", errorData);
46893
46892
  });
46894
46893
  // --> Set initial camera state of map
46895
- _this.setCamera(__assign(__assign({
46896
- // Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
46897
- minZoom: 1 }, options), { type: "jump", duration: 0 }));
46894
+ _this.setCamera(__assign(__assign({}, options), { type: "jump", duration: 0 }));
46898
46895
  // Add delegates to map
46899
46896
  {
46900
46897
  _this.incidentDelegate = new IncidentServiceDelegate(_this);
@@ -47046,9 +47043,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47046
47043
  pitch: cameraOptions.pitch,
47047
47044
  around: undefined
47048
47045
  };
47049
- if (cameraOptions.minZoom < 1) {
47050
- console.warn("Setting minZoom below 1 may result in an empty map when the zoom level is less than 1.");
47051
- }
47052
47046
  this.map.setMinZoom(cameraOptions.minZoom);
47053
47047
  this.map.setMaxZoom(cameraOptions.maxZoom);
47054
47048
  if (cameraOptions.minPitch) {
@@ -47099,6 +47093,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47099
47093
  * Returns the camera's current properties.
47100
47094
  */
47101
47095
  Map.prototype.getCamera = function () {
47096
+ var _a;
47102
47097
  var southWest = this.map.getBounds().getSouthWest().toArray();
47103
47098
  var northEast = this.map.getBounds().getNorthEast().toArray();
47104
47099
  var cameraOptions = {
@@ -47108,7 +47103,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
47108
47103
  pitch: this.map.getPitch(),
47109
47104
  bounds: new BoundingBox(southWest, northEast),
47110
47105
  minZoom: this.map.getMinZoom(),
47111
- maxZoom: this.map.getMaxZoom()
47106
+ maxZoom: this.map.getMaxZoom(),
47107
+ maxBounds: (_a = this.map.getMaxBounds()) === null || _a === void 0 ? void 0 : _a.toArray().flat(),
47112
47108
  };
47113
47109
  return cameraOptions;
47114
47110
  };