对于我来说,在 google map api 中设置标记的标题确实有意义。它不显示或任何东西。那么这是做什么用的呢?
最佳答案
来自https://developers.google.com/maps/documentation/javascript/markers :
The marker's title will appear as a tooltip.
If you do not wish to pass any Marker options in the marker's constructor, instead pass an empty object {} in the last argument of the constructor.
关于javascript - 谷歌地图API : Why we need to set title for Marker object?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30761690/