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
package/dist/atlas-core-snr.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.5";
|
|
43481
43481
|
|
|
43482
43482
|
/**
|
|
43483
43483
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -61553,7 +61553,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
61553
61553
|
return undefined;
|
|
61554
61554
|
};
|
|
61555
61555
|
/**
|
|
61556
|
-
* Removes all
|
|
61556
|
+
* Removes all layers from the map.
|
|
61557
61557
|
*/
|
|
61558
61558
|
LayerManager.prototype.clear = function () {
|
|
61559
61559
|
for (var layerIndexIndex = this.layerIndex.length - 1; layerIndexIndex >= 0; layerIndexIndex--) {
|
|
@@ -63379,8 +63379,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
63379
63379
|
*/
|
|
63380
63380
|
_this.styleSet = undefined;
|
|
63381
63381
|
/**
|
|
63382
|
-
* Enable accessibility
|
|
63383
|
-
*
|
|
63382
|
+
* Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
|
|
63383
|
+
* This property is set to true by default.
|
|
63384
63384
|
* @default true
|
|
63385
63385
|
*/
|
|
63386
63386
|
_this.enableAccessibility = true;
|
|
@@ -64379,6 +64379,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
64379
64379
|
params.url = targetUrl.href;
|
|
64380
64380
|
}
|
|
64381
64381
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(params);
|
|
64382
|
+
// Delete auth token for static assets to allow AFD caching
|
|
64383
|
+
this._deleteAuthTokenForStaticAssets(params);
|
|
64382
64384
|
}
|
|
64383
64385
|
};
|
|
64384
64386
|
/**
|
|
@@ -64406,6 +64408,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
64406
64408
|
requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
|
|
64407
64409
|
}
|
|
64408
64410
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
64411
|
+
// Delete auth token for static assets to allow AFD caching
|
|
64412
|
+
this._deleteAuthTokenForStaticAssets(requestParams);
|
|
64409
64413
|
fetchOptions = {
|
|
64410
64414
|
method: "GET",
|
|
64411
64415
|
mode: "cors",
|
|
@@ -64428,19 +64432,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
64428
64432
|
});
|
|
64429
64433
|
};
|
|
64430
64434
|
/**
|
|
64431
|
-
*
|
|
64435
|
+
* Delete auth token for static assets to allow AFD caching.
|
|
64432
64436
|
*/
|
|
64433
|
-
StyleManager.
|
|
64434
|
-
|
|
64435
|
-
|
|
64436
|
-
|
|
64437
|
-
|
|
64438
|
-
|
|
64439
|
-
|
|
64440
|
-
|
|
64441
|
-
|
|
64442
|
-
|
|
64443
|
-
|
|
64437
|
+
StyleManager.prototype._deleteAuthTokenForStaticAssets = function (params) {
|
|
64438
|
+
// The following resources are considered as static assets.
|
|
64439
|
+
// StyleSet /styling/styles
|
|
64440
|
+
// Style /styling/styles/*
|
|
64441
|
+
// Thumbnail /styling/styles/*/thumbnail.png
|
|
64442
|
+
// Sprite PNG /styling/sprites/*/sprite@2x.png
|
|
64443
|
+
// Sprite JSON /styling/sprites/*/sprite@2x.json
|
|
64444
|
+
// Glyph /styling/glyphs/*/0-255.pbf
|
|
64445
|
+
if (params.url.startsWith("https://" + this.serviceOptions.staticAssetsDomain + "/" + constants.stylePath)) {
|
|
64446
|
+
delete params.headers[constants.msClientIdHeaderName];
|
|
64447
|
+
delete params.headers[constants.authorizationHeaderName];
|
|
64448
|
+
}
|
|
64444
64449
|
};
|
|
64445
64450
|
return StyleManager;
|
|
64446
64451
|
}());
|
|
@@ -65626,7 +65631,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
65626
65631
|
this.dispose();
|
|
65627
65632
|
};
|
|
65628
65633
|
/**
|
|
65629
|
-
* Removes all
|
|
65634
|
+
* Removes all sources, layers, markers, and popups from the map.
|
|
65630
65635
|
* User added images are preserved.
|
|
65631
65636
|
*/
|
|
65632
65637
|
Map.prototype.clear = function () {
|
package/dist/atlas-core.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.5";
|
|
43481
43481
|
|
|
43482
43482
|
/**
|
|
43483
43483
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -59649,8 +59649,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
59649
59649
|
var domain = this.map.getServiceOptions().domain;
|
|
59650
59650
|
var urlOptions = {
|
|
59651
59651
|
domain: domain,
|
|
59652
|
-
path: "
|
|
59653
|
-
queryParams: __assign$4({ "api-version": "
|
|
59652
|
+
path: "reverseGeocode",
|
|
59653
|
+
queryParams: __assign$4({ "api-version": "2023-06-01", "coordinates": normalizeLongitude(options.position[0]) + "," + normalizeLatitude(options.position[1]) }, (options.style.view && { view: options.style.view })),
|
|
59654
|
+
headers: {
|
|
59655
|
+
"Accept-Language": options.style.language
|
|
59656
|
+
}
|
|
59654
59657
|
};
|
|
59655
59658
|
return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
|
|
59656
59659
|
};
|
|
@@ -60851,12 +60854,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
60851
60854
|
position: cam.center,
|
|
60852
60855
|
style: style
|
|
60853
60856
|
}).then(function (r) {
|
|
60857
|
+
var _a, _b, _c;
|
|
60854
60858
|
var info = {};
|
|
60855
|
-
if (r && r.
|
|
60856
|
-
if (r.
|
|
60857
|
-
var a = r.
|
|
60858
|
-
if (a.
|
|
60859
|
-
info.country = a.
|
|
60859
|
+
if (r && r.features && r.features.length > 0) {
|
|
60860
|
+
if ((_b = (_a = r.features[0]) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.address) {
|
|
60861
|
+
var a = r.features[0].properties.address;
|
|
60862
|
+
if (a.countryRegion) {
|
|
60863
|
+
info.country = a.countryRegion.name;
|
|
60860
60864
|
MapViewDescriptor._labelCache.cache(info.country, {
|
|
60861
60865
|
source: [],
|
|
60862
60866
|
labelType: "country",
|
|
@@ -60864,8 +60868,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
60864
60868
|
minZoom: 0
|
|
60865
60869
|
}, cam.center, style.language);
|
|
60866
60870
|
}
|
|
60867
|
-
if (a.
|
|
60868
|
-
info.state = a.
|
|
60871
|
+
if (a.adminDistricts) {
|
|
60872
|
+
info.state = (_c = a.adminDistricts[0]) === null || _c === void 0 ? void 0 : _c.shortName;
|
|
60869
60873
|
MapViewDescriptor._labelCache.cache(info.state, {
|
|
60870
60874
|
source: [],
|
|
60871
60875
|
labelType: "state",
|
|
@@ -60873,20 +60877,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
60873
60877
|
minZoom: 4
|
|
60874
60878
|
}, cam.center, style.language);
|
|
60875
60879
|
}
|
|
60876
|
-
if (a.
|
|
60877
|
-
info.city = a.
|
|
60878
|
-
MapViewDescriptor._labelCache.cache(info.
|
|
60880
|
+
if (a.locality) {
|
|
60881
|
+
info.city = a.locality;
|
|
60882
|
+
MapViewDescriptor._labelCache.cache(info.city, {
|
|
60879
60883
|
source: [],
|
|
60880
60884
|
labelType: "city",
|
|
60881
60885
|
radius: 1000,
|
|
60882
60886
|
minZoom: 10
|
|
60883
60887
|
}, cam.center, style.language);
|
|
60884
60888
|
}
|
|
60885
|
-
if (a.
|
|
60886
|
-
info.road = a.
|
|
60887
|
-
}
|
|
60888
|
-
else if (a.street) {
|
|
60889
|
-
info.road = a.street;
|
|
60889
|
+
if (a.addressLine) {
|
|
60890
|
+
info.road = a.addressLine;
|
|
60890
60891
|
}
|
|
60891
60892
|
}
|
|
60892
60893
|
}
|
|
@@ -69275,7 +69276,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
69275
69276
|
return undefined;
|
|
69276
69277
|
};
|
|
69277
69278
|
/**
|
|
69278
|
-
* Removes all
|
|
69279
|
+
* Removes all layers from the map.
|
|
69279
69280
|
*/
|
|
69280
69281
|
LayerManager.prototype.clear = function () {
|
|
69281
69282
|
for (var layerIndexIndex = this.layerIndex.length - 1; layerIndexIndex >= 0; layerIndexIndex--) {
|
|
@@ -71101,8 +71102,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
71101
71102
|
*/
|
|
71102
71103
|
_this.styleSet = undefined;
|
|
71103
71104
|
/**
|
|
71104
|
-
* Enable accessibility
|
|
71105
|
-
*
|
|
71105
|
+
* Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
|
|
71106
|
+
* This property is set to true by default.
|
|
71106
71107
|
* @default true
|
|
71107
71108
|
*/
|
|
71108
71109
|
_this.enableAccessibility = true;
|
|
@@ -72101,6 +72102,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
72101
72102
|
params.url = targetUrl.href;
|
|
72102
72103
|
}
|
|
72103
72104
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(params);
|
|
72105
|
+
// Delete auth token for static assets to allow AFD caching
|
|
72106
|
+
this._deleteAuthTokenForStaticAssets(params);
|
|
72104
72107
|
}
|
|
72105
72108
|
};
|
|
72106
72109
|
/**
|
|
@@ -72128,6 +72131,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
72128
72131
|
requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
|
|
72129
72132
|
}
|
|
72130
72133
|
(_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
|
|
72134
|
+
// Delete auth token for static assets to allow AFD caching
|
|
72135
|
+
this._deleteAuthTokenForStaticAssets(requestParams);
|
|
72131
72136
|
fetchOptions = {
|
|
72132
72137
|
method: "GET",
|
|
72133
72138
|
mode: "cors",
|
|
@@ -72150,19 +72155,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
72150
72155
|
});
|
|
72151
72156
|
};
|
|
72152
72157
|
/**
|
|
72153
|
-
*
|
|
72158
|
+
* Delete auth token for static assets to allow AFD caching.
|
|
72154
72159
|
*/
|
|
72155
|
-
StyleManager.
|
|
72156
|
-
|
|
72157
|
-
|
|
72158
|
-
|
|
72159
|
-
|
|
72160
|
-
|
|
72161
|
-
|
|
72162
|
-
|
|
72163
|
-
|
|
72164
|
-
|
|
72165
|
-
|
|
72160
|
+
StyleManager.prototype._deleteAuthTokenForStaticAssets = function (params) {
|
|
72161
|
+
// The following resources are considered as static assets.
|
|
72162
|
+
// StyleSet /styling/styles
|
|
72163
|
+
// Style /styling/styles/*
|
|
72164
|
+
// Thumbnail /styling/styles/*/thumbnail.png
|
|
72165
|
+
// Sprite PNG /styling/sprites/*/sprite@2x.png
|
|
72166
|
+
// Sprite JSON /styling/sprites/*/sprite@2x.json
|
|
72167
|
+
// Glyph /styling/glyphs/*/0-255.pbf
|
|
72168
|
+
if (params.url.startsWith("https://" + this.serviceOptions.staticAssetsDomain + "/" + constants.stylePath)) {
|
|
72169
|
+
delete params.headers[constants.msClientIdHeaderName];
|
|
72170
|
+
delete params.headers[constants.authorizationHeaderName];
|
|
72171
|
+
}
|
|
72166
72172
|
};
|
|
72167
72173
|
return StyleManager;
|
|
72168
72174
|
}());
|
|
@@ -73354,7 +73360,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
73354
73360
|
this.dispose();
|
|
73355
73361
|
};
|
|
73356
73362
|
/**
|
|
73357
|
-
* Removes all
|
|
73363
|
+
* Removes all sources, layers, markers, and popups from the map.
|
|
73358
73364
|
* User added images are preserved.
|
|
73359
73365
|
*/
|
|
73360
73366
|
Map.prototype.clear = function () {
|