Sorry, I inadvertently posted (sligtly) wrong code. I wanted to paste
this code - problem description is of course still accurate:
javascript:void(mylistener=GEvent.addListener(gApplication.getMap
(),"click",
function(marker,point){
txt = "You clicked at: <" + point + ">\n";
txt = txt + "Mylistener: <" + mylistener + ">\n";
alert(txt);
txt = "None of these works: \n";
GEvent.removeListener(mylistener);
GEvent.clearListeners(gApplication.getMap(), "click");
txt = txt + "------------------------- \n";
alert(txt);
}))
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---