Is there a way to manage the predictions provided by Google Places Autocomplete SearchBox (google.maps.places.SearchBox
) service?
In simpler terms, can the HTML input element connected to the Autocomplete SearchBox service be temporarily disconnected and then reconnected?
The issue I am facing is that when the search results are displayed below the input element, the predictions show up over the results once the user returns focus to the input. This obstructs the view of the results and I would like to prevent predictions from showing until the user modifies the input text.
https://i.sstatic.net/GG9jY.png
EDIT 26/Aug/2016:
Currently, disabling predictions is not supported by the Javascript API. Therefore, I have submitted a feature request to Google. If you are interested in this feature, please vote for it here: Autocomplete SearchBox - Control (enable/disable) predictions..
EDIT 07/Sep/2016 - bounty award update:
Thank you to everyone who contributed answers and helped promote the question.
The main goal of the award was to find a solution using existing resources, which unfortunately did not happen, so the bounty will not be awarded.
While none of the answers below offer a solution, they do provide valuable insights that may lead to a solution in the future. Thank you! Perhaps these insights will help address the issue at hand.
The secondary goal of the award was to bring attention to the feature request for controlling predictions in the Autocomplete SearchBox. Its status has been updated to NeatIdea and has been assigned an internal tracking number, which is a positive development.