You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/ui/map.js
+4
Original file line number
Diff line number
Diff line change
@@ -1056,6 +1056,7 @@ class Map extends Camera {
1056
1056
* Returns the code for the map's language which is used for translating map labels.
1057
1057
*
1058
1058
* @returns {string} Returns the map's language code.
1059
+
* @experimental
1059
1060
* @example
1060
1061
* const language = map.getLanguage();
1061
1062
*/
@@ -1068,6 +1069,7 @@ class Map extends Camera {
1068
1069
*
1069
1070
* @param {string} language A string representing the desired language. `undefined` or `null` will remove the current map language and reset the map to the default language as determined by `window.navigator.language`.
1070
1071
* @returns {Map} Returns itself to allow for method chaining.
1072
+
* @experimental
1071
1073
* @example
1072
1074
* map.setLanguage('es');
1073
1075
*/
@@ -1099,6 +1101,7 @@ class Map extends Camera {
1099
1101
* Returns the code for the map's worldview.
1100
1102
*
1101
1103
* @returns {string} Returns the map's worldview code.
1104
+
* @experimental
1102
1105
* @example
1103
1106
* const worldview = map.getWorldview();
1104
1107
*/
@@ -1111,6 +1114,7 @@ class Map extends Camera {
1111
1114
*
1112
1115
* @param {string} worldview A string representing the desired worldview. `undefined` or `null` will cause the map to fall back to the TileJSON's default worldview.
1113
1116
* @returns {Map} Returns itself to allow for method chaining.
0 commit comments