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 ?
arcgis javascript allow snapping
Map | API Reference | ArcGIS API for JavaScript 3.18
this is for Editor, Measurement widget or the Draw and Edit toolbars. here is a sample app
Editor widget with simple toolbar | ArcGIS API for JavaScript 3.18