<?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: Help and Suggestion in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/help-and-suggestion/m-p/654936#M2022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try loading the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;WmsLayer&lt;/SPAN&gt; before calling &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;getSublayers()&lt;/SPAN&gt;, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;WmsLayer wmsLayer = new WmsLayer(url, layerNames);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;assertEquals(0, wmsLayer.getSublayers().size());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;wmsLayer.loadAsync();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;mWmsLayer.addDoneLoadingListener(() -&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; if (wmsLayer.getLoadStatus() == LoadStatus.LOADED) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; assertTrue(wmsLayer.getSublayers().size() &amp;gt; 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2019 15:03:38 GMT</pubDate>
    <dc:creator>AlanLucas</dc:creator>
    <dc:date>2019-08-28T15:03:38Z</dc:date>
    <item>
      <title>Help and Suggestion</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/help-and-suggestion/m-p/654935#M2021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I am trying fetch sublayer from WmsLayer for visible and invisible those layers . but problem is when i am using&amp;nbsp; this code "this.layer.getSublayers().get(0).setVisible(this.visible);"&amp;nbsp; and run the code I am getting bound exception "Index 0 out of bounds for length 0". and i am debugging this code i get the value of sublayer list as Null. can anybody help how to i am able to get sublayer from Wmslayer? what is the wrong in my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 14:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/help-and-suggestion/m-p/654935#M2021</guid>
      <dc:creator>S_MMaruf</dc:creator>
      <dc:date>2019-08-28T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help and Suggestion</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/help-and-suggestion/m-p/654936#M2022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try loading the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;WmsLayer&lt;/SPAN&gt; before calling &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;getSublayers()&lt;/SPAN&gt;, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;WmsLayer wmsLayer = new WmsLayer(url, layerNames);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;assertEquals(0, wmsLayer.getSublayers().size());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;wmsLayer.loadAsync();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;mWmsLayer.addDoneLoadingListener(() -&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; if (wmsLayer.getLoadStatus() == LoadStatus.LOADED) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; assertTrue(wmsLayer.getSublayers().size() &amp;gt; 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 15:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/help-and-suggestion/m-p/654936#M2022</guid>
      <dc:creator>AlanLucas</dc:creator>
      <dc:date>2019-08-28T15:03:38Z</dc:date>
    </item>
  </channel>
</rss>

