pmukkamala67

LayerDefinition Blurry issue

Discussion created by pmukkamala67 on Apr 22, 2010
----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
           });

Outcomes