azure-maps-control 2.3.3 → 2.3.5
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 +21 -16
- package/dist/atlas-core-bare.js +39 -33
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +22 -17
- package/dist/atlas-core.js +40 -34
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +40 -34
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +5 -5
|
@@ -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.
|
|
268
|
+
var version = "2.3.5";
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -18359,7 +18359,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
18359
18359
|
return undefined;
|
|
18360
18360
|
};
|
|
18361
18361
|
/**
|
|
18362
|
-
* Removes all
|
|
18362
|
+
* Removes all layers from the map.
|
|
18363
18363
|
*/
|
|
18364
18364
|
LayerManager.prototype.clear = function () {
|
|
18365
18365
|
for (var layerIndexIndex = this.layerIndex.length - 1; layerIndexIndex >= 0; layerIndexIndex--) {
|
|
@@ -20185,8 +20185,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
20185
20185
|
*/
|
|
20186
20186
|
_this.styleSet = undefined;
|
|
20187
20187
|
/**
|
|
20188
|
-
* Enable accessibility
|
|
20189
|
-
*
|
|
20188
|
+
* Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
|
|
20189
|
+
* This property is set to true by default.
|
|
20190
20190
|
* @default true
|
|
20191
20191
|
*/
|
|
20192
20192
|
_this.enableAccessibility = true;
|
|
@@ -21185,6 +21185,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
21185
21185
|
params.url = targetUrl.href;
|
|
21186
21186
|
}
|
|
21187
21187
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(params);
|
|
21188
|
+
// Delete auth token for static assets to allow AFD caching
|
|
21189
|
+
this._deleteAuthTokenForStaticAssets(params);
|
|
21188
21190
|
}
|
|
21189
21191
|
};
|
|
21190
21192
|
/**
|
|
@@ -21212,6 +21214,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
21212
21214
|
requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
|
|
21213
21215
|
}
|
|
21214
21216
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
21217
|
+
// Delete auth token for static assets to allow AFD caching
|
|
21218
|
+
this._deleteAuthTokenForStaticAssets(requestParams);
|
|
21215
21219
|
fetchOptions = {
|
|
21216
21220
|
method: "GET",
|
|
21217
21221
|
mode: "cors",
|
|
@@ -21234,19 +21238,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
21234
21238
|
});
|
|
21235
21239
|
};
|
|
21236
21240
|
/**
|
|
21237
|
-
*
|
|
21241
|
+
* Delete auth token for static assets to allow AFD caching.
|
|
21238
21242
|
*/
|
|
21239
|
-
StyleManager.
|
|
21240
|
-
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
|
|
21244
|
-
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
|
|
21243
|
+
StyleManager.prototype._deleteAuthTokenForStaticAssets = function (params) {
|
|
21244
|
+
// The following resources are considered as static assets.
|
|
21245
|
+
// StyleSet /styling/styles
|
|
21246
|
+
// Style /styling/styles/*
|
|
21247
|
+
// Thumbnail /styling/styles/*/thumbnail.png
|
|
21248
|
+
// Sprite PNG /styling/sprites/*/sprite@2x.png
|
|
21249
|
+
// Sprite JSON /styling/sprites/*/sprite@2x.json
|
|
21250
|
+
// Glyph /styling/glyphs/*/0-255.pbf
|
|
21251
|
+
if (params.url.startsWith("https://" + this.serviceOptions.staticAssetsDomain + "/" + constants.stylePath)) {
|
|
21252
|
+
delete params.headers[constants.msClientIdHeaderName];
|
|
21253
|
+
delete params.headers[constants.authorizationHeaderName];
|
|
21248
21254
|
}
|
|
21249
|
-
return hash;
|
|
21250
21255
|
};
|
|
21251
21256
|
return StyleManager;
|
|
21252
21257
|
}());
|
|
@@ -22432,7 +22437,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
22432
22437
|
this.dispose();
|
|
22433
22438
|
};
|
|
22434
22439
|
/**
|
|
22435
|
-
* Removes all
|
|
22440
|
+
* Removes all sources, layers, markers, and popups from the map.
|
|
22436
22441
|
* User added images are preserved.
|
|
22437
22442
|
*/
|
|
22438
22443
|
Map.prototype.clear = function () {
|
package/dist/atlas-core-bare.js
CHANGED
|
@@ -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.
|
|
268
|
+
var version = "2.3.5";
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -16455,8 +16455,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
16455
16455
|
var domain = this.map.getServiceOptions().domain;
|
|
16456
16456
|
var urlOptions = {
|
|
16457
16457
|
domain: domain,
|
|
16458
|
-
path: "
|
|
16459
|
-
queryParams: __assign$4({ "api-version": "
|
|
16458
|
+
path: "reverseGeocode",
|
|
16459
|
+
queryParams: __assign$4({ "api-version": "2023-06-01", "coordinates": normalizeLongitude(options.position[0]) + "," + normalizeLatitude(options.position[1]) }, (options.style.view && { view: options.style.view })),
|
|
16460
|
+
headers: {
|
|
16461
|
+
"Accept-Language": options.style.language
|
|
16462
|
+
}
|
|
16460
16463
|
};
|
|
16461
16464
|
return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
|
|
16462
16465
|
};
|
|
@@ -17657,12 +17660,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
17657
17660
|
position: cam.center,
|
|
17658
17661
|
style: style
|
|
17659
17662
|
}).then(function (r) {
|
|
17663
|
+
var _a, _b, _c;
|
|
17660
17664
|
var info = {};
|
|
17661
|
-
if (r && r.
|
|
17662
|
-
if (r.
|
|
17663
|
-
var a = r.
|
|
17664
|
-
if (a.
|
|
17665
|
-
info.country = a.
|
|
17665
|
+
if (r && r.features && r.features.length > 0) {
|
|
17666
|
+
if ((_b = (_a = r.features[0]) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.address) {
|
|
17667
|
+
var a = r.features[0].properties.address;
|
|
17668
|
+
if (a.countryRegion) {
|
|
17669
|
+
info.country = a.countryRegion.name;
|
|
17666
17670
|
MapViewDescriptor._labelCache.cache(info.country, {
|
|
17667
17671
|
source: [],
|
|
17668
17672
|
labelType: "country",
|
|
@@ -17670,8 +17674,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
17670
17674
|
minZoom: 0
|
|
17671
17675
|
}, cam.center, style.language);
|
|
17672
17676
|
}
|
|
17673
|
-
if (a.
|
|
17674
|
-
info.state = a.
|
|
17677
|
+
if (a.adminDistricts) {
|
|
17678
|
+
info.state = (_c = a.adminDistricts[0]) === null || _c === void 0 ? void 0 : _c.shortName;
|
|
17675
17679
|
MapViewDescriptor._labelCache.cache(info.state, {
|
|
17676
17680
|
source: [],
|
|
17677
17681
|
labelType: "state",
|
|
@@ -17679,20 +17683,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
17679
17683
|
minZoom: 4
|
|
17680
17684
|
}, cam.center, style.language);
|
|
17681
17685
|
}
|
|
17682
|
-
if (a.
|
|
17683
|
-
info.city = a.
|
|
17684
|
-
MapViewDescriptor._labelCache.cache(info.
|
|
17686
|
+
if (a.locality) {
|
|
17687
|
+
info.city = a.locality;
|
|
17688
|
+
MapViewDescriptor._labelCache.cache(info.city, {
|
|
17685
17689
|
source: [],
|
|
17686
17690
|
labelType: "city",
|
|
17687
17691
|
radius: 1000,
|
|
17688
17692
|
minZoom: 10
|
|
17689
17693
|
}, cam.center, style.language);
|
|
17690
17694
|
}
|
|
17691
|
-
if (a.
|
|
17692
|
-
info.road = a.
|
|
17693
|
-
}
|
|
17694
|
-
else if (a.street) {
|
|
17695
|
-
info.road = a.street;
|
|
17695
|
+
if (a.addressLine) {
|
|
17696
|
+
info.road = a.addressLine;
|
|
17696
17697
|
}
|
|
17697
17698
|
}
|
|
17698
17699
|
}
|
|
@@ -26081,7 +26082,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
26081
26082
|
return undefined;
|
|
26082
26083
|
};
|
|
26083
26084
|
/**
|
|
26084
|
-
* Removes all
|
|
26085
|
+
* Removes all layers from the map.
|
|
26085
26086
|
*/
|
|
26086
26087
|
LayerManager.prototype.clear = function () {
|
|
26087
26088
|
for (var layerIndexIndex = this.layerIndex.length - 1; layerIndexIndex >= 0; layerIndexIndex--) {
|
|
@@ -27907,8 +27908,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
27907
27908
|
*/
|
|
27908
27909
|
_this.styleSet = undefined;
|
|
27909
27910
|
/**
|
|
27910
|
-
* Enable accessibility
|
|
27911
|
-
*
|
|
27911
|
+
* Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
|
|
27912
|
+
* This property is set to true by default.
|
|
27912
27913
|
* @default true
|
|
27913
27914
|
*/
|
|
27914
27915
|
_this.enableAccessibility = true;
|
|
@@ -28907,6 +28908,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28907
28908
|
params.url = targetUrl.href;
|
|
28908
28909
|
}
|
|
28909
28910
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(params);
|
|
28911
|
+
// Delete auth token for static assets to allow AFD caching
|
|
28912
|
+
this._deleteAuthTokenForStaticAssets(params);
|
|
28910
28913
|
}
|
|
28911
28914
|
};
|
|
28912
28915
|
/**
|
|
@@ -28934,6 +28937,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28934
28937
|
requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
|
|
28935
28938
|
}
|
|
28936
28939
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
28940
|
+
// Delete auth token for static assets to allow AFD caching
|
|
28941
|
+
this._deleteAuthTokenForStaticAssets(requestParams);
|
|
28937
28942
|
fetchOptions = {
|
|
28938
28943
|
method: "GET",
|
|
28939
28944
|
mode: "cors",
|
|
@@ -28956,19 +28961,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
28956
28961
|
});
|
|
28957
28962
|
};
|
|
28958
28963
|
/**
|
|
28959
|
-
*
|
|
28964
|
+
* Delete auth token for static assets to allow AFD caching.
|
|
28960
28965
|
*/
|
|
28961
|
-
StyleManager.
|
|
28962
|
-
|
|
28963
|
-
|
|
28964
|
-
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
28966
|
+
StyleManager.prototype._deleteAuthTokenForStaticAssets = function (params) {
|
|
28967
|
+
// The following resources are considered as static assets.
|
|
28968
|
+
// StyleSet /styling/styles
|
|
28969
|
+
// Style /styling/styles/*
|
|
28970
|
+
// Thumbnail /styling/styles/*/thumbnail.png
|
|
28971
|
+
// Sprite PNG /styling/sprites/*/sprite@2x.png
|
|
28972
|
+
// Sprite JSON /styling/sprites/*/sprite@2x.json
|
|
28973
|
+
// Glyph /styling/glyphs/*/0-255.pbf
|
|
28974
|
+
if (params.url.startsWith("https://" + this.serviceOptions.staticAssetsDomain + "/" + constants.stylePath)) {
|
|
28975
|
+
delete params.headers[constants.msClientIdHeaderName];
|
|
28976
|
+
delete params.headers[constants.authorizationHeaderName];
|
|
28970
28977
|
}
|
|
28971
|
-
return hash;
|
|
28972
28978
|
};
|
|
28973
28979
|
return StyleManager;
|
|
28974
28980
|
}());
|
|
@@ -30160,7 +30166,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
30160
30166
|
this.dispose();
|
|
30161
30167
|
};
|
|
30162
30168
|
/**
|
|
30163
|
-
* Removes all
|
|
30169
|
+
* Removes all sources, layers, markers, and popups from the map.
|
|
30164
30170
|
* User added images are preserved.
|
|
30165
30171
|
*/
|
|
30166
30172
|
Map.prototype.clear = function () {
|