Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
812 views
in Technique[技术] by (71.8m points)

google maps - Autocomplete in SearchBox does not work even in official example

Today I've noticed that autocomplete in SearchBox does not on my service and when I was checking official example from Google it did not work even there.

https://developers.google.com/maps/documentation/javascript/examples/places-searchbox

Does anyone know what's happening? >)

UPDATE

This bug was handled in issue tracker https://issuetracker.google.com/issues/74048143. It was marked as Fixed in version 3.32 on March 2, 2018.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Using the previous version of the Google Maps API worked for me. I was using v=3.exp and changed it to v=3.0

<script src="https://maps.googleapis.com/maps/api/js?v=3.0&key=YOUR_KEY&libraries=places"></script>

See : https://developers.google.com/maps/documentation/javascript/versions

Related bug in the issue tracker: https://issuetracker.google.com/issues/74048143 (from xomena's comment)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...