即使在官方示例中,SearchBox 中的自动完成也不起作用

编程入门 行业动态 更新时间:2024-10-09 17:27:56
本文介绍了即使在官方示例中,SearchBox 中的自动完成也不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

今天我注意到 SearchBox 中的自动完成功能不在我的服务中,当我查看来自 Google 的官方示例时,它甚至在那里也不起作用.

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.

developers.google/maps/documentation/javascript/examples/places-searchbox

有谁知道发生了什么?>)

Does anyone know what's happening? >)

更新

此错误已在问题跟踪器 issuetracker.google/issues/74048143.它于 2018 年 3 月 2 日在 3.32 版本中被标记为已修复.

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

推荐答案

使用以前版本的 Google Maps API 对我有用.我正在使用 v=3.exp 并将其更改为 v=3.0

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="maps.googleapis/maps/api/js?v=3.0&key=YOUR_KEY&libraries=places"></script>

参见:developers.google/maps/documentation/javascript/版本

问题跟踪器中的相关错误:issuetracker.google/issues/74048143(来自 xomena 的评论)

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

更多推荐

即使在官方示例中,SearchBox 中的自动完成也不起作用

本文发布于:2023-10-26 06:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1529399.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:也不   示例   自动完成   官方   SearchBox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!