Following google documentation up to changing the marker icon was easy. But I\'m stuck, I don\'t know how to change image when marker is clicked?
My code so far:
Try this.
//open onclick google.maps.event.addListener(marker, 'click', function() { marker.setIcon("Your Image"); infowindow.open(map); });