<?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 Can we add multiple png files as raster layer on mapview? Please suggest some example, if possible. in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-we-add-multiple-png-files-as-raster-layer-on/m-p/432211#M2934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple raster data in png format on sd card. I want to display them over mapview, so that it can be used in offline too. Read most of documentation, but only seen loading of single raster layer. Is there anyway I could implement this feature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 06:50:38 GMT</pubDate>
    <dc:creator>SurajShrestha</dc:creator>
    <dc:date>2017-10-24T06:50:38Z</dc:date>
    <item>
      <title>Can we add multiple png files as raster layer on mapview? Please suggest some example, if possible.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-we-add-multiple-png-files-as-raster-layer-on/m-p/432211#M2934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple raster data in png format on sd card. I want to display them over mapview, so that it can be used in offline too. Read most of documentation, but only seen loading of single raster layer. Is there anyway I could implement this feature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 06:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-we-add-multiple-png-files-as-raster-layer-on/m-p/432211#M2934</guid>
      <dc:creator>SurajShrestha</dc:creator>
      <dc:date>2017-10-24T06:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we add multiple png files as raster layer on mapview? Please suggest some example, if possible.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-we-add-multiple-png-files-as-raster-layer-on/m-p/432212#M2935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; A list of supported raster formats can be found here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/guide/add-raster-data.htm#ESRI_SECTION1_D3B90253C5A945BEB79E521C344E945D" title="https://developers.arcgis.com/android/latest/guide/add-raster-data.htm#ESRI_SECTION1_D3B90253C5A945BEB79E521C344E945D"&gt;Add raster data—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, if you want to load multiple raster formats, you will need to iteratively invoke the raster layer constructor and then add each layer created to the mapview.&amp;nbsp; You would want something along the lines of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArrayList&amp;lt;String&amp;gt; paths = new ArrayList();&lt;/P&gt;&lt;P&gt;paths.add("/path/to/first.png");&lt;/P&gt;&lt;P&gt;paths.add("/path/to/second.png");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (String path : paths) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Raster raster = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; Raster(rasterFilePath); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RasterLayer rasterLayer = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; RasterLayer(raster);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mapview.addLayer(rasterLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-we-add-multiple-png-files-as-raster-layer-on/m-p/432212#M2935</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-10-25T13:50:25Z</dc:date>
    </item>
  </channel>
</rss>

