Add a useProxy option when creating a new Map Service Layer object in JavaScript API.

Idea created by ctinnell on Jul 22, 2011
    • runningdba
    • hslee
    • ctinnell
    • lpalli
    • lgxdw
    In addition to having a global property, it would be nice to pass a useProxy param in the options object when creating a map service layer (dynamic or tiled) in the JavaScript API. The useProxy value would override the value, if defined. If useProxy is set to true, the global param would have to be defined.

    We are using map services from multiple sources, and we must have all our internal map services going through the proxy, but the external map services must not go through the proxy. We have currently achieved this by creating a custom tiled layer type (, but it would be nice if it was part of the API.