Mapbox GL Directions
A full featured directions plugin for mapbox-gl-js using the Mapbox Directions API.
Usage
var mapboxgl = ;var MapboxDirections = ; var directions = accessToken: 'YOUR-MAPBOX-ACCESS-TOKEN' unit: 'metric' profile: 'cycling'; var map = container: 'map' style: 'mapbox://styles/mapbox/streets-v9'; map;
Live example: https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
Deeper dive
See API.md for complete reference.
Contributing
See CONTRIBUTING.md.