Select to view content in your preferred language

enhance layer list - exclude layers?

2807
4
Jump to solution
10-08-2014 05:44 PM
AlistairFox
Regular Contributor

Hi,

this widget is cool, http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18  however it doesn't seem to exclude the layers I set in the widget. Any ideas? is this a bug. They are editable feature layers, is that a limitation?

Cheers

Alistair

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Allistar,

   Because you are using a featurelayer and not a dynamic layer you should not include the layer id in the exclude:

<excludelayer mapservice="Section8 Non Defence users"/>

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Alistair,

   Can you post your xml configuration for excluding those layers?

0 Kudos
AlistairFox
Regular Contributor

eLayerList config below and then an example of the 1st layer being reference from the config.xml

<?xml version="1.0" ?>

<configuration>

    <labels>

        <visibilitylabel>Layer Visibility</visibilitylabel>

        <expandall>Expand All Layers</expandall>

        <collapseall>Collapse All Layers</collapseall>

        <zoomtomakevisible>Zoom To Make Visible</zoomtomakevisible>

    </labels>

    <tocsettings>

        <collapselegends>true</collapselegends>

        <disablezoomtomenuoption>false</disablezoomtomenuoption>

        <expanded everything="false">true</expanded>

    </tocsettings>

    <excludegraphiclayers>true</excludegraphiclayers>

    <excludebasemaplayers>true</excludebasemaplayers>

    <usenewesridescription>false</usenewesridescription>

    <excludelayers>

        <excludelayer mapservice="Section8 Non Defence users">7</excludelayer>

        <excludelayer mapservice="Section7 Security and Safety Considerati">6</excludelayer>

        <excludelayer mapservice="Section6 Design, Traffic and Property Co">5</excludelayer>

        <excludelayer mapservice="Section5 Engineering Considerations">4</excludelayer>

        <excludelayer mapservice="Section4 Environment &amp; Heritage Consider">3</excludelayer>

        <excludelayer mapservice="Section3 Zone or Master Planning">2</excludelayer>

        <excludelayer mapservice="Section2 Technical">1</excludelayer>

        <excludelayer mapservice="Section1 AirFields and Aviation">0</excludelayer>

    </excludelayers>

</configuration>

<layer type="feature" label="Section8 Non Defence users" url="https://xxxxxxxxxx/arcgis/rest/services/Land121/Section_Considerations/FeatureServer/7" popupconfig="popups/PopUp_6.xml" mode="onDemand" definitionexpression="SiteNumber = 21" visible="false"/>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Allistar,

   Because you are using a featurelayer and not a dynamic layer you should not include the layer id in the exclude:

<excludelayer mapservice="Section8 Non Defence users"/>

0 Kudos
AlistairFox
Regular Contributor

thanks. App builder doesn't allow you option to remove the layer id's. so manual edit of config file works.

thanks

0 Kudos