AnsweredAssumed Answered

How can I use datafile to create barriers.

Question asked by rdecastro on Mar 14, 2016
Latest reply on Mar 14, 2016 by Dan_Patterson

I am trying to use this barrier parameter without much luck.  I want to query against a feature service I create.

 

var networkServiceUrl = 'http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/MapServer/'
  routeParams
.barriers = new DataFile({
    url
: networkServiceUrl + "/1/query?where=1%3D1&outFields=Name,RouteName&f=json"}
 
);

Outcomes