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.
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
The icon can be created in the following ways:
self.iconStart = [UIImage imageNamed:@"Start"]
self.iconEnd = [UIImage imageNamed:@"End"];
You can create a route with custom style properties like fill color, outline color, and width.
First, you need to create a RouteStyle object: