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.
package/dist/atlas.js CHANGED
@@ -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.
@@ -75351,6 +75351,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
75351
75351
  _this.reloadAttribution();
75352
75352
  });
75353
75353
  };
75354
+ /**
75355
+ * @internal
75356
+ */
75354
75357
  this.reloadAttribution = function () {
75355
75358
  var sources = _this.getMapStyleVisibleSources();
75356
75359
  // keep track of all rules as well as registered to determine redundant rules that won't get applied.
@@ -81791,6 +81794,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
81791
81794
  });
81792
81795
  // Make the deferred layers visible once the map instance is fully loaded.
81793
81796
  _this._progressiveLoadingState.pendingVisibilityChange = function () {
81797
+ var _a;
81794
81798
  // Release the callback.
81795
81799
  _this._progressiveLoadingState.pendingVisibilityChange = null;
81796
81800
  // Bail out the callback once map style has changed.
@@ -81804,6 +81808,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
81804
81808
  layer.layout.visibility = 'visible';
81805
81809
  map.setLayoutProperty(layer.id, 'visibility', 'visible');
81806
81810
  });
81811
+ // Reload attribution after the deferred layers are visible.
81812
+ (_a = _this.map.copyrightDelegate) === null || _a === void 0 ? void 0 : _a.reloadAttribution();
81807
81813
  };
81808
81814
  _this.map.events.addOnce('load', _this._progressiveLoadingState.pendingVisibilityChange);
81809
81815
  };
@@ -82282,30 +82288,27 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
82282
82288
  * Fetches a json resource at the specified domain and path.
82283
82289
  */
82284
82290
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
82285
- var _a, _b;
82291
+ var _a;
82286
82292
  if (customQueryParams === void 0) { customQueryParams = {}; }
82287
82293
  return __awaiter$4(this, void 0, void 0, function () {
82288
82294
  var requestParams, fetchOptions;
82289
- var _c;
82290
- return __generator$4(this, function (_d) {
82291
- switch (_d.label) {
82295
+ var _b;
82296
+ return __generator$4(this, function (_c) {
82297
+ switch (_c.label) {
82292
82298
  case 0:
82293
82299
  requestParams = {
82294
82300
  url: new Url({
82295
82301
  protocol: "https",
82296
82302
  domain: domain,
82297
82303
  path: path,
82298
- queryParams: __assign$8((_c = {}, _c[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion,
82299
- // Generate a hash code to avoid cache conflict
82300
- // TODO: Remove this once style version 2023-01-01 is publicly available
82301
- _c.hash = StyleManager._hashCode((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.getToken()), _c), customQueryParams)
82304
+ queryParams: __assign$8((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
82302
82305
  }).toString()
82303
82306
  };
82304
82307
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
82305
82308
  // If a transformRequest(...) was specified use it.
82306
82309
  requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
82307
82310
  }
82308
- (_b = this.map.authentication) === null || _b === void 0 ? void 0 : _b.signRequest(requestParams);
82311
+ (_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
82309
82312
  fetchOptions = {
82310
82313
  method: "GET",
82311
82314
  mode: "cors",
@@ -82322,7 +82325,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
82322
82325
  throw new Error("HTTP " + response.status + ": " + response.statusText + " ");
82323
82326
  }
82324
82327
  })];
82325
- case 1: return [2 /*return*/, _d.sent()];
82328
+ case 1: return [2 /*return*/, _c.sent()];
82326
82329
  }
82327
82330
  });
82328
82331
  });