paupepui

Not blank image in export request when all layers are turn off

Discussion created by paupepui on Aug 16, 2010
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://server:8399/arcgis/rest/services/intranet/incendios/MapServer/export?dpi=96&transparent=true&format=png8&bbox=450257.4638611343,4163223.687742198,992125.2142633018,4547187.789003734&bboxSR=23030&imageSR=23030&size=1280,907&layers=show:0,1,15&f=image

and the request when all layers are turn off:

http://server:8399/arcgis/rest/services/intranet/incendios/MapServer/export?dpi=96&transparent=true&format=png8&bbox=450257.4638611343,4163223.687742198,992125.2142633018,4547187.789003734&bboxSR=23030&imageSR=23030&size=1280,907&layers=show:&f=image

Does anyone known what's the problem?

Thanks,

Pau Pérez

Outcomes