# Mapbox-gl-path

_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](https://github.com/mapbox/mapbox-gl-js) (or [Maplibre-gl-js](https://github.com/maplibre/maplibre-gl-js)) as a dependency.

## Documentation and demo

👉 See our [documentation website](https://mapbox-gl-path.netlify.app/).

## Run Locally

Clone the project

```bash
git clone git@github.com:makinacorpus/mapbox-gl-path.git
```

Go to the project directory

```bash
cd mapbox-gl-path
```

Install dependencies

```bash
npm install
```

Start the server

```bash
mapboxglToken="YOUR_ACCESS_TOKEN" npm run start
```

## Build

```bash
npm run build
```
