Allow your user to create and provide the map with one or more custom styles for vector map tiles.
Modify default TomTom style
The best way to create a custom style is to modify the default TomTom style for vector maps using the Maputnik editor.
You can find the json map style in the resources directory.
The tutorial on how to modify the style is available for all Maps SDKs (for Android, iOS and Web) here link.
Note, that after step 9 of the linked tutorial, you need to save the json file and place it in resources directory of your app project.
Provide your style
You can provide an external map style file on the server and provide the URL. Sprites and fonts
should be stored locally in the application. Currently, we don’t support loading resources and fonts
from a server.
Sample use case: You want to display a night styled map at night or in a tunnel.
To change the style of the map:
NSString* customStyle = [[NSBundle mainBundle] pathForResource:@"style" ofType:@"json"]; [self.mapView setStylePath:customStyle];
Night custom style