[Answered ]-How to save and show Mapbox directions?

2👍

Without the full code it’s kind of hard to answer but my first guess is that you didn’t load the routing plugin’s assets or not in the proper order (first the Leaflet script then the routing plugin, the other way around doesn’t work):

<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="leaflet-routing-machine.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="leaflet-routing-machine.js"></script>
👤iH8

Leave a comment