setLanguage

abstract fun setLanguage(language: Locale)

Sets map language. If the requested locale is unsupported, the map falls back to the NGT (Neutral Ground Truth); this means official languages for all regions in local scripts (if available).

Note: the locale pattern should be an exact match to the one listed in supported languages. For example, correct ways of creating locale for French language:

Locale("fr", "FR")
Locale.forLanguageTag("fr-FR")
Locale.FRANCE

Parameters

language

Map preferred display language.

See also