AnsweredAssumed Answered

Using Javascipt to determine length of featurelayer (click event).

Question asked by ajd018 on Oct 18, 2018
Latest reply on Oct 18, 2018 by ajd018

I have a feature layer of a road network. Would it be possible to make an onclick event that could determine length from where the point is clicked to the beginning of the line.


Maybe create a graphic from the beginning of the line to where it was clicked and calculate its length?


I need to take the length and add it to a value from a field to determine its true length.


I cant wrap my head around where to start. Would I have to use vanilla javascipt?