Answer the question
In order to leave comments, you need to log in
How to hide InfoWindow on mouseout event from it?
Tell me, plz
There is a regular Google map with markers
var marker = new google.maps.Marker({
map: map, position: latlngset,
animation: google.maps.Animation.DROP,
category: IsBuild
});
google.maps.event.addListener(marker, 'mouseover', (function (marker, content, infowindow) {
return function () {
if (content != null && content != "") {
infowindow.setContent(content);
infowindow.open(map, marker);
if (marker.getAnimation() !== null) {
marker.setAnimation(null);
} else {
marker.setAnimation(google.maps.Animation.BOUNCE);
console.log(content);
}
}
};
})(marker, content, infowindow));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question