Editing Line Features

81
2
11-22-2020 12:04 PM
New Contributor

I am creating a desktop application to allow users to create and edit routes on a map.

I can see how to add points to a line using the PolylineBuilder but not how to edit them by showing vertices and dragging these vertices.

I guess I will have to intercept the mouse long click, create a point on the map, allow it to be dragged then update the line with the new position. Or is there a better way of doing this?

Reply
0 Kudos
2 Replies
New Contributor

Hello @CitizenFish ,

Thanks for your question! This workflow seems similar to the Offline routing sample, which allows the user to click on the map to add stops in a route and to select stops on the map and drag them around, which updates the route as the stop is moved.  

I hope this helps.

-Swagata

 

Reply
0 Kudos
New Contributor

Thanks. It's close, not really what I want as I'd rather be able to drag the line like a traditional route editor. I saw a post stating that ESRI were considering this in a later version, guess it never made it.

Reply
0 Kudos