Marker click --> Popup datagrid or message

Topics: SharpMap v0.9 / v1.x, Web Controls
Apr 28, 2011 at 8:13 AM

Hi All,

I can add a marker or pushpin like image to the map successfully. Can anyone of you please help me to how to display a popup message or datagrid control when clicking that marker image. AM using Sharpmap v0.9.




May 2, 2011 at 2:29 AM

Hi deviMurugan,

I suppose you know the coordinates of the marker image. Create in your control event (mous click) and take images coordinate of point where you click. If you have world coordinates of marks you need  convert marks coordinate(to image) or mousclick coordinate(to world).Use to convert methos Map.WorldToImage() or Map.ImageToWorld(). Then check : contains you mark mousclick coordinates or not. 


sorry my bad english=)

Telegin S.

Jul 20, 2011 at 9:54 PM

Hi, I'm new with sharpmap, do you have a sample snippet to share?
Thank you very much