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

country prop not limiting results to country #13

Open
rawallerstein opened this issue Oct 23, 2019 · 2 comments
Open

country prop not limiting results to country #13

rawallerstein opened this issue Oct 23, 2019 · 2 comments

Comments

@rawallerstein
Copy link

As far as I can tell, passing a string of country codes to the country prop of the geocoder control component.

I've tried passing the string through countries and country, tried using "us" and "US" but the results are still not limited to the US.

<MglGeocoderControl :accessToken="token" :mapboxgl="mapboxgl" country="us" />
Is how I've been doing it. Any advice?

@herychHra
Copy link

If author will add countries props (Mapbox-geocoder options) in GeocoderControl.js all will be works correctly. Because with this props all works.

@shakyasaijal
Copy link

Not working with this as well:

<MglGeocoderControl :accessToken="data.accessToken" countries='au' />

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

3 participants