gpt4 book ai didi

java - 在android中一次在每个标记上显示信息窗口

转载 作者:行者123 更新时间:2023-12-01 23:01:50 25 4
gpt4 key购买 nike

如何一次在每个标记上显示信息窗口尝试但仅显示 Google map 中的最后一个标记

gMap.addMarker(markerOptions);
Marker = gMap.addMarker(markerOptions);
Marker.showInfoWindow();

最佳答案

目前无法同时显示多个标记的多个信息窗口。谷歌的documentation状态:

An info window allows you to display information to the user when they tap on a marker. Only one info window is displayed at a time. If a user clicks on a marker, the current info window will be closed and the new info window will be displayed. Note that if the user clicks on a marker that is currently showing an info window, that info window closes and re-opens.

有关潜在的解决方法,请查看这些相关主题及其建议的解决方案:
How to open a Infowindow on every marker (multiple marker) in android?
Multiple Info Windows in Android Maps API 2
Show multiple infoWindows on google maps api, android

希望这有帮助!

关于java - 在android中一次在每个标记上显示信息窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58417497/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com