Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14
36 changes: 3 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,8 @@
_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
```
This repository is divided into two packages:
* Go to the [./packages/lib](packages/lib) folder to see the `Mapbox-gl-path` library.
* Go to the [./packages/docs](packages/docs) folder to see the `Mapbox-gl-path` documentation website.
Loading