<?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: Display online and offline layers in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603372#M4164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not quite sure what you mean? But I am refering to your last example in the first post. The one above is online layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 08:05:51 GMT</pubDate>
    <dc:creator>TeroRönkkö</dc:creator>
    <dc:date>2015-02-18T08:05:51Z</dc:date>
    <item>
      <title>Display online and offline layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603369#M4161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every body&lt;/P&gt;&lt;P&gt;how do i display online layer below of offline layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Online Layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;ArcGISTiledMapServiceLayer &lt;/SPAN&gt;tileLayer = new ArcGISTiledMapServiceLayer(
&lt;SPAN&gt;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;
&amp;nbsp; mMapView.addLayer(tileLayer);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Offline Layer from .geodatabase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Geodatabase geodatabase = new Geodatabase(Environment
&amp;nbsp; .getExternalStorageDirectory().getPath()
&amp;nbsp; + "/ArcGIS/samples/OfflineRouting/Routing/5512.geodatabase")
;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;geodatabaseFeatureTablesList = geodatabase.getGeodatabaseTables();&lt;/SPAN&gt;
for (int i = geodatabaseFeatureTablesList.size() - 1; i &amp;gt;= 0; i--) {
addLayer();
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit :&lt;/P&gt;&lt;P&gt;Please note that I'm using Esri-android-Sdk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603369#M4161</guid>
      <dc:creator>HassanShatnawi</dc:creator>
      <dc:date>2021-12-12T01:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Display online and offline layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603370#M4162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for (GeodatabaseFeatureTable gdbFeatureTable : localGdb
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getGeodatabaseTables()) {
&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;&amp;nbsp; if (gdbFeatureTable.hasGeometry()){
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer fl = new FeatureLayer(gdbFeatureTable);



&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(fl);
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess in your example it would be&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;FeatureLayer fl = geodatabaseFeatureTableslist&lt;I&gt;;&lt;/I&gt;
mmapview.addLayer(fl);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603370#M4162</guid>
      <dc:creator>TeroRönkkö</dc:creator>
      <dc:date>2021-12-12T01:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display online and offline layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603371#M4163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this will display layers from .geodatabase above this layer &lt;/P&gt;&lt;OL class="dp-j" start="1"&gt;&lt;LI&gt;ArcGISTiledMapServiceLayer tileLayer = &lt;SPAN class="keyword"&gt;new ArcGISTiledMapServiceLayer(&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &lt;SPAN class="string"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;");&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; mMapView.addLayer(tileLayer);&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 08:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603371#M4163</guid>
      <dc:creator>HassanShatnawi</dc:creator>
      <dc:date>2015-02-18T08:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display online and offline layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603372#M4164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not quite sure what you mean? But I am refering to your last example in the first post. The one above is online layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 08:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603372#M4164</guid>
      <dc:creator>TeroRönkkö</dc:creator>
      <dc:date>2015-02-18T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display online and offline layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603373#M4165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first I'm appreciate your response &lt;/P&gt;&lt;P&gt;let me try to do more explanation for what I wont &lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------&lt;BR /&gt;I have an online layer like my comment above I add it to MapView&lt;/P&gt;&lt;P&gt;so can I read layers from offline .geodatabase file stored on SDcard and add it above the online layer so I can see my offline layer and out of its bound there will be an online layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 08:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603373#M4165</guid>
      <dc:creator>HassanShatnawi</dc:creator>
      <dc:date>2015-02-18T08:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display online and offline layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603374#M4166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I believe it will be shown on top of your online layer if you just add it to mapview after it as a featurelayer. Is that your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Add Baselayer (streetmap as in above)&lt;/P&gt;&lt;P&gt;2. Add Featurelayer from geodatabase&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 08:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/display-online-and-offline-layers/m-p/603374#M4166</guid>
      <dc:creator>TeroRönkkö</dc:creator>
      <dc:date>2015-02-18T08:15:49Z</dc:date>
    </item>
  </channel>
</rss>

