This code detects all three events, and does exactly what you'd expect.
Well, exactly what I expect anyway - perhaps you're not expecting two
"click" events each time there's a "dblclick".
function createMarker(point,name,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "mouseover", function() {
GLog.write("mouseover");
});
GEvent.addListener(marker, "click", function() {
GLog.write("click");
});
GEvent.addListener(marker, "dblclick", function() {
GLog.write("dblclick");
});
return(marker);
}
I guess your problem is in one of the function that you call but for
which you have not shown us the code. [Don't show us a dump of that
code. If you're still clueless, post a link to a page that exhibits the
problem.]
--
Mike Williams
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.