1.0.0 • Published 3 years ago

mapbox-gl-path v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

MAPBOX-GL-PATH

Create path with or without help of various directions API

GETTING STARTED

npm install mapbox-gl-path

DOCUMENTATION

Working example is available at rollup.config.dev.js, look at development part

const map = new mapboxgl.Map({...});
const mapboxPathControl = new MapboxPathControl(${language}, ${layersCustomisation}, ${featureCollection}, ${themes}); // All parameters can be undefined
map.addControl(mapboxPathControl);
const featureCollection = mapboxPathControl.getFeatureCollection();

DEVELOPMENT

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

cd mapbox-gl-path

npm install

mapboxglToken='"MAPBOXGLTOKEN"' npm run start

BUILD

npm run build