Get all infoWindows on a Google Map
问题 I am working on a map where I neet to plot multiple routes using the DirectionService, and each marker on the route has an infoWindow. Instead of having to keep track of which infoWindow binds to which marker, is there a way for me to grab all infoWindows on a map? 回答1: There are no way to do what you want. The map does not know what markers it have or what infowindows those markers have. The Markers know what map they belong to, but that is it. So unfortunatly you will have to keep track of