Mapbox-gl-path allows you to create paths on a map with or without the help of various directions APIs.
It requires Mapbox-gl-js (or Maplibre-gl-js) as a dependency.
👉 See our documentation website.
Clone the project
git clone git@github.com:makinacorpus/mapbox-gl-path.git
Go to the project directory
cd mapbox-gl-path
Install dependencies
npm install
Start the server
mapboxglToken="YOUR_ACCESS_TOKEN" npm run start
npm run build