Solved! Go to Solution.
I have a feature layer from a REST feature service that I would like to be the facility layer input. ...What is the best way that I should go about obtaining a feature set from my feature layer?
//Requires ArcGIS Server 10.1 or greater params.facilities = new esri.tasks.DataFile({ url: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/MapServer/3/query?where=1%3D1&returnGeometry=true&outFields=*&f=json" });
I have a feature layer from a REST feature service that I would like to be the facility layer input. ...What is the best way that I should go about obtaining a feature set from my feature layer?
//Requires ArcGIS Server 10.1 or greater params.facilities = new esri.tasks.DataFile({ url: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/MapServer/3/query?where=1%3D1&returnGeometry=true&outFields=*&f=json" });
Hi,
I'm having the same problem as Wesley, where exactly does the substitution happen? I tried it in several places without success. Do I need to use a map service or a feature service? I'm kind of at a loss of what a feature set is. Main point is I don't want to write a list of all my facilities with their coordinates in the code, I would like to draw that from a data set such as a feature service.
thanks,
John