LayerDefinition Blurry issue

584
0
04-22-2010 07:52 AM
PrakashMukkamala
New Contributor
----When I use the LayerDefinition to filter the layers of a dynamic map (there are around 17 layers in the map), the whole map becomes hazy and non-transparent. Even though I am setting the transparency the map becomes non-transparent. Happens in IE.

dojo.forEach(mapServiceInfo.visibleLayers.split(","), dojo.hitch(this,function(x){
layerDefs.push("state_code='" + geoFilter[0] + "' or state_code ='" + geoFilter[1] +"'");
}));

//set remaining properties for layer defs
imageParams.layerDefinitions = layerDefs;
imageParams.visibleLayers = [mapServiceInfo.visibleLayers];
imageParams.transparent = true;      
    
//instantiate dynamic layer
layer = new esri.layers.ArcGISDynamicMapServiceLayer(mapServiceInfo.url, {
id: mapServiceInfo.label,
opacity: parseFloat(mapServiceInfo.alpha),    
visible: mapServiceInfo.visible,
imageParameters:imageParams
           });
0 Kudos
0 Replies