How to delete a Marker clicking on it

Topics: Windows Forms
Oct 17, 2012 at 7:40 PM

I have a application with several Markers on window, perhaps that in some moment the user needs to delete some of then just clicking on each desired, is this possible?

I have tryed to use mouse event in

void MainMap_MouseDown(object sender, MouseEventArgs e)

and the event is capture ok but i don´t know how to delete, what argument to pass

thanks

Marcelo

Coordinator
Oct 17, 2012 at 8:12 PM

map.OnMarkerClick += ...

...

objects.Markers.Remove(item);

Oct 18, 2012 at 11:34 AM

Great radioman !

worked fine, thank you again;

marcelo