Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With ESRI's Javascript API - is it possible to make only certain layers go through the proxy? I know this is possible in the Flex API via proxyUrl property of applicable layers.

Right now i have this code in my initialization function - but all map content is now routed through proxy. = "proxy.ashx"; = true;
share|improve this question

For future reference, v3.4 of the Javascript API added, which allows you to use the proxy for some services:

share|improve this answer

I can't find anything in the ArcGIS Javascript API that lets you decide which layers go through a proxy. According to this page, you should set alwaysUseProxy to true if you're dealing with secured services and tokens. If you set it to false, the proxy is not used on local services when the request is less than 2000 characters.

share|improve this answer
I think Rakeno is right, you have to use the proxy all or nothing. I guess you are using the proxy to authenticate services? If not and its just for transferring complex geometries it might be worth checking out the coors features from V2.5 onwards.… – David Wilton Nov 27 '12 at 20:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.