Select to view content in your preferred language

Snap to edges

854
5
03-20-2011 02:16 PM
MaraStoica1
Deactivated User
Is it possible to snap to edges or ends when editing? All the Editing samples I've seen only allow snapping to vertices. Thanks!
0 Kudos
5 Replies
JenniferNery
Esri Regular Contributor
This is correct, Add and EditVertices allow you to snap to vertices.

If you want to snap to an edge, you need to snap to both end points. Try this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave

Activate either Add or Edit Vertices command, add/move vertices while holding CTRL key.
0 Kudos
dotMorten_esri
Esri Notable Contributor
Snapping to the edge is not supported out of the box. If this is a requirement for you, it would have to be custom code you write.
Jennifer is right that as a work-around, you could just snap to the two vertices on each end, so you have an edge that perfectly follows the line you want to snap to. Next insert an extra vertex on this line, and lastly delete the two extra vertices you first added.
0 Kudos
MaraStoica1
Deactivated User
Thanks Morten. Any plans on adding edge snapping to the API in the near future?
0 Kudos
by Anonymous User
Not applicable
Thanks Morten. Any plans on adding edge snapping to the API in the near future?


Morten - any update (roadmap? (or perhaps i should be asking is this even being considered)) for extending function to SL API?  JS API can handle this nicely, disappointed similar functionality is not available int the SL API.

I will also have a look at the Idea's site & if its not there, then will aid - SL API at a distinct disadvantage from an edit task perspective if not.

Brad
0 Kudos
JenniferNery
Esri Regular Contributor
Thanks for your feedback. Morten is currently on vacation. But I will make sure to pass this request along.
0 Kudos