MAP SCHEMES
You can set up the way the map will be rendered on screen using NMMapView's loadMapScheme: method which takes the name of a map color scheme as the parameter. To get full list of all available map color schemes use availableMapSchemes readonly property.
Code Block | ||||
---|---|---|---|---|
| ||||
//logs out all available map schemes names
NSArray <NSString *> *mapSchemes = [mapView availableMapSchemes];
for (NSString *scheme in mapSchemes) {
NSLog(@"%@", scheme);
}
//set current map color scheme to "Day-Pedesrian@2x"
[mapView loadMapScheme:@"Day-Pedestrian@2x"]; |
ROUTE LINE COLOR
You also can set up the color the route line will be rendered with using routeLineColor property.
Code Block | ||||
---|---|---|---|---|
| ||||
//sets route line color to red
mapView.routeLineColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:1.f]; |