I am working on a project that able to let users draw a line that snap to an underlining road network when the line is within a set distance of the underlining road. Can this be done using the editor widget? any suggestion would be greatly appreciated.
Take a look at the map's enableSnapping method. enableSnapping allows you to setup snapping options when working with the Editor or the Edit and Draw toolbars.
as you can not rely on the current state of the internal snapping manager, I had to setup the snappingManager which is returned by enableSnapping(); ( there is an "setLayersInfo" function ...)