How can I set the image format for a basemap layer?

Discussion created by a.schaefer-esri-de-esridist on May 1, 2011
Latest reply on Nov 7, 2011 by amarsden

I want to set the imageformat for a basemap layer. All dynamic layers, that I defined in my basemap gallery are shown as png8.

The esri.dijit.BasemapLayer doesn't have a method or property and is not directly dependand from esri.Layer. I don't see an easy way to set the imageformat to jpg.

Why? In my scenario I put some dynamic layers into the basemap gallery. I have some reasons to do it this way and I cannot cache/tile them. The performance of my dynamic layers is great and the response < 2 seconds. But I need the response in JPG. Or PNG32 - Well anything that is better than PNG8.

Does anybody know how to do that?

Thanks in advance.