AnsweredAssumed Answered

Solve route and buffer the route geometry

Question asked by msridhar on Dec 15, 2015
Latest reply on Dec 16, 2015 by rscheitlin

I am trying to the solve the route between 2 points and immediately buffering the route geometry.

I can able to solve the route by using the "Esri/resource-proxy" [sourcehttps://github.com/Esri/resource-proxy/releases], changed the proxy config [with routing URL, client id and client secret] and added proxy rule in my code.

Proxy rule:

urlUtils.addProxyRule({

                        urlPrefix: "tasks.arcgisonline.com",

                        proxyUrl: "http://xxxxx/DotNet/proxy.ashx"

                    });

I have been prompted with ArcGIS online signin popup with user name and password,

 

 

After successful authentication, I am passing the route geometry to do and show buffer. But I am getting below exception

"Unable to load http://xxxxx/DotNet/proxy.ashx?http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer status: 0"

 

 

This time I am setting ""esriConfig.defaults.io.alwaysUseProxy = false", but still this request is using proxy

 

 

Question 1: How to get rid of sign in popup? I assumed given client Id and client secret will not prompt popup.

Question 2: How to make buffer request with proxy?

 

Thanks

Murali

Outcomes