<?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: 4.x MapImageLayer sublayer not honoring visible attribute in constructor in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-x-mapimagelayer-sublayer-not-honoring-visible/m-p/483625#M45073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Derek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;the MapImagerLayer property is sub&lt;SPAN style="color: #ff0000;"&gt;l&lt;/SPAN&gt;ayers NOT sub&lt;SPAN style="color: #ff0000;"&gt;L&lt;/SPAN&gt;ayers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2018 14:11:38 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-05-17T14:11:38Z</dc:date>
    <item>
      <title>4.x MapImageLayer sublayer not honoring visible attribute in constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-x-mapimagelayer-sublayer-not-honoring-visible/m-p/483624#M45072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When defining the sublayer collection of a MapImageLayer using a MapService in which sublayer default visibility is false, the MapImageLayer ignores the visible parameter defined in the constructuror.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: all layers in the MapService have a default visibility of false. MapImageLayer defined with two sublayers set to visible:true. SubLayer visible param is ignored. Uncomment the zoningLayer.when() function, which explicitly sets sublayer visibility, layer draws.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsbin.com/voqodop/edit?js,output" title="https://jsbin.com/voqodop/edit?js,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example two: Again, MapImageLayer with two sublayers. One sublayer with default visibility false in the MapService, the other with default visibility true in the map service. One sublayer draws, the other does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsbin.com/giloxaq/edit?js,output" title="https://jsbin.com/giloxaq/edit?js,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the expected behaviour? Seems to me that if visibility is defined as true in the constructor, the sublayer should render on load without the extra step of setting visibility on load. Otherwise, why define visibility in the constructor?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 00:33:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-x-mapimagelayer-sublayer-not-honoring-visible/m-p/483624#M45072</guid>
      <dc:creator>DerekMiller1</dc:creator>
      <dc:date>2018-05-17T00:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: 4.x MapImageLayer sublayer not honoring visible attribute in constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-x-mapimagelayer-sublayer-not-honoring-visible/m-p/483625#M45073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Derek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;the MapImagerLayer property is sub&lt;SPAN style="color: #ff0000;"&gt;l&lt;/SPAN&gt;ayers NOT sub&lt;SPAN style="color: #ff0000;"&gt;L&lt;/SPAN&gt;ayers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 14:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-x-mapimagelayer-sublayer-not-honoring-visible/m-p/483625#M45073</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-17T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: 4.x MapImageLayer sublayer not honoring visible attribute in constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-x-mapimagelayer-sublayer-not-honoring-visible/m-p/483626#M45074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it is. Thank you, Robert. That&amp;nbsp;takes care of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 15:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-x-mapimagelayer-sublayer-not-honoring-visible/m-p/483626#M45074</guid>
      <dc:creator>DerekMiller1</dc:creator>
      <dc:date>2018-05-17T15:56:47Z</dc:date>
    </item>
  </channel>
</rss>

