[Google Maps API v2] closing "mouseover"
GEvent.addListener(marker, "mouseover", function() {
marker.openInfoWindowHtml(html);
});
=====================================
I use the above code to open the info window when the mouse is over the marker.
My question, what is the appropiate code to close the info window when the mouse leaves the marker?
I thought this would work but NO.
=========================================
GEvent.addListener(marker, "mouseover", function() {
marker.openInfoWindowHtml(html);
});
// create an event closure
GEvent.addListener(marker, "mouseout", function() {
marker.closeInfoWindowHtml(html);
});
So what is that I need? Just want the info box to close after the mouse moves off the marker.
Thanks
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home