azure-maps-control 2.3.4 → 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.
@@ -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.4";
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.
@@ -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
- * default: true
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;
@@ -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.4";
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: "search/address/reverse/json",
59653
- queryParams: __assign$4({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
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.addresses && r.addresses.length > 0) {
60856
- if (r.addresses[0].address) {
60857
- var a = r.addresses[0].address;
60858
- if (a.country) {
60859
- info.country = a.country;
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.countrySubdivision) {
60868
- info.state = a.countrySubdivision;
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.municipality) {
60877
- info.city = a.municipality;
60878
- MapViewDescriptor._labelCache.cache(info.state, {
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.streetNameAndNumber) {
60886
- info.road = a.streetNameAndNumber;
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
  }
@@ -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
- * default: true
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;