How can I use datafile to create barriers.

2154
1
03-14-2016 07:49 PM
Reynaldde_Castro
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)
0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

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

0 Kudos