azure-maps-control 3.0.2 → 3.0.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/ReadMe.md +2 -2
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +23 -3
- package/dist/atlas-core-bare.js +41 -20
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +632 -221
- package/dist/atlas-core.js +650 -238
- package/dist/atlas-core.min.js +4 -4
- package/dist/atlas-esm.js +117160 -0
- package/dist/atlas-esm.min.js +108 -0
- package/dist/atlas.js +650 -238
- package/dist/atlas.min.js +4 -4
- package/package.json +5 -3
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +2 -2
|
@@ -263,7 +263,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
263
263
|
return Url;
|
|
264
264
|
}());
|
|
265
265
|
|
|
266
|
-
var version = "3.0.
|
|
266
|
+
var version = "3.0.3";
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
269
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -815,6 +815,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
815
815
|
grid.classList.add("hidden-accessible-element");
|
|
816
816
|
}
|
|
817
817
|
});
|
|
818
|
+
// Dismiss the grid when esc key is pressed on the reset button and the tooltip is not visible
|
|
819
|
+
rotationButton.addEventListener("keydown", function (event) {
|
|
820
|
+
if ((event.key === "Escape" || event.key === "Esc") &&
|
|
821
|
+
(container === null || container === void 0 ? void 0 : container.classList.contains("in-use")) &&
|
|
822
|
+
(tooltip === null || tooltip === void 0 ? void 0 : tooltip.style.display) === "none") {
|
|
823
|
+
event.stopPropagation();
|
|
824
|
+
container.classList.remove("in-use");
|
|
825
|
+
grid.classList.add("hidden-accessible-element");
|
|
826
|
+
}
|
|
827
|
+
});
|
|
818
828
|
// If the control's position will require inverting the element order
|
|
819
829
|
// add them in the opposite order to preserve tabindex.
|
|
820
830
|
if (options && CompassControl.InvertOrderPositions.includes(options.position)) {
|
|
@@ -1076,6 +1086,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1076
1086
|
grid.classList.add("hidden-accessible-element");
|
|
1077
1087
|
}
|
|
1078
1088
|
});
|
|
1089
|
+
// Dismiss the grid when esc key is pressed on the reset button and the tooltip is not visible
|
|
1090
|
+
pitchButton.addEventListener("keydown", function (event) {
|
|
1091
|
+
if ((event.key === "Escape" || event.key === "Esc") &&
|
|
1092
|
+
(container === null || container === void 0 ? void 0 : container.classList.contains("in-use")) &&
|
|
1093
|
+
(tooltip === null || tooltip === void 0 ? void 0 : tooltip.style.display) === "none") {
|
|
1094
|
+
event.stopPropagation();
|
|
1095
|
+
container.classList.remove("in-use");
|
|
1096
|
+
grid.classList.add("hidden-accessible-element");
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1079
1099
|
// If the control's position will require inverting the element order
|
|
1080
1100
|
// add them in the opposite order to preserve tabindex.
|
|
1081
1101
|
if (options && PitchControl.INVERT_ORDER_POSITIONS.includes(options.position)) {
|
|
@@ -21298,8 +21318,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
21298
21318
|
*/
|
|
21299
21319
|
_this.styleSet = undefined;
|
|
21300
21320
|
/**
|
|
21301
|
-
* Enable accessibility
|
|
21302
|
-
*
|
|
21321
|
+
* Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
|
|
21322
|
+
* This property is set to true by default.
|
|
21303
21323
|
* @default true
|
|
21304
21324
|
*/
|
|
21305
21325
|
_this.enableAccessibility = true;
|
package/dist/atlas-core-bare.js
CHANGED
|
@@ -263,7 +263,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
263
263
|
return Url;
|
|
264
264
|
}());
|
|
265
265
|
|
|
266
|
-
var version$2 = "3.0.
|
|
266
|
+
var version$2 = "3.0.3";
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
269
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -815,6 +815,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
815
815
|
grid.classList.add("hidden-accessible-element");
|
|
816
816
|
}
|
|
817
817
|
});
|
|
818
|
+
// Dismiss the grid when esc key is pressed on the reset button and the tooltip is not visible
|
|
819
|
+
rotationButton.addEventListener("keydown", function (event) {
|
|
820
|
+
if ((event.key === "Escape" || event.key === "Esc") &&
|
|
821
|
+
(container === null || container === void 0 ? void 0 : container.classList.contains("in-use")) &&
|
|
822
|
+
(tooltip === null || tooltip === void 0 ? void 0 : tooltip.style.display) === "none") {
|
|
823
|
+
event.stopPropagation();
|
|
824
|
+
container.classList.remove("in-use");
|
|
825
|
+
grid.classList.add("hidden-accessible-element");
|
|
826
|
+
}
|
|
827
|
+
});
|
|
818
828
|
// If the control's position will require inverting the element order
|
|
819
829
|
// add them in the opposite order to preserve tabindex.
|
|
820
830
|
if (options && CompassControl.InvertOrderPositions.includes(options.position)) {
|
|
@@ -1076,6 +1086,16 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1076
1086
|
grid.classList.add("hidden-accessible-element");
|
|
1077
1087
|
}
|
|
1078
1088
|
});
|
|
1089
|
+
// Dismiss the grid when esc key is pressed on the reset button and the tooltip is not visible
|
|
1090
|
+
pitchButton.addEventListener("keydown", function (event) {
|
|
1091
|
+
if ((event.key === "Escape" || event.key === "Esc") &&
|
|
1092
|
+
(container === null || container === void 0 ? void 0 : container.classList.contains("in-use")) &&
|
|
1093
|
+
(tooltip === null || tooltip === void 0 ? void 0 : tooltip.style.display) === "none") {
|
|
1094
|
+
event.stopPropagation();
|
|
1095
|
+
container.classList.remove("in-use");
|
|
1096
|
+
grid.classList.add("hidden-accessible-element");
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1079
1099
|
// If the control's position will require inverting the element order
|
|
1080
1100
|
// add them in the opposite order to preserve tabindex.
|
|
1081
1101
|
if (options && PitchControl.INVERT_ORDER_POSITIONS.includes(options.position)) {
|
|
@@ -17609,8 +17629,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
17609
17629
|
var domain = this.map.getServiceOptions().domain;
|
|
17610
17630
|
var urlOptions = {
|
|
17611
17631
|
domain: domain,
|
|
17612
|
-
path: "
|
|
17613
|
-
queryParams: __assign$6({ "api-version": "
|
|
17632
|
+
path: "reverseGeocode",
|
|
17633
|
+
queryParams: __assign$6({ "api-version": "2023-06-01", "coordinates": "".concat(normalizeLongitude(options.position[0]), ",").concat(normalizeLatitude(options.position[1])) }, (options.style.view && { view: options.style.view })),
|
|
17634
|
+
headers: {
|
|
17635
|
+
"Accept-Language": options.style.language
|
|
17636
|
+
}
|
|
17614
17637
|
};
|
|
17615
17638
|
return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
|
|
17616
17639
|
};
|
|
@@ -18816,12 +18839,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
18816
18839
|
position: cam.center,
|
|
18817
18840
|
style: style
|
|
18818
18841
|
}).then(function (r) {
|
|
18842
|
+
var _a, _b, _c;
|
|
18819
18843
|
var info = {};
|
|
18820
|
-
if (r && r.
|
|
18821
|
-
if (r.
|
|
18822
|
-
var a = r.
|
|
18823
|
-
if (a.
|
|
18824
|
-
info.country = a.
|
|
18844
|
+
if (r && r.features && r.features.length > 0) {
|
|
18845
|
+
if ((_b = (_a = r.features[0]) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.address) {
|
|
18846
|
+
var a = r.features[0].properties.address;
|
|
18847
|
+
if (a.countryRegion) {
|
|
18848
|
+
info.country = a.countryRegion.name;
|
|
18825
18849
|
MapViewDescriptor._labelCache.cache(info.country, {
|
|
18826
18850
|
source: [],
|
|
18827
18851
|
labelType: "country",
|
|
@@ -18829,8 +18853,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
18829
18853
|
minZoom: 0
|
|
18830
18854
|
}, cam.center, style.language);
|
|
18831
18855
|
}
|
|
18832
|
-
if (a.
|
|
18833
|
-
info.state = a.
|
|
18856
|
+
if (a.adminDistricts) {
|
|
18857
|
+
info.state = (_c = a.adminDistricts[0]) === null || _c === void 0 ? void 0 : _c.shortName;
|
|
18834
18858
|
MapViewDescriptor._labelCache.cache(info.state, {
|
|
18835
18859
|
source: [],
|
|
18836
18860
|
labelType: "state",
|
|
@@ -18838,20 +18862,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
18838
18862
|
minZoom: 4
|
|
18839
18863
|
}, cam.center, style.language);
|
|
18840
18864
|
}
|
|
18841
|
-
if (a.
|
|
18842
|
-
info.city = a.
|
|
18843
|
-
MapViewDescriptor._labelCache.cache(info.
|
|
18865
|
+
if (a.locality) {
|
|
18866
|
+
info.city = a.locality;
|
|
18867
|
+
MapViewDescriptor._labelCache.cache(info.city, {
|
|
18844
18868
|
source: [],
|
|
18845
18869
|
labelType: "city",
|
|
18846
18870
|
radius: 1000,
|
|
18847
18871
|
minZoom: 10
|
|
18848
18872
|
}, cam.center, style.language);
|
|
18849
18873
|
}
|
|
18850
|
-
if (a.
|
|
18851
|
-
info.road = a.
|
|
18852
|
-
}
|
|
18853
|
-
else if (a.street) {
|
|
18854
|
-
info.road = a.street;
|
|
18874
|
+
if (a.addressLine) {
|
|
18875
|
+
info.road = a.addressLine;
|
|
18855
18876
|
}
|
|
18856
18877
|
}
|
|
18857
18878
|
}
|
|
@@ -44902,8 +44923,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
44902
44923
|
*/
|
|
44903
44924
|
_this.styleSet = undefined;
|
|
44904
44925
|
/**
|
|
44905
|
-
* Enable accessibility
|
|
44906
|
-
*
|
|
44926
|
+
* Enable the accessibility feature to provide screen reader support for users who have difficulty visualizing the web application.
|
|
44927
|
+
* This property is set to true by default.
|
|
44907
44928
|
* @default true
|
|
44908
44929
|
*/
|
|
44909
44930
|
_this.enableAccessibility = true;
|