You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To clarify, this is a workaround to achieve the desired functionality from @Jirka1111's question. This removes the ability to specify a region, and restrict results so would probably not be suitable for a PR.
If you reverse this commit you can achieve typeahead for any country.
To test locally, I unpacked the gem using
gem unpack gmaps-autocomplete-rails
Then modified gmaps-autocomplete-rails-0.2.0/vendor/assets/javascripts/gmaps-auto-complete.coffee per the commit above
Then changed the entry in my gemfile to point to the local gem (just to test)
You are welcome to make a PR that properly allows for both modes ;)
You are also very welcome to clean up the javascript, use ES classes and split functionality up instead of having it all in one big master class...
Can be this gem used without specification of country? #
The text was updated successfully, but these errors were encountered: