Added Arabic, Portuguese, and Simplified Chinese to the list of languages with specialized fields in the Mapbox Streets source. Rely on NSBundle to select the most appropriate locale based on the user’s preferred languages.
16 lines
373 B
Objective-C
16 lines
373 B
Objective-C
#import <Mapbox/Mapbox.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface MGLVectorSource (MBXAdditions)
|
|
|
|
+ (NSString *)preferredMapboxStreetsLanguage;
|
|
|
|
- (NS_DICTIONARY_OF(NSString *, NSString *) *)localizedKeysByKeyForPreferredLanguage:(nullable NSString *)preferredLanguage;
|
|
|
|
@property (nonatomic, readonly, getter=isMapboxStreets) BOOL mapboxStreets;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|