Hello,I'm creating an application using the button bar categories to reveal layers. I'm in the testing phase right now so I'm using feature server and map server services. I have the default visibility set to 'false' for all the layers. When a user selects a category in the button bar it reveals a list of check boxes to activate layers on the map. Only when you check the box the layer appears on the map but not in the legend until the scale is changed. How can I get the legend to show the layer immediately? The funny thing is, this doesn't happen with the feature server services, only the map server services.Here's a code sample to the services:<esri:ArcGISDynamicMapServiceLayer id="sidewalkMapServer" name=" " visible="false" url="http://......DOE_Sidewalk/MapServer"/> <esri:FeatureLayer id="sidewalkComments" mode="snapshot" visible="false" url="http://......SidewalkComment/FeatureServer/0"/>
Here's the code to the check box buttons:public function sintBox(evt:MouseEvent):void { sidewalkMapServer.visible = true; if(CheckBox(evt.target).selected) { } else { sidewalkMapServer.visible = false; } } public function scomBox(evt:MouseEvent):void { sidewalkComments.visible = true; if(CheckBox(evt.target).selected) { } else { sidewalkComments.visible = false; }Any help on this would be great. I have a feeling it has something to do with 'LayerInfo' but I'm not sure on how to use it.JoeGIS Tech IILong Range PlanningWashington County, Oregon