soal / vue-mapbox-geocoder

Wrapper for vue-mapbox-geocoder
13 stars 22 forks source link

country prop not limiting results to country #13

Open rawallerstein opened 5 years ago

rawallerstein commented 5 years ago

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 commented 4 years ago

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

shakyasaijal commented 3 years ago

Not working with this as well:

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