Hello all, I'm using the "Dynamic Map Layers on/off" sample in the code sample gallery. I'm trying to insert a new DataGridColumn in the data grid and embed an image that represents each layer's symbol. This is what my code looks like in the LayerTOC.mxml:
<mx:columns>
<mx:DataGridColumn width="57"
headerText="Visibility"
itemRenderer="com.esri.ags.samples.LayerVizRenderer"/>
<mx:DataGridColumn width="57"
headerText="Symbol">
<mx:itemRenderer>
<fx:Component>
<mx:HBox width="100%" horizontalAlign="center" verticalAlign="middle">
<mx:Image id="legendSymbol2" source="assets/images/crosshair.png"/>
</mx:HBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn dataField="name" headerText="Layer Name" width="163"/>
</mx:columns>
The problem that I'm having is that every layer shows my crosshair.png image (see attached image).How do I code a separate image for each of the layers in my TOC?An example of this can be seen in the map at the bottom of this page: http://crownpeak.vipnet.org/cmsportal3/Thanks for your help,Jason