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

Using autocompleteOptions is not working for me #3

Open
thexs-dev opened this issue Jun 24, 2017 · 2 comments
Open

Using autocompleteOptions is not working for me #3

thexs-dev opened this issue Jun 24, 2017 · 2 comments

Comments

@thexs-dev
Copy link

I am trying to use the autocompleteOptions as described in the Google Maps API, particularly "bounds" and "strictBounds"
https://developers.google.com/maps/documentation/javascript/reference#AutocompleteOptions

passing,
autocomplete-options="[[place.options]]"
where,
this.place.options = { bounds: this.map.getBounds(), strictbounds: true }

But it's not working for me

Any hint or suggestion?
Thanks

@thexs-dev
Copy link
Author

In the mean time, in case somebody has the same requirements
I managed to get the same results in a less "polymeric way" as follow:

      var autocomplete = document.querySelector("paper-input-location").autocomplete;
      autocomplete.setOptions({strictBounds: true});
      autocomplete.bindTo('bounds', this.map);

@jiboncom
Copy link

The autocompleteOptions property is not used, only defined :(

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

2 participants