<?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: Why Gray and Hybrid basemaps count for 2 layers? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/why-gray-and-hybrid-basemaps-count-for-2-layers/m-p/459419#M1421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot. I'll make provision for the use of these basemaps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 14:45:30 GMT</pubDate>
    <dc:creator>EdgarCanul</dc:creator>
    <dc:date>2017-03-03T14:45:30Z</dc:date>
    <item>
      <title>Why Gray and Hybrid basemaps count for 2 layers?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/why-gray-and-hybrid-basemaps-count-for-2-layers/m-p/459417#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I begin my application with Street as basemap layer and two more feature layers, I have 3 layers in total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;size&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But when I change the basemap layer to Gray_base or Hybrid:&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setMapOptions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapOptions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;MapType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GRAY_BASE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;One more layer is added (4 after the change). If I&amp;nbsp;change again to other basemap not being GRAY_BASE or HYBRID the extra layer is removed (having 3 as initially)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why this happens? I think it's not an error in my code because even the sample code (the MapOptionsApp example) shows this behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to avoid this extra layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beforehand thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:11:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/why-gray-and-hybrid-basemaps-count-for-2-layers/m-p/459417#M1419</guid>
      <dc:creator>EdgarCanul</dc:creator>
      <dc:date>2017-03-02T22:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why Gray and Hybrid basemaps count for 2 layers?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/why-gray-and-hybrid-basemaps-count-for-2-layers/m-p/459418#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because the selected basemap consists of two layers: Base (Background) and Reference (Labels).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="333287" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/333287_pastedImage_1.png" style="width: 316px; height: 300px;" /&gt;&lt;IMG __jive_id="333288" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/333288_pastedImage_2.png" style="width: 296px; height: 294px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can examine these using &lt;A href="https://www.arcgis.com/home/item.html?id=8b3d38c0819547faa83f7b7aca80bd76"&gt;basemap item definition.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies your concern,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 06:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/why-gray-and-hybrid-basemaps-count-for-2-layers/m-p/459418#M1420</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2017-03-03T06:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why Gray and Hybrid basemaps count for 2 layers?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/why-gray-and-hybrid-basemaps-count-for-2-layers/m-p/459419#M1421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot. I'll make provision for the use of these basemaps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/why-gray-and-hybrid-basemaps-count-for-2-layers/m-p/459419#M1421</guid>
      <dc:creator>EdgarCanul</dc:creator>
      <dc:date>2017-03-03T14:45:30Z</dc:date>
    </item>
  </channel>
</rss>

