While I haven't explored this myself, the documentation http://code.google.com/intl/en/apis/maps/documentation/javascript/events.html#UIEvents indicates that "right-click" is not one of the events you can "listen" to on a marker. Listening for DOM events NOT attached to a marker won't do you much good.
So you might consider using a button, which is activated when a marker is selected by clicking (left-clicking), which will remove the marker. Or listen for the "dblclick" event. You have plenty of options. Incidentally, while others may differ, I for one am not too inclined to "add the required function" to code you are tasked with writing. - Jeff On Jun 2, 8:44 am, Alan Wheeler <[email protected]> wrote: > I am just starting with Google maps and I am learning how to add markers on > a left click. What I want to do next is be able to remove a selected marker > on right click. Is this possible. I would really appreciate it if someone > could take a look at the attached code and add the required function so I > can see exactly how it is done. > > Thanks in advance for any help > > Regards > > Alan > > test.html > 1KViewDownload -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
