Hi, try this:
GEvent.addListener(map,'singlerightclick',function(point,src,overlay) {
if (overlay) {
if (overlay instanceof GMarker) {
GEvent.trigger(overlay,'SingleRightClick');
} else {
//click on map action
}
}
});
....
var marker = .... //add marker to map
GEvent.addListener(marker,'SingleRightClick',function() {
alert(1);
});
> Hello,
>
> I have easy map with one point (marker). And I wish if I click on the
> marker by right button - then load the openInfoWindowHtml. Now it
> works only if I click somewhere to the map. But my idea is that it
> works only with rigth click on the marker, NO somewhere to the map.
>
>
> I cannot figure out,
>
>
> thanks you for some answer, Loping
>
> my URL
> http://loping.wz.cz/first_my_account.htm
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---