1.0.0 • Published 3 years ago
@makinacorpus/mapbox-gl-path v1.0.0
MAPBOX-GL-PATH
Create path with or without help of directions API
GETTING STARTED
npm install @makinacorpus/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
1.0.0
3 years ago