<?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 ArcGIS Online API Javascript - toggle layer visibility in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-api-javascript-toggle-layer/m-p/72814#M6569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a webmap on ArcGIS Online (I dont use ArcGIS Server) and would like to create an application with js. This, I already was able to do. However, I am wondering how it is possible to toggle the layer visibility. I read the tutorial how to toggle layers provided by ArcGIS. Anyway, it uses the expression "ArcGISDynamicMapServiceLayer.setVisibleLayers()". But I cant use this expression when I just uploaded a map to ArcGIS Online and I use this webmap in js right? I dont have a direkt URL to the layers of the webmap. Havent found a solution how to toggle the layer visibility. Would be glad to get some hints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2014 05:05:40 GMT</pubDate>
    <dc:creator>MonaBartling</dc:creator>
    <dc:date>2014-03-31T05:05:40Z</dc:date>
    <item>
      <title>ArcGIS Online API Javascript - toggle layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-api-javascript-toggle-layer/m-p/72814#M6569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a webmap on ArcGIS Online (I dont use ArcGIS Server) and would like to create an application with js. This, I already was able to do. However, I am wondering how it is possible to toggle the layer visibility. I read the tutorial how to toggle layers provided by ArcGIS. Anyway, it uses the expression "ArcGISDynamicMapServiceLayer.setVisibleLayers()". But I cant use this expression when I just uploaded a map to ArcGIS Online and I use this webmap in js right? I dont have a direkt URL to the layers of the webmap. Havent found a solution how to toggle the layer visibility. Would be glad to get some hints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 05:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-api-javascript-toggle-layer/m-p/72814#M6569</guid>
      <dc:creator>MonaBartling</dc:creator>
      <dc:date>2014-03-31T05:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online API Javascript - toggle layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-api-javascript-toggle-layer/m-p/72815#M6570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This might help you&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_legendvisible.html"&gt;Toggle Layer Visibility&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This forum post might help you&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/104131-Toggle-Feature-Layer-with-a-checkbox?highlight=layer+visibility"&gt;Toggle Visibility&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manojraj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 06:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-api-javascript-toggle-layer/m-p/72815#M6570</guid>
      <dc:creator>ManojrajTeli</dc:creator>
      <dc:date>2014-03-31T06:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online API Javascript - toggle layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-api-javascript-toggle-layer/m-p/72816#M6571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Manojraj for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the example also works with "ArcGISDynamicMapServiceLayer", which means that I need a direct link to the layer I want to toggle. But how is that posible if I have the layers in my webmap and only a link to that map and not to the layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 06:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-online-api-javascript-toggle-layer/m-p/72816#M6571</guid>
      <dc:creator>MonaBartling</dc:creator>
      <dc:date>2014-03-31T06:35:23Z</dc:date>
    </item>
  </channel>
</rss>

