You can display a route on the map and customize its origin and destination icons. It is also
possible to specify the fill color, outline color, and width of the route.
Sample use case: When you add the route, you would like to highlight the starting and the
destination points. Also you would like to plan several routes simultaneously with different origin
and destination points and use different icons.
Prerequisites:
TTMapView: The *mapView object was created and configured. Route coordinates are prepared.
Origin and destination icons customization
If you need to customize the start and destination icons, you should create the icons through the
UIImage class.
The icon can be created in the following ways:
iconStart =UIImage(named:"Start")!
iconEnd =UIImage(named:"End")!
self.iconStart = [UIImage imageNamed:@"Start"]
self.iconEnd = [UIImage imageNamed:@"End"];
Basic
Route customization
You can create a route with custom style properties like fill color, outline color, and width.
First, you need to create a RouteStyle object: