mapbox / mapbox/mapbox-gl-directions
Port localGeocoder option from mapbox-gl-geocoder
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 255
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
It looks like the directions control is not recognizing the localGeocoder option from the mapbox-gl-geocoder. The map renders fine, but it doesn't respond to any local data passed to it.
map.addControl(new MapboxDirections({
accessToken: mapboxgl.accessToken,
geocoder: {localGeocoder: coordinatesGeocoder}
}), 'top-left');
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 with the directions control's geocoder integration and compare its handling of the localGeocoder option with mapbox-gl-geocoder. Verify the provided coordinatesGeocoder is called and that local results are recognized when the control is initialized with the configuration shown; no specific files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100