<?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 Layers not showing up in an mmpk on Android in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/layers-not-showing-up-in-an-mmpk-on-android/m-p/226477#M1414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to display a mmpk map. I get some of the details but i'm not getting the details from the layers with in the mmpk. there are about 7 layers in this file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code to make sure these are visible. I'm doing this within a&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;addDoneLoadingListener&lt;/SPAN&gt; when the map is loaded.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;LayerList llist = &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMap&lt;/SPAN&gt;.getOperationalLayers();

&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;i = &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;; i &amp;lt; llist.size(); ++i)
{
&amp;nbsp; FeatureLayer featureLayer = (FeatureLayer)llist.get( i ) ;
&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(featureLayer != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer.setLabelsEnabled(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer.setVisible( &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true &lt;/SPAN&gt;);
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what might be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note this was my first attempt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;i = &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;; i &amp;lt; llist.size(); ++i)
 &lt;SPAN style="color: #808080; font-style: italic;"&gt; {
&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; llist.get( i ).setVisible( true )&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 11:01:59 GMT</pubDate>
    <dc:creator>BrianWeedman</dc:creator>
    <dc:date>2021-12-11T11:01:59Z</dc:date>
    <item>
      <title>Layers not showing up in an mmpk on Android</title>
      <link>https://community.esri.com/t5/developers-questions/layers-not-showing-up-in-an-mmpk-on-android/m-p/226477#M1414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to display a mmpk map. I get some of the details but i'm not getting the details from the layers with in the mmpk. there are about 7 layers in this file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code to make sure these are visible. I'm doing this within a&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;addDoneLoadingListener&lt;/SPAN&gt; when the map is loaded.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;LayerList llist = &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMap&lt;/SPAN&gt;.getOperationalLayers();

&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;i = &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;; i &amp;lt; llist.size(); ++i)
{
&amp;nbsp; FeatureLayer featureLayer = (FeatureLayer)llist.get( i ) ;
&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(featureLayer != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer.setLabelsEnabled(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer.setVisible( &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true &lt;/SPAN&gt;);
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what might be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note this was my first attempt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;i = &lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;; i &amp;lt; llist.size(); ++i)
 &lt;SPAN style="color: #808080; font-style: italic;"&gt; {
&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; llist.get( i ).setVisible( true )&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/layers-not-showing-up-in-an-mmpk-on-android/m-p/226477#M1414</guid>
      <dc:creator>BrianWeedman</dc:creator>
      <dc:date>2021-12-11T11:01:59Z</dc:date>
    </item>
  </channel>
</rss>

