Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude options.api from query params #266

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Conversation

michaelskahn
Copy link
Contributor

Since mapbox-gl-directions 4.0.0, specifying a custom API for the geocoder control has worked, but also inserts the api option as a query parameter, leading to requests like https://api2.mapbox.com/geocoding/v5/mapbox.places/test.json?api=https://api2.mapbox.com/geocoding/v5/mapbox.places/&access_token=

While this doesn't cause an error, it isn't the desired behavior. This PR adds api to the list of geocoder options excluded from the URL parameters.

@ryanhamley ryanhamley merged commit 2dadf74 into master Oct 22, 2020
@ryanhamley ryanhamley deleted the fix-geocoder-api branch October 22, 2020 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants