GLMapLocaleSettings


@interface GLMapLocaleSettings : NSObject

GLMapLocaleSettings is used to set language order to all GLMapView objects.

For each label on map framework checks translated names in order set by -initWithLocalesOrder:, if no translated label is available - native name is used.

Following map languages is included in vector map data

  • native - native language in for country or region
  • en - English
  • de - German
  • es - Spanish
  • fr - French
  • it - Italian
  • ja - Japanese
  • nl - Dutch
  • ru - Russan
  • zh - Chinese
  • uk - Urkrainian
  • be - Belarusian

Check Multilingual names in OpenStreetMap for more information.

  • Declaration

    Objective-C

    + (GLMapLocaleSettings *_Nonnull)systemSettings;

    Return Value

    Settings object gets values from +[NSLocale preferredLanguages] to set order of locales

  • Sets of supported map languages

    Declaration

    Objective-C

    + (NSSet<NSString *> *_Nonnull)supportedLocales;

    Return Value

    Returns language codes supported by framework

  • Declaration

    Objective-C

    + (BOOL)isLocaleSupported:(NSString *_Nonnull)locale;

    Return Value

    Returns YES if mapLanguage is among supported languages

  • Creates instance of GLMapLocaleSettings with given order of locales

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithLocalesOrder:
        (NSArray<NSString *> *_Nullable)localesOrder;

    Parameters

    localesOrder

    Ordered array of language codes

    Return Value

    New locale settings object