diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-12-23 17:47:51 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-04 21:39:08 -0800 |
commit | 0fac9d5674453f587a4c86f71b06da668f8cae27 (patch) | |
tree | 65aa1e2ab5a470c897befa375e43b7ae407505b8 /platform/macos/docs/guides | |
parent | 50ae3eb3c0985567a0f86d08337d7cb8bed79a6c (diff) | |
download | qtlocation-mapboxgl-0fac9d5674453f587a4c86f71b06da668f8cae27.tar.gz |
[ios, macos] Added guide for working with GeoJSON
Diffstat (limited to 'platform/macos/docs/guides')
-rw-r--r-- | platform/macos/docs/guides/Info.plist Keys.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/macos/docs/guides/Info.plist Keys.md b/platform/macos/docs/guides/Info.plist Keys.md new file mode 100644 index 0000000000..f61ad8c7a7 --- /dev/null +++ b/platform/macos/docs/guides/Info.plist Keys.md @@ -0,0 +1,17 @@ +# Info.plist Keys + +The Mapbox macOS SDK supports custom `Info.plist` keys in your application in order to configure various settings. + +## MGLMapboxAccessToken + +Set the [Mapbox access token](https://www.mapbox.com/help/define-access-token/) to be used by all instances of `MGLMapView` in the current application. + +Mapbox-hosted vector tiles and styles require an API access token, which you can obtain from the [Mapbox account page](https://www.mapbox.com/studio/account/tokens/). 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. + +As an alternative, you can use `+[MGLAccountManager setAccessToken:]` to set a token in code. See [our guide](https://www.mapbox.com/help/ios-private-access-token/) for some tips on keeping access tokens in open source code private. + +## MGLMapboxAPIBaseURL + +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 `https://api.mapbox.com`. |