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.
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
265
265
  return Url;
266
266
  }());
267
267
 
268
- var version = "2.3.2";
268
+ var version = "2.3.3";
269
269
 
270
270
  /**
271
271
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -20697,6 +20697,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20697
20697
  });
20698
20698
  // Make the deferred layers visible once the map instance is fully loaded.
20699
20699
  _this._progressiveLoadingState.pendingVisibilityChange = function () {
20700
+ var _a;
20700
20701
  // Release the callback.
20701
20702
  _this._progressiveLoadingState.pendingVisibilityChange = null;
20702
20703
  // Bail out the callback once map style has changed.
@@ -20710,6 +20711,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
20710
20711
  layer.layout.visibility = 'visible';
20711
20712
  map.setLayoutProperty(layer.id, 'visibility', 'visible');
20712
20713
  });
20714
+ // Reload attribution after the deferred layers are visible.
20715
+ (_a = _this.map.copyrightDelegate) === null || _a === void 0 ? void 0 : _a.reloadAttribution();
20713
20716
  };
20714
20717
  _this.map.events.addOnce('load', _this._progressiveLoadingState.pendingVisibilityChange);
20715
20718
  };
@@ -21188,30 +21191,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21188
21191
  * Fetches a json resource at the specified domain and path.
21189
21192
  */
21190
21193
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
21191
- var _a, _b;
21194
+ var _a;
21192
21195
  if (customQueryParams === void 0) { customQueryParams = {}; }
21193
21196
  return __awaiter$3(this, void 0, void 0, function () {
21194
21197
  var requestParams, fetchOptions;
21195
- var _c;
21196
- return __generator$3(this, function (_d) {
21197
- switch (_d.label) {
21198
+ var _b;
21199
+ return __generator$3(this, function (_c) {
21200
+ switch (_c.label) {
21198
21201
  case 0:
21199
21202
  requestParams = {
21200
21203
  url: new Url({
21201
21204
  protocol: "https",
21202
21205
  domain: domain,
21203
21206
  path: path,
21204
- queryParams: __assign$8((_c = {}, _c[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion,
21205
- // Generate a hash code to avoid cache conflict
21206
- // TODO: Remove this once style version 2023-01-01 is publicly available
21207
- _c.hash = StyleManager._hashCode((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.getToken()), _c), customQueryParams)
21207
+ queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
21208
21208
  }).toString()
21209
21209
  };
21210
21210
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
21211
21211
  // If a transformRequest(...) was specified use it.
21212
21212
  requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
21213
21213
  }
21214
- (_b = this.map.authentication) === null || _b === void 0 ? void 0 : _b.signRequest(requestParams);
21214
+ (_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
21215
21215
  fetchOptions = {
21216
21216
  method: "GET",
21217
21217
  mode: "cors",
@@ -21228,7 +21228,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21228
21228
  throw new Error("HTTP " + response.status + ": " + response.statusText + " ");
21229
21229
  }
21230
21230
  })];
21231
- case 1: return [2 /*return*/, _d.sent()];
21231
+ case 1: return [2 /*return*/, _c.sent()];
21232
21232
  }
21233
21233
  });
21234
21234
  });
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
265
265
  return Url;
266
266
  }());
267
267
 
268
- var version = "2.3.2";
268
+ var version = "2.3.3";
269
269
 
270
270
  /**
271
271
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -21976,6 +21976,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21976
21976
  _this.reloadAttribution();
21977
21977
  });
21978
21978
  };
21979
+ /**
21980
+ * @internal
21981
+ */
21979
21982
  this.reloadAttribution = function () {
21980
21983
  var sources = _this.getMapStyleVisibleSources();
21981
21984
  // keep track of all rules as well as registered to determine redundant rules that won't get applied.
@@ -28416,6 +28419,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28416
28419
  });
28417
28420
  // Make the deferred layers visible once the map instance is fully loaded.
28418
28421
  _this._progressiveLoadingState.pendingVisibilityChange = function () {
28422
+ var _a;
28419
28423
  // Release the callback.
28420
28424
  _this._progressiveLoadingState.pendingVisibilityChange = null;
28421
28425
  // Bail out the callback once map style has changed.
@@ -28429,6 +28433,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28429
28433
  layer.layout.visibility = 'visible';
28430
28434
  map.setLayoutProperty(layer.id, 'visibility', 'visible');
28431
28435
  });
28436
+ // Reload attribution after the deferred layers are visible.
28437
+ (_a = _this.map.copyrightDelegate) === null || _a === void 0 ? void 0 : _a.reloadAttribution();
28432
28438
  };
28433
28439
  _this.map.events.addOnce('load', _this._progressiveLoadingState.pendingVisibilityChange);
28434
28440
  };
@@ -28907,30 +28913,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28907
28913
  * Fetches a json resource at the specified domain and path.
28908
28914
  */
28909
28915
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
28910
- var _a, _b;
28916
+ var _a;
28911
28917
  if (customQueryParams === void 0) { customQueryParams = {}; }
28912
28918
  return __awaiter$4(this, void 0, void 0, function () {
28913
28919
  var requestParams, fetchOptions;
28914
- var _c;
28915
- return __generator$4(this, function (_d) {
28916
- switch (_d.label) {
28920
+ var _b;
28921
+ return __generator$4(this, function (_c) {
28922
+ switch (_c.label) {
28917
28923
  case 0:
28918
28924
  requestParams = {
28919
28925
  url: new Url({
28920
28926
  protocol: "https",
28921
28927
  domain: domain,
28922
28928
  path: path,
28923
- queryParams: __assign$8((_c = {}, _c[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion,
28924
- // Generate a hash code to avoid cache conflict
28925
- // TODO: Remove this once style version 2023-01-01 is publicly available
28926
- _c.hash = StyleManager._hashCode((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.getToken()), _c), customQueryParams)
28929
+ queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
28927
28930
  }).toString()
28928
28931
  };
28929
28932
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
28930
28933
  // If a transformRequest(...) was specified use it.
28931
28934
  requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
28932
28935
  }
28933
- (_b = this.map.authentication) === null || _b === void 0 ? void 0 : _b.signRequest(requestParams);
28936
+ (_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
28934
28937
  fetchOptions = {
28935
28938
  method: "GET",
28936
28939
  mode: "cors",
@@ -28947,7 +28950,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28947
28950
  throw new Error("HTTP " + response.status + ": " + response.statusText + " ");
28948
28951
  }
28949
28952
  })];
28950
- case 1: return [2 /*return*/, _d.sent()];
28953
+ case 1: return [2 /*return*/, _c.sent()];
28951
28954
  }
28952
28955
  });
28953
28956
  });