Identify a drawed line or layer by MouseClick

Topics: General Topics
Oct 3, 2006 at 6:58 PM
Hi,

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 ?

Thanks,

Robert
Coordinator
Oct 3, 2006 at 9:36 PM
Hi,

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

BR
/Christian
Oct 9, 2006 at 1:01 AM

Hi:
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.
Coordinator
Oct 9, 2006 at 2:49 PM
Hi LiuXing,

Please look at Add a primitive geometry

BR
/Christian