How to find Begin and End points of a polyline using Arcgis  Javascript

Discussion created by viteboard on Sep 26, 2013
Latest reply on Sep 27, 2013 by jgrayson-esristaff
Hello All,

Can anyone say how to get the starting and ending points of a polyline when we draw using Arcgis Javascript api.
Using WebAdf we are having the facility of MapLineEventArgs.BeginMapPoint and  MapLineEventArgs.EndMapPoint.
I want to perform few validation basing on this start and end coordinates of polyline

Thank You