1.0.0 • Published 3 years ago
mapbox-gl-routing v1.0.0
MAPBOX-GL-ROUTING
Create path with or without help of routing
DOCUMENTATION
Working example is available at rollup.config.dev.js, look at development part
const map = new mapboxgl.Map({...});
const mapboxRoutingControl = new MapboxRoutingControl(${language}, ${layersCustomisation}, ${featureCollection}, ${themes}); // All parameters can be undefined
map.addControl(mapboxRoutingControl);
const featureCollection = mapboxRoutingControl.getFeatureCollection();
DEVELOPMENT
git clone
cd mapbox-gl-routing
npm install
mapboxglToken='"MAPBOXGLTOKEN"' npm run start
BUILD
npm run build
1.0.0
3 years ago