Select to view content in your preferred language

Force layer to always use proxy

1347
4
11-23-2012 08:00 AM
TiagoRibeiro
Deactivated User
Hello,

Is there anyway to force a layer to always use a proxy?
"esri.config.defaults.io.alwaysUseProxy = true" forces all the layers to use the proxy, but I wanted only my services to go throug it, and not the ESRI Basemaps.

Thanks
0 Kudos
4 Replies
TracySchloss
Honored Contributor
Just delete that line.  Having it in there does just what said you don't want - every call goes through the proxy.  Leaving it out doesn't mean your proxy is ignored, it means it will only be used "as needed" and not for every layer.
0 Kudos
TiagoRibeiro
Deactivated User
Thank you for your response.
I know that, but that's not the point.
I want to access the services hosted on my ArcGIS Server using ALWAYS the proxy, but the basemaps from arcgisonline (for eg.) to use a "normal" access... I think that this is not possible because there'e no parameter to define it.

Just delete that line.  Having it in there does just what said you don't want - every call goes through the proxy.  Leaving it out doesn't mean your proxy is ignored, it means it will only be used "as needed" and not for every layer.
0 Kudos
__Rich_
Deactivated User
0 Kudos
TiagoRibeiro
Deactivated User
Thanks a lot for the links. I'll look into them.
0 Kudos