How to enable snapping for drawsurface to a feature layer on Map? I draw a line on map defining drawsurface (object of draw class) and add this line to graphic layer. I need starting and end vertex of this line to be snapped to a point feature layer on Map.
Can any one help me how to get this functionality done?