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.