ThinkGeo.com    |     Documentation    |     Premium Support

Show Map by right click

Hi, 


My requrement is to show map info (e.g.city name, street name) by right clicking on the map.


is it possible to use web method to do this?  call upon a function on the server side to get the feature,  when right click on the map is detected  on the client side..


 


Thanks !


Roson



Lishan,


Thanks for your post and questions.
 
In Desktop Edition, it is hardly to determine the server side and client side, it is on the same sideJ.
 
You can implement your code like this:

//Hook up the event.
winformsMap1.MapClick += new EventHandler<MapClickWinformsMapEventArgs>(winformsMap1_MapClick);

void winformsMap1_MapClick(object sender, MapClickWinformsMapEventArgs e)
{
   if (e.MouseButton == MapMouseButton.Right)
   {
      // do you stuff here.
      System.Diagnostics.Debug.WriteLine("RightClick");
   }
}

 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale

hi Yale, 
  
 Thanks for your prompt response.  I am using web edition. sorry. i misplaced my post… 
  
 Roson

Lishan, 
  
 No problem. Just feel free to post out your questions if any problems. 
  
 Thanks. 
  
 Yale