Export request return image with default visible layers, not blank image

673
2
08-20-2010 02:24 AM
PauPérez_Puigcerver
New Contributor II
Hi,

I made a HTML viewer with the API Javascript 2.0, with a TOC that can turn on/off layers for each service. The problem is when you turn off all layers in one service, this service visualize default layers, instead of a blank image. The request in the viewer, when not all layers are off:

http://myServer:8399/arcgis/rest/services/intranet/playas/MapServer/export?dpi=96&transparent=true&f...

Returned image: with layers ids 0 and 1 visibles.

And the request when all layers are turn off:

http://myServer:8399/arcgis/rest/services/intranet/playas/MapServer/export?dpi=96&transparent=true&f...

Returnes image: default layers visibles.

Does anyone known what's the problem?

Thanks,

Pau Pérez
0 Kudos
2 Replies
ThomasHill
New Contributor
Pau,

Can you try setting the "layers" parameter to "show:-1" in the case where the TOC turns all layers off?
0 Kudos
PauPérez_Puigcerver
New Contributor II
Hi Tom,

I made a request with show:-1 and work fine.

Thanks for the reply.

Pau.
0 Kudos