AnsweredAssumed Answered

FindNearest api not working

Question asked by suraj01 on May 16, 2018
Latest reply on Jun 29, 2018 by gsubbiah-esristaff

How to use the findNearest arcgis javascript api? Is there any sample how to use findnearest api??

 

I have used something like : 

 

$scope.findNearest = new www.FindNearest({
analysisLayer: analysisLayer,  //this is the graphics layer type: polygon
nearLayers: nearLayers, //this is a feature layer get from quering arcgis url like: https://something.com/MapServer/0?f=pjson
map: $scope.map,
portalUrl: "https://domain/arcgis/rest/services/Utilities/Geometry/GeometryServer"
}, "analysis-tool");

 

It does not work.. I hope someone could suggest me on this. 

Outcomes