azure-maps-control 2.3.2 → 2.3.3

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.
@@ -43477,7 +43477,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43477
43477
  return Url;
43478
43478
  }());
43479
43479
 
43480
- var version = "2.3.2";
43480
+ var version = "2.3.3";
43481
43481
 
43482
43482
  /**
43483
43483
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -63891,6 +63891,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63891
63891
  });
63892
63892
  // Make the deferred layers visible once the map instance is fully loaded.
63893
63893
  _this._progressiveLoadingState.pendingVisibilityChange = function () {
63894
+ var _a;
63894
63895
  // Release the callback.
63895
63896
  _this._progressiveLoadingState.pendingVisibilityChange = null;
63896
63897
  // Bail out the callback once map style has changed.
@@ -63904,6 +63905,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
63904
63905
  layer.layout.visibility = 'visible';
63905
63906
  map.setLayoutProperty(layer.id, 'visibility', 'visible');
63906
63907
  });
63908
+ // Reload attribution after the deferred layers are visible.
63909
+ (_a = _this.map.copyrightDelegate) === null || _a === void 0 ? void 0 : _a.reloadAttribution();
63907
63910
  };
63908
63911
  _this.map.events.addOnce('load', _this._progressiveLoadingState.pendingVisibilityChange);
63909
63912
  };
@@ -64382,30 +64385,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
64382
64385
  * Fetches a json resource at the specified domain and path.
64383
64386
  */
64384
64387
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
64385
- var _a, _b;
64388
+ var _a;
64386
64389
  if (customQueryParams === void 0) { customQueryParams = {}; }
64387
64390
  return __awaiter$3(this, void 0, void 0, function () {
64388
64391
  var requestParams, fetchOptions;
64389
- var _c;
64390
- return __generator$3(this, function (_d) {
64391
- switch (_d.label) {
64392
+ var _b;
64393
+ return __generator$3(this, function (_c) {
64394
+ switch (_c.label) {
64392
64395
  case 0:
64393
64396
  requestParams = {
64394
64397
  url: new Url({
64395
64398
  protocol: "https",
64396
64399
  domain: domain,
64397
64400
  path: path,
64398
- queryParams: __assign$8((_c = {}, _c[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion,
64399
- // Generate a hash code to avoid cache conflict
64400
- // TODO: Remove this once style version 2023-01-01 is publicly available
64401
- _c.hash = StyleManager._hashCode((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.getToken()), _c), customQueryParams)
64401
+ queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
64402
64402
  }).toString()
64403
64403
  };
64404
64404
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
64405
64405
  // If a transformRequest(...) was specified use it.
64406
64406
  requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
64407
64407
  }
64408
- (_b = this.map.authentication) === null || _b === void 0 ? void 0 : _b.signRequest(requestParams);
64408
+ (_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
64409
64409
  fetchOptions = {
64410
64410
  method: "GET",
64411
64411
  mode: "cors",
@@ -64422,7 +64422,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
64422
64422
  throw new Error("HTTP " + response.status + ": " + response.statusText + " ");
64423
64423
  }
64424
64424
  })];
64425
- case 1: return [2 /*return*/, _d.sent()];
64425
+ case 1: return [2 /*return*/, _c.sent()];
64426
64426
  }
64427
64427
  });
64428
64428
  });
@@ -43477,7 +43477,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43477
43477
  return Url;
43478
43478
  }());
43479
43479
 
43480
- var version = "2.3.2";
43480
+ var version = "2.3.3";
43481
43481
 
43482
43482
  /**
43483
43483
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -65170,6 +65170,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
65170
65170
  _this.reloadAttribution();
65171
65171
  });
65172
65172
  };
65173
+ /**
65174
+ * @internal
65175
+ */
65173
65176
  this.reloadAttribution = function () {
65174
65177
  var sources = _this.getMapStyleVisibleSources();
65175
65178
  // keep track of all rules as well as registered to determine redundant rules that won't get applied.
@@ -71610,6 +71613,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
71610
71613
  });
71611
71614
  // Make the deferred layers visible once the map instance is fully loaded.
71612
71615
  _this._progressiveLoadingState.pendingVisibilityChange = function () {
71616
+ var _a;
71613
71617
  // Release the callback.
71614
71618
  _this._progressiveLoadingState.pendingVisibilityChange = null;
71615
71619
  // Bail out the callback once map style has changed.
@@ -71623,6 +71627,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
71623
71627
  layer.layout.visibility = 'visible';
71624
71628
  map.setLayoutProperty(layer.id, 'visibility', 'visible');
71625
71629
  });
71630
+ // Reload attribution after the deferred layers are visible.
71631
+ (_a = _this.map.copyrightDelegate) === null || _a === void 0 ? void 0 : _a.reloadAttribution();
71626
71632
  };
71627
71633
  _this.map.events.addOnce('load', _this._progressiveLoadingState.pendingVisibilityChange);
71628
71634
  };
@@ -72101,30 +72107,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
72101
72107
  * Fetches a json resource at the specified domain and path.
72102
72108
  */
72103
72109
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
72104
- var _a, _b;
72110
+ var _a;
72105
72111
  if (customQueryParams === void 0) { customQueryParams = {}; }
72106
72112
  return __awaiter$4(this, void 0, void 0, function () {
72107
72113
  var requestParams, fetchOptions;
72108
- var _c;
72109
- return __generator$4(this, function (_d) {
72110
- switch (_d.label) {
72114
+ var _b;
72115
+ return __generator$4(this, function (_c) {
72116
+ switch (_c.label) {
72111
72117
  case 0:
72112
72118
  requestParams = {
72113
72119
  url: new Url({
72114
72120
  protocol: "https",
72115
72121
  domain: domain,
72116
72122
  path: path,
72117
- queryParams: __assign$8((_c = {}, _c[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion,
72118
- // Generate a hash code to avoid cache conflict
72119
- // TODO: Remove this once style version 2023-01-01 is publicly available
72120
- _c.hash = StyleManager._hashCode((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.getToken()), _c), customQueryParams)
72123
+ queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
72121
72124
  }).toString()
72122
72125
  };
72123
72126
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
72124
72127
  // If a transformRequest(...) was specified use it.
72125
72128
  requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
72126
72129
  }
72127
- (_b = this.map.authentication) === null || _b === void 0 ? void 0 : _b.signRequest(requestParams);
72130
+ (_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
72128
72131
  fetchOptions = {
72129
72132
  method: "GET",
72130
72133
  mode: "cors",
@@ -72141,7 +72144,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
72141
72144
  throw new Error("HTTP " + response.status + ": " + response.statusText + " ");
72142
72145
  }
72143
72146
  })];
72144
- case 1: return [2 /*return*/, _d.sent()];
72147
+ case 1: return [2 /*return*/, _c.sent()];
72145
72148
  }
72146
72149
  });
72147
72150
  });