<?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: If once remove the layer from dynamic service layer how can i add it again in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/if-once-remove-the-layer-from-dynamic-service/m-p/363578#M8552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Srinivas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You are trying to add a layer object to the visibleLayers arraycollection when you should only be trying to add the layers id&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;myserviceid.visiblelayers.additemat(lyr.id,index)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2010 11:04:26 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2010-12-08T11:04:26Z</dc:date>
    <item>
      <title>If once remove the layer from dynamic service layer how can i add it again</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/if-once-remove-the-layer-from-dynamic-service/m-p/363577#M8551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually i am trying to create toc control to my application. If once i unchecked the layer in the datagrid by using the following code it is hiding from the map..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myserviceid.visiblelayers.deleteitemat(layerinfo.id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but if i use the following code it is not visible again..........&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var lyr:layer=layerinfos[1] as layerinfo;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myserviceid.visiblelayers.additemat(layer,index)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what are the necesary changes i need here.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks......&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 06:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/if-once-remove-the-layer-from-dynamic-service/m-p/363577#M8551</guid>
      <dc:creator>srinivasreddy</dc:creator>
      <dc:date>2010-12-08T06:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: If once remove the layer from dynamic service layer how can i add it again</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/if-once-remove-the-layer-from-dynamic-service/m-p/363578#M8552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Srinivas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You are trying to add a layer object to the visibleLayers arraycollection when you should only be trying to add the layers id&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;myserviceid.visiblelayers.additemat(lyr.id,index)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 11:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/if-once-remove-the-layer-from-dynamic-service/m-p/363578#M8552</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-12-08T11:04:26Z</dc:date>
    </item>
  </channel>
</rss>

