paupepui

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

Discussion created by paupepui on Aug 20, 2010
Latest reply on Sep 5, 2010 by paupepui
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&format=png8&bbox=707360.4869228919,4359862.32420264,737840.5478830138,4381460.304898601&bboxSR=23030&imageSR=23030&size=1280,907&layers=show:0,1&f=image

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&format=png8&bbox=707360.4869228919,4359862.32420264,737840.5478830138,4381460.304898601&bboxSR=23030&imageSR=23030&size=1280,907&layers=show:&f=image

Returnes image: default layers visibles.

Does anyone known what's the problem?

Thanks,

Pau Pérez

Outcomes