Switching Tile Servers
If you have access tokens for TomTom and NextBillion.ai map tiles, you can switch the active tile server using the APIs below.
Enum
Default: The SDK uses TomTom as the default tile service provider.
Set at App Initialization
Specify the desired tile server and the corresponding access token during SDK initialization (e.g., in your Application):
Make sure the accessToken matches the selected provider; tokens are not interchangeable across providers.
Runtime Switching
To switch the tile server at runtime, use setWellKnownTileServer:
Recommendations
- Scope:
setWellKnownTileServeris a global setting. Newly created map instances will use the new server. - Existing maps: If existing
MapView/NextbillionMapinstances doesn’t refresh automatically, re-apply style or recreate the map to fetch tiles from the new source. - Caching & loading: After switching, you may briefly see mixed or blank tiles while resources reload.