setWorldview static method
- String? worldview
Sets the worldview preference (ISO 3166-1 alpha-2 country code).
Applies to every map, including the ones already on screen, whose sources reload. On Android and iOS, an invalid worldview is reported through MapWidget.onMapLoadErrorListener. On web, Mapbox GL JS does not surface that through the same listener.
Implementation
static void setWorldview(String? worldview) => _impl.setWorldview(worldview);