This is my current code.
google.maps.event.addListener(marker, `mouseover`, function() { alert('loaded when i hovered'); });
but I want the function to execute if the mouse is over the element for two seconds .
I tried this, but it did not work.
google.maps.event.addListener(marker, `mouseover 2000`, function() { alert('loaded after then when i stay mouse 2 sec'); });
What do I need to do to execute the function after two second hover?
source share