Skip to content

Commit

Permalink
add @experimental tag on map language and worldview setters/getters
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin committed May 24, 2022
1 parent 75cf1de commit 00dbf1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ class Map extends Camera {
* Returns the code for the map's language which is used for translating map labels.
*
* @returns {string} Returns the map's language code.
* @experimental
* @example
* const language = map.getLanguage();
*/
Expand All @@ -1068,6 +1069,7 @@ class Map extends Camera {
*
* @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`.
* @returns {Map} Returns itself to allow for method chaining.
* @experimental
* @example
* map.setLanguage('es');
*/
Expand Down Expand Up @@ -1099,6 +1101,7 @@ class Map extends Camera {
* Returns the code for the map's worldview.
*
* @returns {string} Returns the map's worldview code.
* @experimental
* @example
* const worldview = map.getWorldview();
*/
Expand All @@ -1111,6 +1114,7 @@ class Map extends Camera {
*
* @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.
* @returns {Map} Returns itself to allow for method chaining.
* @experimental
* @example
* map.setWorldView('JP');
*/
Expand Down

0 comments on commit 00dbf1a

Please sign in to comment.