mapbox / mapbox/mapbox-gl-directions

Display route without default controls

Open
#171 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.