Package globus.glmap
Class GLMapLocaleSettings
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapLocaleSettings
Sets language priority for localized map labels and unit preferences.
Following map languages is included in vector map data:
native - native language for country or region
ar - Arabic
be - Belarusian
cs - Czech
da - Danish
de - German
en - English
es - Spanish
fr - French
it - Italian
ja - Japanese
ko - Korean
nl - Dutch
pl - Polish
pt - Portuguese
ru - Russian
sv - Swedish
uk - Ukrainian
zh - Chinese
See Multilingual names in OpenStreetMap for more information.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor sets language order to[Locale.getDefault().getLanguage(), "native"]and unit system toGLMapLocaleSettings.UnitSystem.International.GLMapLocaleSettings(String[] order, int unitSystem) Constructor with defined order of languages -
Method Summary
Modifier and TypeMethodDescriptionList of languages stored inside map data and supported by frameworkMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Field Details
-
order
Order of languages -
unitSystem
public final int unitSystemUnit system
-
-
Constructor Details
-
GLMapLocaleSettings
public GLMapLocaleSettings()Default constructor sets language order to[Locale.getDefault().getLanguage(), "native"]and unit system toGLMapLocaleSettings.UnitSystem.International. -
GLMapLocaleSettings
Constructor with defined order of languages- Parameters:
order- order of languages to check localizationunitSystem- unit system
-
-
Method Details
-
getValidLanguages
List of languages stored inside map data and supported by framework- Returns:
- Set of valid languages
-