Select to view content in your preferred language

Layerlist widget

2255
5
12-07-2010 12:15 PM
RichardHolloway
Emerging Contributor
Confused how to configure this.  Looked at other posts but some actual code showing how this is done would be great.  In addition does each layer need to be a  webservice or can it select from the .mxd for all the layers or do I need to create a seperate .mxd for each layer?
Tags (2)
0 Kudos
5 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
RichardHolloway
Emerging Contributor
I chked that out.  Maybe I am reading too much into it but I see how they exclude items but don't you have to have a webservice for each layer?  I am new to ArcGIS stuff being just a .NET guy.  Its the xml code I am interested in seeing as to how you actually set it up.  So in the doc I read this.  "The list of layers that appear in the widget are the operational layers listed in the Viewer application's main configuration file.
".  So are they automatically included if they are in the operational layers?
0 Kudos
RichardHolloway
Emerging Contributor
Ok...finally figured it out that you had to add the layer to the operational layers in the config.xml.  My issue now is the layer wont even show even though I have my service path correct as I tested it out.
0 Kudos
DasaPaddock
Esri Regular Contributor
What is your <layer> tag? Is your Viewer url on the same host and domain as your ArcGIS Server? If not, you'll need to add a crossdomain.xml file to your ArcGIS Server. Also, you can use a tool like HttpFox to see what requests are being make and if any of them are failing.
0 Kudos
RichardHolloway
Emerging Contributor
This is weird but...I had to make the operational layer dynamic and add this
info="widgets/LayerList/LayerListWidget.swf"
         infoconfig="widgets/Layerlist/LayerListWidget.xml"
to the operational tag as well.
0 Kudos