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).
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.
Retrieving data ...