I am new to the Flex API and have gotten pretty far with configuring the new flex viewer (I downloaded the version with source) , but I am stuck on the LayerListWidget. I am trying to set it up to load layers from my dynamic map service. The dynamic map service displays fine. I have 3 services under basemaps (in config.xml), an aerial, streets (both tiled), and general data service(dynamic).
I can't figure out what in LayerListWidget.mxml I need to change to read the layers in my dynamic service. I hooked it up in config.xml:
<widget label="Layer List" x="600" y="400" icon="assets/images/i_layers.png"
config="widgets/LayerListWidget.xml"
url="widgets/LayerList/LayerListWidget.swf"/>
and it shows up in the toolbar and when you select it you get:
Application Error
Error:Event Target:[objectHTTPOperation]
Event Type: Fault
Fault Code: Server.Error.Request
Fault Info: HTTP request errror
The Layer List widget comes up but is empty. Love the sample viewer and appreciate its being made available, but I do wish there were more detailed explanations in the code to help configure it.
I assume it is not able to figure out where the layer is to pull from. Is there something else I need to change to configure this correctly? Thanks in advance!
Melissa