I am using ArcGIS WPF's Polyline
to plot several lines (PointCollection
s). Adding a Path(PointCollection
) looks something like this.
PointCollection collection = new PointCollection();
PolyLine myLine = new PolyLine();
collection.Add(firstMapPoint);
collection.Add(secondMapPoint);
myLine.Paths.Add(collection);
PolyLine
is a Geometry in which I can set to a Graphic
and plot on a map. Once that Graphic
is clicked it of course is clicking the entire graphic. I am visually showing several Paths(PointCollection
s). Is it possible to figure out which Path is being clicked on from the user?
Note
I have a solution now where I just have 1 PointCollection
per PolyLine
. So I am adding one PolyLine
/Graphic
for each line. I would rather not do this if I can avoid it.