The Mapbox Maps SDK for iOS supports custom
Info.plist keys in your application in order to configure various settings.
Mapbox-hosted vector tiles and styles require an API access token, which you can obtain from the Mapbox account page. Access tokens associate requests to Mapbox’s vector tile and style APIs with your Mapbox account. They also deter other developers from using your styles without your permission.
Use this key if you need to customize the API base URL used throughout the SDK. If unset, the default Mapbox API is used.
The default value is
If you have implemented custom opt-out of Mapbox Telemetry within the user interface of your app, use this key to disable the built-in check for opt-out support. See this guide for more details.
The name of the font family to use for client-side text rendering of CJK ideographs.
MGLIdeographicFontFamilyName in your containing application’s Info.plist to font family name(s) that will be available at run time, such as “PingFang TC” or “Marker Felt”. This plist key accepts:
A string value of a single font family name.
An array of font family names. Fonts will be used in the defined order, eventually falling back to default system font if none are available.
A boolean value
NOto disable client-side rendering of CJK glyphs — remote fonts specified in your style will be used instead.
If this key is set to YES (
true), collision detection is performed only between symbol style layers based on the same source, as in versions 2.0–3.7 of the Mapbox Maps SDK for iOS. In other words, symbols in an
MGLSymbolStyleLayer based on one source (for example, an
MGLShapeSource) may overlap with symbols in another layer that is based on a different source (such as the Mapbox Streets source). This is the case regardless of the
Beginning in version 4.0, the SDK also performs collision detection between style layers based on different sources by default. For the default behavior, omit the
MGLCollisionBehaviorPre4_0 key or set it to NO (
This property may also be set using
[[NSUserDefaults standardUserDefaults] setObject:@(YES) forKey:@"MGLCollisionBehaviorPre4_0"]; it will override any value specified in the