Use the mapbox-gl-directions plugin to show results from the Mapbox Directions API.
See the example: https://docs.mapbox.com//mapbox-gl-js/example/mapbox-gl-directions/
A Pen by maxschnelle on CodePen.
| <div id="map"></div> |
| <div id="map"></div> |
| <div id="map"></div> |
| <div id="map"></div> |
| <title>MaxMap</title> | |
| <div id="map"></div> | |
| <div id="distance" class="distance-container"></div> |
| <div lang="de-de"></div> | |
| <div id="map"></div> | |
| <div id="distance" class="distance-container"></div> |
| <div id="map"></div> |