Problem in Click on marker

Jul 3, 2010 at 12: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">

private

</font>void MainMap_OnMarkerClick(GMapMarker

item)

{

<font size="2">

 

</font>MessageBox.Show(item.ToolTipText);

 

}

Coordinator
Jul 3, 2010 at 12:24 PM

set your marker Size

Jul 3, 2010 at 12: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">

 

</font>

 

Coordinator
Jul 3, 2010 at 12:47 PM

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

Jul 3, 2010 at 12: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 ,

Coordinator
Jul 3, 2010 at 12:57 PM

what do you mean?

Jul 3, 2010 at 1: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.

Coordinator
Jul 3, 2010 at 1: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 1: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)
        {
             MessageBox.Show(item.ToolTipText);
        }

Jul 3, 2010 at 1:24 PM

This code dont work

Coordinator
Jul 3, 2010 at 1:28 PM

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

Jul 3, 2010 at 1: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

 

Coordinator
Jul 3, 2010 at 1:37 PM

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

Jul 3, 2010 at 1:41 PM

this is the old file of greate map that I used  greatmaps-66dd767bff00.zip

Coordinator
Jul 3, 2010 at 1:46 PM

mm, i see, 2 months ago ;}

Jul 3, 2010 at 3:02 PM
Hi
 
this is the old version of greate map  greatmaps-66dd767bff00.zip

On Sat, Jul 3, 2010 at 6:07 PM, radioman <notifications@codeplex.com> 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 (greatmaps@discussions.codeplex.com)

To start a new discussion for this project, email greatmaps@discussions.codeplex.com

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

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




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