Skip to content

Commit

Permalink
Mark worldview and language configs as experimental (#451) (#471)
Browse files Browse the repository at this point in the history
* Mark worldview and language configs as experimental

* Update changelog formatting
  • Loading branch information
pjleonard37 authored Apr 3, 2024
1 parent 15f4fc0 commit 992465c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### 1.1.0-rc.1

* Update MapboxMaps version to 11.3.0-rc.1. For platform-specific updates see: [iOS](https://github.com/mapbox/mapbox-maps-ios/releases/tag/v11.3.0-rc.1)& [Android](https://github.com/mapbox/mapbox-maps-android/releases/tag/v11.3.0-rc.1)
* Mark `MapboxMapsOptions.get/setWorldview()` and `MapboxMapsOptions.get/setLanguage()` as experimental.

### 1.0.0

Expand Down
4 changes: 4 additions & 0 deletions lib/src/mapbox_maps_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,29 @@ final class MapboxMapsOptions {
/// Current worldview preference for Mapbox products.
///
/// Represented as a ISO 3166-1 alpha-2 country code.
@experimental
static Future<String?> getWorldview() {
return _options.getWorldview();
}

/// Set preferred worldview for Mapbox products as a ISO 3166-1 alpha-2 country code.
///
/// Learn more about Mapbox worldviews at https://docs.mapbox.com/help/glossary/worldview/#available-worldviews.
@experimental
static void setWorldview(String? worldview) {
_options.setWorldview(worldview);
}

/// Current language preference for Mapbox products.
///
/// Represented as a bcp-47 tag.
@experimental
static Future<String?> getLanguage() {
return _options.getLanguage();
}

/// Set preferred language for Mapbox products with a bcp-47 tag.
@experimental
static void setLanguage(String? language) {
_options.setLanguage(language);
}
Expand Down

0 comments on commit 992465c

Please sign in to comment.