<excludelayers> <excludelayer mapservice="serviceNameInConfig">7</excludelayer> </excludelayers>This works fine when the viewer loads, sublayer 7 is not listed in the widget. Being that I have it turned on in the mxd it displays when the viewer loads as well, which is great. However, when I turn a layer on or off in the widget, the sublayer that is excluded turns off too. Once it turns off I can not get it to turn back on as it is excluded from the widget. I am using the latest version of both the viewer and the eLayerList. Any thoughts would be greatly appreciated.
Hey Robert,
I am having an issue with ElayerList Version 3.7 (compiled) and the Export Map Task and Print widget. When I use the excludelayers tag everything works fine for printing first time around. As soon as I turn on a layer that are labels for owner names a bunch of layers no longer print (they are either sub annotation, or grouped layers in the Service). If I turn the labels off and print again, it still looses all the layers on the print. Those layers will not print again unless the application is restarted. So I've commented the excludelayers option out in the elayerlist widget and all my layers are printing out for now. I believe this worked correct at 3.6 with a 10.2.1 install. I've recently gone to 10.3.0 and am just now downloading 10.3.1 onto a development server to see if I can reproduce those results there. Here is a link to a test page showing that problem...Manitowoc County Advanced GIS Viewer Here is a link to the new page with the exclude layers commented out... Manitowoc County Advanced GIS Viewer Here is a link to the Service that has subgroupings being excluded. Web_MercParBaseSandBox (MapServer)
You will need to zoom in to a single parcel to get all the anno to turn on, along with some other layers.
Thanks!
norm