Draw lines and paths connecting coordinates on the map.
Use MapRoute to draw lines connecting a series of coordinates. Perfect for showing directions, trails, or any path between points.
Draw a route with numbered stop markers along the path.
Display multiple route options and let users select between them. This example fetches real driving directions from the OSRM API. Click on a route or use the buttons to switch.