This project has moved and is read-only. For the latest updates, please go here.

Identify a drawed line or layer by MouseClick

Topics: General Topics
Oct 3, 2006 at 7:58 PM

i've created a application that shows a map with multiple lines (line strings) on it each one of them within a layer.
Now i would like to click on a line and show some informations about it (eg color, length etc.)
How can I do that ?


Oct 3, 2006 at 10:36 PM

You can identify a line by using the NtsProvider.
Please look at NetTopologySuite Data Provider

Oct 9, 2006 at 2:01 AM

I know you had drawn multiple lines on the sharpmap,but I hadn't still known how to do about this. Could you tell me the code about how to draw line on the sharpmap?
Many Thanks.
Oct 9, 2006 at 3:49 PM
Hi LiuXing,

Please look at Add a primitive geometry