AnsweredAssumed Answered

Transparency With Dynamic Map

Question asked by patrickadams on Mar 30, 2011
Latest reply on Apr 4, 2011 by patrickadams
I am using the Java api. In my application I use a mapBean with the dynamic map enabled to display my raster images. These images contain a alpha channel as much of the image is transparent. When viewed in normal mode (i.e. not dynamic mode) these images display as expected, with the images below the transparency being visible through the transparent areas. However when I switch to dynamic map all of the areas which should be transparent are instead filled in with white.

dynamic mode

non-Dynamic mode

This could be due to how I set up the DynamicCacheManager for the layers. This is done on loading the map document using the following code:

for (int i = 0; i < map.getLayerCount(); i++)
      ILayer layer = map.getLayer(i);

      IDynamicCacheLayerManager cacheLayerManager = new DynamicCacheLayerManager();
      cacheLayerManager.init(map, layer);

Any help/suggestions on how to keep the transparency while in dynamic mode would be much appreciated.