azure-maps-control 2.3.3 → 2.3.4
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-core-bare-snr.js +19 -14
- package/dist/atlas-core-bare.js +19 -14
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +20 -15
- package/dist/atlas-core.js +20 -15
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +20 -15
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +3 -3
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.
|
|
43480
|
+
var version = "2.3.4";
|
|
43481
43481
|
|
|
43482
43482
|
/**
|
|
43483
43483
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -79456,7 +79456,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
79456
79456
|
return undefined;
|
|
79457
79457
|
};
|
|
79458
79458
|
/**
|
|
79459
|
-
* Removes all
|
|
79459
|
+
* Removes all layers from the map.
|
|
79460
79460
|
*/
|
|
79461
79461
|
LayerManager.prototype.clear = function () {
|
|
79462
79462
|
for (var layerIndexIndex = this.layerIndex.length - 1; layerIndexIndex >= 0; layerIndexIndex--) {
|
|
@@ -82282,6 +82282,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
82282
82282
|
params.url = targetUrl.href;
|
|
82283
82283
|
}
|
|
82284
82284
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(params);
|
|
82285
|
+
// Delete auth token for static assets to allow AFD caching
|
|
82286
|
+
this._deleteAuthTokenForStaticAssets(params);
|
|
82285
82287
|
}
|
|
82286
82288
|
};
|
|
82287
82289
|
/**
|
|
@@ -82309,6 +82311,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
82309
82311
|
requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
|
|
82310
82312
|
}
|
|
82311
82313
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
82314
|
+
// Delete auth token for static assets to allow AFD caching
|
|
82315
|
+
this._deleteAuthTokenForStaticAssets(requestParams);
|
|
82312
82316
|
fetchOptions = {
|
|
82313
82317
|
method: "GET",
|
|
82314
82318
|
mode: "cors",
|
|
@@ -82331,19 +82335,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
82331
82335
|
});
|
|
82332
82336
|
};
|
|
82333
82337
|
/**
|
|
82334
|
-
*
|
|
82338
|
+
* Delete auth token for static assets to allow AFD caching.
|
|
82335
82339
|
*/
|
|
82336
|
-
StyleManager.
|
|
82337
|
-
|
|
82338
|
-
|
|
82339
|
-
|
|
82340
|
-
|
|
82341
|
-
|
|
82342
|
-
|
|
82343
|
-
|
|
82344
|
-
|
|
82345
|
-
|
|
82346
|
-
|
|
82340
|
+
StyleManager.prototype._deleteAuthTokenForStaticAssets = function (params) {
|
|
82341
|
+
// The following resources are considered as static assets.
|
|
82342
|
+
// StyleSet /styling/styles
|
|
82343
|
+
// Style /styling/styles/*
|
|
82344
|
+
// Thumbnail /styling/styles/*/thumbnail.png
|
|
82345
|
+
// Sprite PNG /styling/sprites/*/sprite@2x.png
|
|
82346
|
+
// Sprite JSON /styling/sprites/*/sprite@2x.json
|
|
82347
|
+
// Glyph /styling/glyphs/*/0-255.pbf
|
|
82348
|
+
if (params.url.startsWith("https://" + this.serviceOptions.staticAssetsDomain + "/" + constants.stylePath)) {
|
|
82349
|
+
delete params.headers[constants.msClientIdHeaderName];
|
|
82350
|
+
delete params.headers[constants.authorizationHeaderName];
|
|
82351
|
+
}
|
|
82347
82352
|
};
|
|
82348
82353
|
return StyleManager;
|
|
82349
82354
|
}());
|
|
@@ -83538,7 +83543,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
83538
83543
|
this.dispose();
|
|
83539
83544
|
};
|
|
83540
83545
|
/**
|
|
83541
|
-
* Removes all
|
|
83546
|
+
* Removes all sources, layers, markers, and popups from the map.
|
|
83542
83547
|
* User added images are preserved.
|
|
83543
83548
|
*/
|
|
83544
83549
|
Map.prototype.clear = function () {
|