简体   繁体   中英

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. 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 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/ .

Possibly related issue in the Google Maps API issue tracker :

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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