azure-maps-control 4.0.0-preview.1 → 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.
- package/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +10 -6
- package/dist/atlas-core-bare.js +1402 -844
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +10 -6
- package/dist/atlas-core.js +1401 -843
- package/dist/atlas-core.min.js +3 -3
- package/dist/atlas-esm.js +1934 -1089
- package/dist/atlas-esm.min.js +3 -3
- package/dist/atlas.js +1934 -1089
- package/dist/atlas.min.js +2 -2
- package/package.json +6 -4
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +1 -1
|
@@ -978,7 +978,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
978
978
|
return UserAgent;
|
|
979
979
|
}());
|
|
980
980
|
|
|
981
|
-
var version = "4.0.0-preview.
|
|
981
|
+
var version = "4.0.0-preview.2";
|
|
982
982
|
|
|
983
983
|
/**
|
|
984
984
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -1385,7 +1385,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1385
1385
|
}
|
|
1386
1386
|
|
|
1387
1387
|
var defaultView;
|
|
1388
|
-
var defaultLanguage = "
|
|
1388
|
+
var defaultLanguage = "auto";
|
|
1389
1389
|
var defaultSessionId = uuid();
|
|
1390
1390
|
var defaultDomain = env.domain;
|
|
1391
1391
|
var defaultStaticAssetsDomain = env.staticAssetsDomain;
|
|
@@ -1458,10 +1458,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1458
1458
|
}
|
|
1459
1459
|
/**
|
|
1460
1460
|
* Gets the default language that was provided.
|
|
1461
|
-
* If not previously set the default value is `"
|
|
1461
|
+
* If not previously set the default value is `"auto"`, which resolves to the browser's configured language.
|
|
1462
1462
|
*/
|
|
1463
1463
|
function getLanguage() {
|
|
1464
|
-
|
|
1464
|
+
// The raw value (which may be the "auto" sentinel) is resolved to a supported
|
|
1465
|
+
// culture code here, so this is the single place where resolution happens.
|
|
1466
|
+
return Localizer.getCode(defaultLanguage);
|
|
1465
1467
|
}
|
|
1466
1468
|
/**
|
|
1467
1469
|
* Gets the default session id that was provided.
|
|
@@ -1586,7 +1588,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
1586
1588
|
* @param language The new default language. If set to "auto", the browser's configured language will be used.
|
|
1587
1589
|
*/
|
|
1588
1590
|
function setLanguage(language) {
|
|
1589
|
-
|
|
1591
|
+
// Store the value as provided (including the "auto" sentinel) and let getLanguage
|
|
1592
|
+
// resolve it on read. This keeps a single resolution point and lets "auto" stay dynamic.
|
|
1593
|
+
defaultLanguage = language;
|
|
1590
1594
|
hasSetLanguage = true;
|
|
1591
1595
|
}
|
|
1592
1596
|
/**
|
|
@@ -7252,7 +7256,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
7252
7256
|
* @name has
|
|
7253
7257
|
* @memberOf SetCache
|
|
7254
7258
|
* @param {*} value The value to search for.
|
|
7255
|
-
* @returns {
|
|
7259
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
7256
7260
|
*/
|
|
7257
7261
|
|
|
7258
7262
|
function setCacheHas$1(value) {
|