Use setTimeoutto call the desired function with a delay.
To turn off the output timeout, use clearTimeout.
Example:
google.maps.event.addListener(marker, 'mouseover', function(){
var that=this;
clearTimeout(this.timer)
this.timer=setTimeout(function(){OnMouseoverMarker(that);},1000)
google.maps.event.addListenerOnce(this,'mouseout',
function(){clearTimeout(this.timer);});
});
source
share