AnsweredAssumed Answered

How to get distance between geometries in ArcGIS JS 4.10?

Question asked by vlantaca on Dec 14, 2018
Latest reply on Dec 14, 2018 by rscheitlin

I have a Feature Layer that contains polyline geometries and I have a point. I am trying to find the closest polyline to that point.

 

I have looked for a way to do this and I have found FindNearest and it looks like it can accomplish what I need to do:

https://developers.arcgis.com/javascript/3/jsapi/findnearest-amd.html

 

However, it doesn't look like this exists in ArcGIS API for JS 4.10. Has this been replaced with something else? Is there anything I can use in 4.10 instead of FindNearest?

 

Thanks

Outcomes