最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Google Maps Marker title no longer appears as tooltip on hover - Stack Overflow

programmeradmin2浏览0评论

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. 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. I no longer see a tooltip on either Chrome or Firefox.

Has something changed in the API recently that hasn't been documented? I'm aware that I could use an InfoWindow or a mouseOver event, but neither of these should be necessary based on the documentation.

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. 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. I no longer see a tooltip on either Chrome or Firefox.

Has something changed in the API recently that hasn't been documented? I'm aware that I could use an InfoWindow or a mouseOver event, but neither of these should be necessary based on the documentation.

Share Improve this question asked Jul 24, 2014 at 11:57 richsilvrichsilv 8,0131 gold badge25 silver badges29 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 3

The linked example uses the experimental version.

You should always use the release-version( https://maps.googleapis./maps/api/js?v=3) when you use the API in production, the tooltip will work with the release-version: http://jsfiddle/doktormolle/6kUaU/ .

Possibly related issue in the Google Maps API issue tracker:

  • https://code.google./p/gmaps-api-issues/issues/detail?id=6931
发布评论

评论列表(0)

  1. 暂无评论