Hello all,
I use sample of code.thinkgeo.com/projects/show/customtrackline to create a line trackshape.
and Get all Coordinates of line trackshape as follows code:
Protected Overloads Overrides Function MouseDownCore(ByVal interactionArguments As InteractionArguments) As InteractiveResult
If interactionArguments.MouseButton <> MapMouseButton.Right Then
System.Console.Write((interactionArguments.WorldX).ToString & vbNewLine)
System.Console.Write((interactionArguments.WorldY).ToString & vbNewLine)
coordinates.Add(New Feature(interactionArguments.WorldX, interactionArguments.WorldY))
Return MyBase.MouseDownCore(interactionArguments)
Else
RemoveLastVertexAdded()
End If
Return New InteractiveResult()
End Function
But, how to ended the last track line?
In this sample, I have to double click Mouse button, the track line shape is end.
but it can't get the last coordinate.
If I modify MouseDoubleClickCore like MouseDownCore, I don't know how to end track line shape.
Could you give any idea about:
1. I double click Mouse button, then track shape ended and add its coordinate value to coordinates
2. other method about how to end track shape.