Thanks for your help Derek,
It seems like a very simple issue but I am not being able to resolve it. The code below has a problem and I cannot figure it out. Can you please help me iron this out?
function showQueryResults(queryTask1, query1, Indicator){
dojo.connect(queryTask1, "onComplete", function(featureSet) {
distGraphicsLayer = new esri.layers.GraphicsLayer();
for (var i=0, il=featureSet.features.length; i<il; i++) {
var graphic = featureSet.features;
graphic.setInfoTemplate(infoTemplate);
distGraphicsLayer.add(graphic);
} //for
map.addLayer(distGraphicsLayer);
distGraphicsLayer.setRenderer(renderer);
for (j=0; j<distIndicators.length; j++){
if (distIndicators==Indicator){
distGraphicsLayer.show();
}
else {
distGraphicsLayer.hide();
}
}
Thanks
Samir