google maps v3 marker mouseover tooltip
Posted
by Santiago
on Stack Overflow
See other posts from Stack Overflow
or by Santiago
Published on 2010-04-19T18:05:47Z
Indexed on
2010/04/19
18:23 UTC
Read the original article
Hit count: 1467
Hello, I want to put a tooltip made myself with divs when the mouse is over a marker, but I don't know how to get the screen position to put the div on the correct position, here is my code:
google.maps.event.addListener(marker, "mouseover", function() {
divover.css("left", marker.get("left"));
divover.css("top", marker.get("top"));
divover.css("display", "block");
});
google.maps.event.addListener(marker, "mouseout", function() {
divover.css("display", "none");
});
Obviously the get method fails. Any Idea?
© Stack Overflow or respective owner