mapbox / mapbox/mapbox-gl-directions
Display route without default controls
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 255
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
I am wondering is it possible to trigger the directions api from code (using custom ui)? I belive that it is necesarry to switchProfile but I am unable to do this from my code.
Is there a way to make this plugin to render route without need to use default controls?
Any help would be appreciated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the plugin exposes the Directions API and switchProfile behavior, then inspect how its default controls trigger route rendering. Define whether custom UI can invoke those entry points and render a route without the controls. Done should include a documented or demonstrated way to perform both actions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100