Problem in Click on marker

Jul 3, 2010 at 1:18 PM

I wrote an event handler for OnMarkerClick but it can't catch this event. It means that if i click on a marker it can't fire OnMarkerClick. What is the problem ?

This is my event hander code

<font size="2" color="#0000ff">


</font>void MainMap_OnMarkerClick(GMapMarker



<font size="2">





Jul 3, 2010 at 1:24 PM

set your marker Size

Jul 3, 2010 at 1:44 PM

size is a field that is return value. it dont permit to i change it

  GMapMarker Point = new GMapMarkerGoogleGreen(point_lat_lng);
 Point.Size.Height = 4;
 Point.Size.Width = 4;

<font size="2">




Jul 3, 2010 at 1:47 PM

then whats the problem? and how do you suppose to hit 4 pixel area? ;}

Jul 3, 2010 at 1:51 PM

I only want to handle click event of markers. I can set its height & width to any value. But it don't permit to I do it. How can I set Size of marker ?

I only want to handle marker click event.

Regards ,

Jul 3, 2010 at 1:57 PM

what do you mean?

Jul 3, 2010 at 2:10 PM

I want to handle click event of markers. For example if a user click on a marker it shows a new windows form to describe this marker in detail. For this purpose I need to Catch click event on markers.

Jul 3, 2010 at 2:13 PM

so is it working? all you need is just to subscribe the event: MainMap.OnMarkerClick += new MarkerClick(MainMap_OnMarkerClick);

Jul 3, 2010 at 2:23 PM

this is my code.

Keep in mind that I use windows-form map component.


this.MainMap.OnMarkerClick += new GMap.NET.WindowsForms.MarkerClick(this.MainMap_OnMarkerClick); 


private void MainMap_OnMarkerClick(GMapMarker item)

Jul 3, 2010 at 2:24 PM

This code dont work

Jul 3, 2010 at 2:28 PM

your marker size is just to small, guess why this event in demos is working? ;}

Jul 3, 2010 at 2:36 PM

I downloaded the last version of project. I update my project by last version of DLL files. It works fine now.

TX for your quick reply


Best Regards


Jul 3, 2010 at 2:37 PM

ok, hm.. what version did you used before?

Jul 3, 2010 at 2:41 PM

this is the old file of greate map that I used

Jul 3, 2010 at 2:46 PM

mm, i see, 2 months ago ;}

Jul 3, 2010 at 4:02 PM
this is the old version of greate map

On Sat, Jul 3, 2010 at 6:07 PM, radioman <> wrote:

From: radioman

ok, hm.. what version did you used before?

Read the full discussion online.

To add a post to this discussion, reply to this email (

To start a new discussion for this project, email

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at

Mohsen Niazi.
Isfahan, IRAN.
Mobile: (+98) 913 326 49 26
Office: (+98) 311 6247332