Select to view content in your preferred language

Editing Line Features

408
2
11-22-2020 12:04 PM
CitizenFish
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?

0 Kudos
2 Replies
SBiswas
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

 

0 Kudos
CitizenFish
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.

0 Kudos