Select to view content in your preferred language

Layers are shown twice in my layer list widget?

3858
8
09-02-2010 10:46 AM
JoshuaCoates
Deactivated User
Does anyone know why it shows my layer title twice for each one? The layer tree has my 3 layers and then when you click on one, it shows the exact same layer and you have to click it again to access the sub layers within that particular layer. Also, why is it that when I click on different layers that I want to turn on or off on my base map that they don't actually turn off? Does this have to do with me setting minimums and maximums on my mxd when I created the map service? For the service I used a msd of the map...I don't know if that matters either?!

<operationallayers>
         <layer label="" type="dynamic" visible="false"
                url="http://publicgis/PublicGISserver/rest/services/Basemap/MapServer"/>
                <layer label="" type="dynamic" visible="false" visiblelayers="1,4,5"
                url="http://publicgis/PublicGISserver/rest/services/2007_DFIRM/MapServer"/>
                <layer label="" type="dynamic" visible="false" visiblelayers="3,4"
                   url="http://publicgis/PublicGISserver/rest/services/2010_BartowFloodplain/MapServer"/>
           
        </operationallayers>


Thanks,
Josh
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Josh,

   I would say to test and see if this is an issues with your services or just the widget, you should remove your map services from the operational layers and add in one of ESRI to see if it acts identically.
0 Kudos
JoshuaCoates
Deactivated User
It does not act the same as when I plug in an ESRI URL. So it must be something wrong with the service?! However, when I open my .NET web app that I created in ArcGIS manager, the layers are displayed properly. I can not figure out what is wrong? I have 3 separate MXD's and services for the three layers that I have in operational layers. My basemap mapservice is the "Basemap" mxd I created and I also used this "Basemap" layer in my operational layers. If you open my mxd's ....lets say for example the "Basemap" mxd....I have one data frame titled "Basemap" and then my layers. I dont understand what would cause this to happen. The box by the duplicated "layer title" in the layer list widget tree will turn on all layers if you click it instead of only turning on and off which layers I have set to minimums and maximums in my map service.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Joshua,

  You do not have a group layer in the MXD that has all of the layers in it do you? How about going to your REST Service directory for say the basemaps mapservice by typing http://publicgis/PublicGISserver/rest/services/Basemap/MapServer in your browser and then taking a screen shot and attaching that to this thread.
0 Kudos
JoshuaCoates
Deactivated User
Here is the map service.
0 Kudos
JoshuaCoates
Deactivated User
Here is a PDF of my screen shot!
0 Kudos
JoshuaCoates
Deactivated User
Everything is fine now, I dont know how but after fixing the MXD's yesterday and them still not working. They are working today?! 🙂 I just cant figure out why, in my basemap layer for example, when I uncheck things...they are not actually turning off? If I stare at the feature on the map as I click.....I can see something happening....like its trying to turn off...or its almost like there are two of the same layer and one turns off but you still see it. I don't know if that makes sense but basically the layers are not turning off when I uncheck the box in the layer list.
0 Kudos
JoshuaCoates
Deactivated User
And also, I had it set up to where i put visiblelayers="layer ID value from service directory" in order to have certain features within a layer turned on automatically when the web app opens. But now they are not working?! I made sure the number next to each feature in each layer corresponded with the number value I used in the visiblelayers=" " part.?????
0 Kudos
KandaceKochivar
Deactivated User
Everything is fine now, I dont know how but after fixing the MXD's yesterday and them still not working.


Just a comment regarding fixing your mxds, updating your services, and not seeing changes immediately - I've found that if I make changes to my mxds/msds, I usually need to go into the ArcGIS Server REST API Admin and clear the REST API Cache before I'll see the updates in my services.

The ArcGIS Server REST API Admin can usually be accessed with a default installation of ArcGIS Server at http://<hostname>/ArcGIS/rest/admin.

Intervals can be set at which the REST API cache is automatically cleared, so that may be why you didn't see changes until the day after they were made.
0 Kudos