I am unable to get the following code to work.My map services has 14 layers, I want to apply the filter to layers 4 & 5 (zero-base).This function is tied to the button change event function and is firing no problem; my trace statements all display correctly.The documentation does have an extra "," at the end of the array. I have tried with and without it.I get no requests to the server when viewing in Fiddler. Do I need to trigger that in my code? My thought was that the map object handled changes to layers.Thanks for any advice to correct the issue. private function setFloorLayerDef(floor:String) : void { for (var i:int = 0; i < opLayers.length; i++){ trace(opLayers.label); if (opLayers.label == "Category Codes" || opLayers.label == "Organizations") { trace("set Floor " + opLayers.label); opLayers.layerDefinitions = [null, null, null, null, "Floor = '" + floor + "'", "Floor = '" + floor + "'", null, null, null, null, null, null, null, null,]; trace(opLayers.layerDefinitions); //identifyParams.layerIds = i; //ViewerContainer.getInstance().mapManager.map.getLayer(opLayers.label).visible = true; } } }