简体   繁体   English

Google地图标记标题在悬停时不再显示为工具提示

[英]Google Maps Marker title no longer appears as tooltip on hover

The Google Maps documentation indicates that adding a title property to a Marker object will result in its value appearing as a tooltip when the user hovers over that Marker. Google Maps文档表明,当用户将鼠标悬停在该Marker上时,向Marker对象添加title属性将导致其值显示为工具提示。 This used to work perfectly (including in v3 of the API), but at some point over the past few months it has stopped working, including on the simple marker example provided in the documentation. 这曾经完美地工作(包括在API的第3版中),但在过去的几个月中,它已停止工作,包括文档中提供的简单标记示例 I no longer see a tooltip on either Chrome or Firefox. 我不再在Chrome或Firefox上看到工具提示。

Has something changed in the API recently that hasn't been documented? API中最近发生了哪些变化尚未记录? I'm aware that I could use an InfoWindow or a mouseOver event, but neither of these should be necessary based on the documentation. 我知道我可以使用InfoWindow或mouseOver事件,但根据文档,这些都不是必需的。

The linked example uses the experimental version. 链接的示例使用实验版本。

You should always use the release-version( https://maps.googleapis.com/maps/api/js?v=3 ) when you use the API in production, the tooltip will work with the release-version: http://jsfiddle.net/doktormolle/6kUaU/ . 在生产中使用API​​时,您应该始终使用发布版本( https://maps.googleapis.com/maps/api/js?v=3 ),工具提示将与发布版本一起使用: http:/ /jsfiddle.net/doktormolle/6kUaU/

Possibly related issue in the Google Maps API issue tracker : Google Maps API问题跟踪器中可能存在相关问题:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM