Is there a way to snap to the end of a polyline rather than just one of the vertices with snappingManager?
No, not the endpoints (unless the lines only have two nodes).
You can set up the snapping manager to either snap to edges or vertices (but not endpoints).
https://developers.arcgis.com/javascript/jsapi/snappingmanager-amd.html
Untested idea: Depending on your app, if you could extract the endpoints and add a point layer, then you could set it up to only snap to this end-point-layer.
I suspected that. Thank's Bjorn.
j.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.