azure-maps-control 3.7.4 → 4.0.0-preview.2

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.
@@ -52309,7 +52309,7 @@ uniform ${precision} ${type} u_${name};
52309
52309
  return UserAgent;
52310
52310
  }());
52311
52311
 
52312
- var version = "3.7.4";
52312
+ var version = "4.0.0-preview.2";
52313
52313
 
52314
52314
  /**
52315
52315
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -52716,7 +52716,7 @@ uniform ${precision} ${type} u_${name};
52716
52716
  }
52717
52717
 
52718
52718
  var defaultView;
52719
- var defaultLanguage = "NGT";
52719
+ var defaultLanguage = "auto";
52720
52720
  var defaultSessionId = uuid();
52721
52721
  var defaultDomain = env.domain;
52722
52722
  var defaultStaticAssetsDomain = env.staticAssetsDomain;
@@ -52789,10 +52789,12 @@ uniform ${precision} ${type} u_${name};
52789
52789
  }
52790
52790
  /**
52791
52791
  * Gets the default language that was provided.
52792
- * If not previously set the default value is `"NGT"`.
52792
+ * If not previously set the default value is `"auto"`, which resolves to the browser's configured language.
52793
52793
  */
52794
52794
  function getLanguage() {
52795
- return defaultLanguage;
52795
+ // The raw value (which may be the "auto" sentinel) is resolved to a supported
52796
+ // culture code here, so this is the single place where resolution happens.
52797
+ return Localizer.getCode(defaultLanguage);
52796
52798
  }
52797
52799
  /**
52798
52800
  * Gets the default session id that was provided.
@@ -52917,7 +52919,9 @@ uniform ${precision} ${type} u_${name};
52917
52919
  * @param language The new default language. If set to "auto", the browser's configured language will be used.
52918
52920
  */
52919
52921
  function setLanguage(language) {
52920
- defaultLanguage = Localizer.getCode(language);
52922
+ // Store the value as provided (including the "auto" sentinel) and let getLanguage
52923
+ // resolve it on read. This keeps a single resolution point and lets "auto" stay dynamic.
52924
+ defaultLanguage = language;
52921
52925
  hasSetLanguage = true;
52922
52926
  }
52923
52927
  /**
@@ -58583,7 +58587,7 @@ uniform ${precision} ${type} u_${name};
58583
58587
  * @name has
58584
58588
  * @memberOf SetCache
58585
58589
  * @param {*} value The value to search for.
58586
- * @returns {number} Returns `true` if `value` is found, else `false`.
58590
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
58587
58591
  */
58588
58592
 
58589
58593
  function setCacheHas$1(value) {