【发布时间】:2020-04-30 22:38:31
【问题描述】:
我有一个带有一些标记的谷歌地图,它们都有标题和 sn-p。我将标记存储在 HashMap 中。我想在单击按钮时使用 showInfoWindow() 函数显示标题和 sn-p。 这是我的代码:
Marker m = getMarker(location); //this function return marker from HashMap with its location
if(m!=null)
m.showInfoWindow();
m 不为空,但 showInfoWindow() 不起作用
【问题讨论】:
标签: android google-maps android-maps-v2 android-maps