Mobile app version of vmapp.org
Login or Join
Connie744

: How to improve the Autosuggestion Google Maps I have seen the following example of the Autosuggestion Google Maps feature https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete?hl=en

@Connie744

Posted in: #GoogleMaps #Javascript #Usability

I have seen the following example of the Autosuggestion Google Maps feature
developers.google.com/maps/documentation/javascript/examples/places-autocomplete?hl=en
However, if I put a given location, and does not select a suggested item, but hits Enter key, an alert box displays saying "Autcomplete returned place contains no geometry".

I have seen Drupal modules based on the JS library that detect the place and does not display this caveat. If you write a non-existing location, it does nothing, but if you write "Barcelona", for example, but hits Enter Key instead of selecting the suggestion, it works perfectly.

How can achieve this? Maybe selecting automatically the first option of the suggested list? And what would be the code?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Connie744

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme