Skip to content

Commit 00dbf1a

Browse files
committed
add @experimental tag on map language and worldview setters/getters
1 parent 75cf1de commit 00dbf1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ui/map.js

+4
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ class Map extends Camera {
10561056
* Returns the code for the map's language which is used for translating map labels.
10571057
*
10581058
* @returns {string} Returns the map's language code.
1059+
* @experimental
10591060
* @example
10601061
* const language = map.getLanguage();
10611062
*/
@@ -1068,6 +1069,7 @@ class Map extends Camera {
10681069
*
10691070
* @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`.
10701071
* @returns {Map} Returns itself to allow for method chaining.
1072+
* @experimental
10711073
* @example
10721074
* map.setLanguage('es');
10731075
*/
@@ -1099,6 +1101,7 @@ class Map extends Camera {
10991101
* Returns the code for the map's worldview.
11001102
*
11011103
* @returns {string} Returns the map's worldview code.
1104+
* @experimental
11021105
* @example
11031106
* const worldview = map.getWorldview();
11041107
*/
@@ -1111,6 +1114,7 @@ class Map extends Camera {
11111114
*
11121115
* @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.
11131116
* @returns {Map} Returns itself to allow for method chaining.
1117+
* @experimental
11141118
* @example
11151119
* map.setWorldView('JP');
11161120
*/

0 commit comments

Comments
 (0)