<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: A way to access a layer inside a map service without accessing it as a feature la in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313653#M7467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I believe I have the functions named pretty straight forward... Look for stuff like filterOutSubLayer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2013 21:25:38 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2013-01-29T21:25:38Z</dc:date>
    <item>
      <title>A way to access a layer inside a map service without accessing it as a feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313632#M7446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to access one layer of a map service to show it in a list.&amp;nbsp; I do not want to add it as a layer using /MapServer/0 in config.xml because then I lose the dynamic display properties that the /MapServer provides.&amp;nbsp; (The layer has 100,000 features so it blows up as a feature layer.)&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I get at it in a Map Service or is there a way to add a just layer in config.xml that is dynamic display wise?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have tried many things.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One was to publish a new map service each time but then there are so many map services the server bogs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second was to use setMaxAllowableOffset as in this post &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/49416-maxAllowableOffset-on-operationalLayers" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/49416-maxAllowableOffset-on-operationalLayers&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; But the ZOOM_END does not seem to be firing in 3.1.&amp;nbsp; This blog post &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://blogs.esri.com/esri/arcgis/2011/06/13/feature-layers-can-generalize-geometries-on-the-fly/" rel="nofollow" target="_blank"&gt;http://blogs.esri.com/esri/arcgis/2011/06/13/feature-layers-can-generalize-geometries-on-the-fly/&lt;/A&gt;&lt;SPAN&gt; says that this concept is what ArcGIS Online does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end all I want to do it be able to list layers multiple times, in multiple places, without having to create another Map Service all the time.&amp;nbsp; In other words granular control over how and where layers (not whole maps) are listed while still keeping the dynamic display properties).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Concept: Kinda like ArcGIS Online where I am building a map up from multiple layers, each of which may be in a different map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be very appreciated, this has been struggled with for some time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 18:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313632#M7446</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-24T18:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313633#M7447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to use sublayers for this?&amp;nbsp; So I can have the TOC display just one sublayer of a layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would also allow a user to reorder the draw order of sublayers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 19:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313633#M7447</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-24T19:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313634#M7448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering that myself but from what I have read I think sub layers are only used for creating different popup windows on each of your layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried feature layers with ondemand mode?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 19:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313634#M7448</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-01-24T19:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313635#M7449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks like on demand mode just limits the features to the current extent.&amp;nbsp; The problem is all of these are national layers and I am sure people will turn them on at the national (US) scale often.&amp;nbsp; Zoomed in they are not that slow but full extent the browser can not even load all 100K features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There must be a way because you can make just one layer of a map visible.&amp;nbsp; I am going to look into how the checkbox makes just one layer of the map visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 12:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313635#M7449</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-25T12:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313636#M7450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Have you looked at LayerDefinitions and/or visibleLayers on the ArcGISDynamicMapServiceLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 12:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313636#M7450</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-25T12:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313637#M7451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks this is really close.&amp;nbsp; Is this available in AS?&amp;nbsp; The mxml seems static.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am thinking I would make the TOC just like in ArcMap.&amp;nbsp; So I start with a empty TOC and Map (do not let the code load in the layers from the config.xml).&amp;nbsp; Then when the user clicks on a layer name (which is a sublayer) I then tell the TOC/Map to add that sub layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words the user click tells TOC to go ahead and load sublayer 0 of map service X.&amp;nbsp; (But do not load (or just not show) in the TOC say sublayer 1 of map service X)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 13:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313637#M7451</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-25T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313638#M7452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I directed you to ths widget before:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=4ed10ea387444952a3f3f501fee02b76"&gt;http://www.arcgis.com/home/item.html?id=4ed10ea387444952a3f3f501fee02b76&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But did you have a look at it because this does something similar to what you are trying, it allows you to add / remove layers after the application has loaded (these can be individual feature layers from a map service if required).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 13:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313638#M7452</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-01-25T13:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313639#M7453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at it briefly but I wanted a different UI.&amp;nbsp; Then when i hit the just one layer of a map service issue I had looked at so much stuff I forgot about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks promising.&amp;nbsp; But the issue I see is that it loads feature layers as /FeatureServer/0 but then they are not dynamically rendered like they are with /MapServer (at least if you say MapServer/0 they are not since they you have to say type feature not dynamic).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to show one layer (sublayer) out of a MapServer in the TOC.&amp;nbsp; So tell it - in this Map Service just put this sublayer in the TOC.&amp;nbsp; Some of our Map Service have 190+ layers and I just want one of those - and since it has 103K polygons it needs to be dynamic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I can edit that in...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:14:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313639#M7453</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-25T14:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313640#M7454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sure anything you can do in MXML you can do in AS (as all MXML actually gets turned into AS when compiled). For the visibleLayers all you do is hand it a array of layer IDs that you want visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313640#M7454</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-25T14:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313641#M7455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert.&amp;nbsp;&amp;nbsp; I then can change toc.categories to stop it from showing a tree nest structure right?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am guessing it will still show &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map Service name -&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group Name -&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Layer Name&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313641#M7455</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-25T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313642#M7456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; That is correct, it will still show up in the TOC structure just unchecked. Currently there is no way to just add one layer of a map service as type dynamic and not have all the rest of the layers show up in the TOC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313642#M7456</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-25T14:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313643#M7457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Someone before me was able to do that - looks like they used this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;toc.hideTopLevelItems = hideTopLevelItems;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; public function set hideTopLevelItems( value:Boolean ):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; _hideTopLevelItems = value;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // Propagate this property to child TOC components&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; for each (var toc:TOC in _childTocs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; toc.hideTopLevelItems = _hideTopLevelItems;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313643#M7457</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-25T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313644#M7458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Doug,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; That is correct, it will still show up in the TOC structure just unchecked. Currently there is no way to just add one layer of a map service as type dynamic and not have all the rest of the layers show up in the TOC.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems that in the TOCWidget.xml&amp;nbsp; &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;excludelayer mapservice="RCC WasteSites"&amp;gt;0,2&amp;lt;/excludelayer&amp;gt;&lt;/PRE&gt;&lt;SPAN&gt; with 3 layers in my dynamic map service will only display layer id=1 in the TOC (and only draws that layer)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have seen some that have done similar and thier approach was to put all layers in the exclude list, then programatically remove the layers they want to see.&amp;nbsp; Depending on the amount of "work" it needs to do, might be easier than manipulating the visibleLayers array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 00:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313644#M7458</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-01-29T00:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313645#M7459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rhett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I guess the only thing you missed is that Doug is not talking about the TOCWidget.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 01:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313645#M7459</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-29T01:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313646#M7460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rhett.&amp;nbsp; This is exactly what I did at first and it worked great in my samples.&amp;nbsp; But when I started on the real one I found that I could only exclude whole map services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert is correct I am talking about the MapSwitcherWidget.&amp;nbsp; But I am not tied to it.&amp;nbsp; Where is this TOCWidget?&amp;nbsp; Maybe I can use it or just use the code inside of it that is making the exclude work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&amp;nbsp; I found the widget - Roberts. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert it looks like you give toc.excludelayers a Object that is the layer name, and id array, and basemap false?&amp;nbsp; Any hint into how you made this work would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 12:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313646#M7460</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-29T12:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313647#M7461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Rhett,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I guess the only thing you missed is that Doug is not talking about the TOCWidget.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guess I should read the posts a little better &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 15:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313647#M7461</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-01-29T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313648#M7462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you modify the toc.exludelayers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying just this as a test but it is not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; excludedLayers = new ArrayCollection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var excludes:Object ={&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "MapTest",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ids: [1,2,3,4,5],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isbasemap: false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; excludedLayers.addItem(excludes);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; toc.excludeLayers = excludedLayers;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 17:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313648#M7462</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-01-29T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313649#M7463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You will have to dig into the code and look as there was multiple places that I added code to exclude sub layers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 18:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313649#M7463</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-29T18:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313650#M7464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I can succesfully manipulate the toc.excludeLayers, but is very specific about it's "needs".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you tell it to remove a sublayer that isn't there, it ignores.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you tell it to remove all ids, it will remove them, but keep the name in the TOC. need to exlude the layername without any sublayers defined if you want to completely remove from the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Might put a couple trace statements in as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(idsArray[0] == "")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idsArray = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var excludes:Object ={
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: name,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ids: idsArray,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isbasemap: false
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace("excludes.name ",excludes.name);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace("excludes.name ",excludes.ids); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; excludedLayers.addItem(excludes);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and change the excludlayer tag settings in the config to get an idea of the syntax/formatting required. But, if you get it right, it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not using any basemaps in my TOC, so I didn't have to mess with that section, I just let it add all basemaps to the exclude list, but as Robert mentioned, you would have to modify it anywhere that it getting called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my LayerListWidget, I modified the toc.as portion of it to only add layers in the excluded layers list. Was a lot easier as my list to exclude was much larger than the list to include.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313650#M7464</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-12T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: A way to access a layer inside a map service without accessing it as a feature la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313651#M7465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Re-read the posts, and not quite sure what you need.&amp;nbsp; If you are trying to do this programatically, then you would want to have a go at the excludedLayers array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it sounds kind of like you just want to be able to statically pick which layers/sublayers show in the TOC.&amp;nbsp; If that is it, Robert has the excludelayer tag in the config.xml that lets you exclude either a layer, or some/all of the sublayers.&amp;nbsp; No coding required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 18:47:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-way-to-access-a-layer-inside-a-map-service/m-p/313651#M7465</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-01-29T18:47:51Z</dc:date>
    </item>
  </channel>
</rss>

