How can I use datafile to create barriers.

1958
1
03-14-2016 07:49 PM
Highlighted
Occasional Contributor

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"}
 
);

Tags (1)
Reply
0 Kudos
1 Reply
Highlighted
MVP Esteemed Contributor

you should move this to a Place in GeoNet where you have a better chance on gettng this question answered.  This is for help about GeoNet, here is the community structure

GeoNet Community Structure

Reply
0 Kudos