<?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: ArcGISTiledLayer from TPKX file in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgistiledlayer-from-tpkx-file/m-p/1179937#M5774</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I verified this scenario in 2D and 3D for android. I have a local tpkx file that loads fine.&lt;BR /&gt;below is the kotlin code for 3D:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;filePath &lt;/SPAN&gt;=&lt;BR /&gt;        &lt;SPAN&gt;TiledPackageWorldImagery &lt;/SPAN&gt;?: &lt;SPAN&gt;throw &lt;/SPAN&gt;IllegalStateException(&lt;SPAN&gt;"file directory does not exist"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;tileCache &lt;/SPAN&gt;= TileCache(&lt;SPAN&gt;filePath&lt;/SPAN&gt;.&lt;SPAN&gt;absolutePath&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;tiledLayer &lt;/SPAN&gt;= ArcGISTiledLayer(&lt;SPAN&gt;tileCache&lt;/SPAN&gt;)&lt;BR /&gt;sceneView.&lt;SPAN&gt;scene &lt;/SPAN&gt;= ArcGISScene(Basemap(&lt;SPAN&gt;tiledLayer&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;P&gt;Few questions I have:&lt;BR /&gt;Did you get any error message in the logcat?&amp;nbsp;&lt;BR /&gt;Does your app crash in 3D? or does it load the scene but without the tiledlayer?&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2022 21:32:04 GMT</pubDate>
    <dc:creator>PriyankaRupani</dc:creator>
    <dc:date>2022-06-03T21:32:04Z</dc:date>
    <item>
      <title>ArcGISTiledLayer from TPKX file</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgistiledlayer-from-tpkx-file/m-p/1177434#M5772</link>
      <description>&lt;P&gt;I have created a ArcGISTiledLayer that loads a TPKX file. In 2D the tiled layer can be displayed, however in 3D it doesn't display at all.&lt;/P&gt;&lt;P&gt;Any idea on troubleshooting this issue?&lt;/P&gt;&lt;PRE&gt;// 3D loading the tile package&lt;BR /&gt;TileCache tileCache = &lt;SPAN&gt;new &lt;/SPAN&gt;TileCache(file.getAbsolutePath())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;ArcGISTiledLayer tiledLayer = &lt;SPAN&gt;new &lt;/SPAN&gt;ArcGISTiledLayer(tileCache)&lt;SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;// ... after tiledLayer is loaded successfully - &lt;/SPAN&gt;create the scene from the tile layer&lt;BR /&gt;&lt;SPAN&gt;sceneView&lt;/SPAN&gt;.setScene(&lt;SPAN&gt;new &lt;/SPAN&gt;ArcGISScene(&lt;SPAN&gt;new &lt;/SPAN&gt;Basemap(tiledLayer)))&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 01:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgistiledlayer-from-tpkx-file/m-p/1177434#M5772</guid>
      <dc:creator>TayLee</dc:creator>
      <dc:date>2022-05-26T01:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISTiledLayer from TPKX file</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgistiledlayer-from-tpkx-file/m-p/1179937#M5774</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I verified this scenario in 2D and 3D for android. I have a local tpkx file that loads fine.&lt;BR /&gt;below is the kotlin code for 3D:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;filePath &lt;/SPAN&gt;=&lt;BR /&gt;        &lt;SPAN&gt;TiledPackageWorldImagery &lt;/SPAN&gt;?: &lt;SPAN&gt;throw &lt;/SPAN&gt;IllegalStateException(&lt;SPAN&gt;"file directory does not exist"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;tileCache &lt;/SPAN&gt;= TileCache(&lt;SPAN&gt;filePath&lt;/SPAN&gt;.&lt;SPAN&gt;absolutePath&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;tiledLayer &lt;/SPAN&gt;= ArcGISTiledLayer(&lt;SPAN&gt;tileCache&lt;/SPAN&gt;)&lt;BR /&gt;sceneView.&lt;SPAN&gt;scene &lt;/SPAN&gt;= ArcGISScene(Basemap(&lt;SPAN&gt;tiledLayer&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;P&gt;Few questions I have:&lt;BR /&gt;Did you get any error message in the logcat?&amp;nbsp;&lt;BR /&gt;Does your app crash in 3D? or does it load the scene but without the tiledlayer?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 21:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgistiledlayer-from-tpkx-file/m-p/1179937#M5774</guid>
      <dc:creator>PriyankaRupani</dc:creator>
      <dc:date>2022-06-03T21:32:04Z</dc:date>
    </item>
  </channel>
</rss>

