Select to view content in your preferred language

Cannot post more than one Operationallayer?

767
3
05-11-2012 11:32 AM
LynnKim
Emerging Contributor
I used the downloaded template as a starting point for adding additional "Operationallayers" references.  However, when I try to add three (3), I only get the last entry to display when I press the "More..." pop-up widget.  It is probably something very simple (a closing XML tag)?



        <operationallayers>
            <layer label="Easements" type="dynamic" visible="false" alpha="1.0"
                   url="http://ln534arcgis/ArcGIS/rest/services/Flex_Easements/MapServer"/>
            <layer label="Cable Injection" type="dynamic" visible="false" alpha="1.0"
                   url="http://ln534arcgis/ArcGIS/rest/services/Flex_Cable_Injection/MapServer"/>
            <layer label="SDOT Street Classes" type="dynamic" visible="false" alpha="1.0"
                   url="http://ln534arcgis/ArcGIS/rest/services/Flex_SDOT_Street_Classes/MapServer"/>
        </operationallayers>


All three map services are pointing to local MXDs on a Windows 2003 Server box.  Any suggestions would be greatly appreciated!

Lynn
Tags (2)
0 Kudos
3 Replies
ThaoLe
by
Regular Contributor
That worked for me. Here's what I'm using for the operationallayer element:

        <operationallayers>
            <layer label="Rooftop" type="dynamic" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/Map..." />
   <layer label="Boundaries and Places" type="tiled" visible="false"
                  url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/..."/>
        </operationallayers>

Try replacing your operationallayer tag with the one above and see if it works for you.

Also, what version of the ArcGIS Viewer for Flex are you using? And are you referring to the "LayerList" widget when you  mentioned clicking on the "More..." popup?
0 Kudos
LynnKim
Emerging Contributor
Thank you for the reply.  I will try the cut/paste as you suggest.  I though I was following the template closely, but it wouldn't be the first time my fingers slipped.

And yes, you are correct about the LayerList widget.  Also, I am running FlexViewer 2.5.  Forgot to mention that in my original post.

Lynn
0 Kudos
LynnKim
Emerging Contributor
After many hours of frustration, I finally stumbled upon the solution: put a single space in front of each of the layer "labels."  This makes no sense to me, but it works, so I'm am doing it.


Previous:
<operationallayers>
<layer label="Easements" type="dynamic" visible="false" alpha="1.0" url="http://ln534arcgis/ArcGIS/rest/services/Flex_Easements/MapServer"/>
<layer label="Cable Injection" type="dynamic" visible="false" alpha="1.0" url="http://ln534arcgis/ArcGIS/rest/services/Flex_Cable_Injection/MapServer"/>
<layer label="SDOT Street Classes" type="dynamic" visible="false" alpha="1.0" url="http://ln534arcgis/ArcGIS/rest/services/Flex_SDOT_Street_Classes/MapServer"/>
</operationallayers>


New, working version:
<operationallayers>
<layer label=" Easements" type="dynamic" visible="false" alpha="1.0" url="http://ln534arcgis/ArcGIS/rest/services/Flex_Easements/MapServer"/>
<layer label=" Cable Injection" type="dynamic" visible="false" alpha="1.0" url="http://ln534arcgis/ArcGIS/rest/services/Flex_Cable_Injection/MapServer"/>
<layer label=" SDOT Street Classes" type="dynamic" visible="false" alpha="1.0"url="http://ln534arcgis/ArcGIS/rest/services/Flex_SDOT_Street_Classes/MapServer"/>
</operationallayers>


After asking a cooworker about this, he suggested maybe a version of IIS?

Host environment:ArcGIS Server 9.3 on a Windows 2003, SP2, Virtual Machine)

Very curious indeed, but this is what I found ended up working....
0 Kudos