The setup is the Google Maps Javascript API (v3) in the PhoneGap app, and I'm setting up autocomplete:
var that = this this.autocomplete = new google.maps.places.Autocomplete(domNode) this.listener = google.maps.event.addListener( this.autocomplete, 'place_changed', function (place) { var place = that.autocomplete.getPlace() ... } })
And this code works on my Android installations and in the browser. The problem is that I am running this under iOS. I enter a line in the search field, the autocomplete results are displayed, but when you click on one of them the drop-down menu just closes, but the result is not filled in the search field. The listener does not work either. Javascript console does not display error.
This is all Google code, so I find it difficult to debug. Any help would be greatly appreciated. Thanks!
source share