I have developed application to add edit polylines using ArcGIS feature service. Currently application can add , edit, delete features. However we need to develop further and enhance this application to enable snapping to road network (Users should be able to draw lines on top of road network. new feature should snap to guided road network layer.
How can we achieve this in javascript ?