Switching the Tile Server
If you have access tokens for both TomTom and NextBillion MapTile, you can choose which tile server the SDK uses.
Enum
1
typedef NS_ENUM(NSUInteger, NGLWellKnownTileServer) {
3
* NextBillion MapTile tile server
5
* Use this type when your access token only supports NextBillion MapTile services.
6
* NextBillion MapTile provides high-quality vector tiles with global coverage.
7
* Requires a NextBillion MapTile API key for authentication.
12
* NextBillion TomTom tile server
14
* Use this type when your access token supports NextBillion TomTom mapping services.
15
* NextBillion provides mapping services powered by TomTom’s infrastructure.
16
* Offers global coverage with high performance and reliability.
Set the Tile Server at App Launch
Configure tile server in your app entry point (for example, AppDelegate).
Swift
2
_ application: UIApplication,
3
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
6
NGLAccountManager.useWellKnownTileServer(.mapTiler)
Objective-C
2
- (BOOL)application:(UIApplication *)application
3
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
4
// Switch to NextBillion MapTiler at startup
5
[NGLAccountManager useWellKnownTileServer:NGLMapTiler];