Change icon back to default state after infoWindow closed Google Maps
问题 So my goal here is to make the icon go from the "normalIcon" state to the "activeIcon" state on button click, which it currently does. It opens an infoWindow when the pin is clicked as well. I want the icon to go back to the "normalIcon" state when the infoWindow is closed. Right now, if you click on a different location it changes the icon back to the "normalIcon" but you have clicked on another icon which is now the "activeIcon" Here is the javascript I have: var normalIcon = 'Pin.png'; var