<?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: MapImageLayer does not honor default visibility of sublayers defined in a map service using ArcGIS API for JavaScript 4.4. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-does-not-honor-default-visibility-of/m-p/620910#M57978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But other invisible sublayers won't be listed in the LayerList widget. Is there any workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Nov 2017 20:37:33 GMT</pubDate>
    <dc:creator>YueZhou1</dc:creator>
    <dc:date>2017-11-01T20:37:33Z</dc:date>
    <item>
      <title>MapImageLayer does not honor default visibility of sublayers defined in a map service using ArcGIS API for JavaScript 4.4.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-does-not-honor-default-visibility-of/m-p/620909#M57977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have submitted the following bug for this issue: &lt;EM&gt;[BUG-000106674: MapImageLayer does not honor default visibility of sublayers defined in a map service using ArcGIS API for JavaScript 4.4.]&lt;/EM&gt; The workaround is to programmatically set the sublayer's visibility as follows: &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; &amp;nbsp; var layer = new MapImageLayer({ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: "&lt;SPAN style="text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;/SPAN&gt;", &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sublayers: [{ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id: 30, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visible: true &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; });&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; You will be able to track the status of this bug via MyEsri &lt;A href="https://my.esri.com/"&gt;&lt;SPAN style="text-decoration: underline;"&gt;https://my.esri.com&lt;/SPAN&gt;&lt;/A&gt;. Thank you for bringing this issue to our attention.&amp;nbsp;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;FYI-&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-does-not-honor-default-visibility-of/m-p/620909#M57977</guid>
      <dc:creator>mattprice</dc:creator>
      <dc:date>2017-07-19T15:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: MapImageLayer does not honor default visibility of sublayers defined in a map service using ArcGIS API for JavaScript 4.4.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-does-not-honor-default-visibility-of/m-p/620910#M57978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But other invisible sublayers won't be listed in the LayerList widget. Is there any workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-does-not-honor-default-visibility-of/m-p/620910#M57978</guid>
      <dc:creator>YueZhou1</dc:creator>
      <dc:date>2017-11-01T20:37:33Z</dc:date>
    </item>
  </channel>
</rss>

