I am a beginner trying to code a running app and have run into a problem. I am running a loop every few seconds and want to display a markers infowindow
on google maps API
if the time has passed the total time for those runs, my problem is when one infoWindow
pops up, it must close the others because I only ever get the bestMarker window to show up since it comes after lastMarker.
Here is my code -
if (getCount() >= lastDone) {
lastMarker.setTitle("Done!");
lastMarker.showInfoWindow();
}
if (getCount() >= bestDone) {
bestMarker.showInfoWindow();
bestMarker.showInfoWindow();
}
If anyone has a solution to make both windows stay open at the same time it would be greatly appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…