mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
237 stars 125 forks source link

[GLJS-647] Added configuration for waypoint instructions #313

Closed underoot closed 7 months ago

underoot commented 7 months ago

Examples

var directions = new MapboxDirections({
  instructions: {
    showWaypointInstructions: false
  }
});
image
var directions = new MapboxDirections({
  instructions: {
    showWaypointInstructions: true
  }
});

// or
var directions = new MapboxDirections();
image
underoot commented 7 months ago

Not sure if we need an option to turn off waypoint instructions

It was a feature request