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

error: query must be an array with 2 items #505

Open
delebash opened this issue Aug 7, 2023 · 0 comments
Open

error: query must be an array with 2 items #505

delebash opened this issue Aug 7, 2023 · 0 comments

Comments

@delebash
Copy link

delebash commented Aug 7, 2023

Using reverse coding if there is a space at the beginning or end of coordinates throws this error.

Solution: Trim whitespaces on input

Screenshot 2023-08-07 154949

Screenshot2 2023-08-07 154949

The same thing happens on the example page. https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder-accept-coordinates/

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

No branches or pull requests

1 participant