<?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: The map from local .TPK file is displayed only after I zoom it, Android SDK 100.15.4 in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-map-from-local-tpk-file-is-displayed-only/m-p/1390240#M6178</link>
    <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;This is likely related to the scale range (min/max scale) of your tpk data. You should be able to find out what the scale range is, by either:&lt;BR /&gt;- Reading the values of&amp;nbsp;ArcGISTiledLayer.minScale &amp;amp;&amp;nbsp;ArcGISTiledLayer.maxScale once the layer has loaded.&lt;/P&gt;&lt;P&gt;- Or by reading the TileInfo obtained from ArcGISTiledLayer.tileInfo once the layer has loaded. TileInfo.&lt;SPAN&gt;levelsOfDetail gives you access to each LevelOfDetail which in turn gives you the scale values of each level.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Once you know the min/max scale of your ArcGISTiledLayer you can set these properties on your ArcGISMap instance with ArcGISMap.minScale &amp;amp; ArcGISMap.maxScale. The MapView will then apply that min scale upon initial drawing of the map so your map should appear at the appropriate tile level from the start.&lt;BR /&gt;&lt;BR /&gt;See related post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-calculate-min-and-max-zoom-scales-for/m-p/1113294/highlight/true#M5643" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-calculate-min-and-max-...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;related sample:&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/kotlin/sample-code/set-min-max-scale/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/android/kotlin/sample-code/set-min-max-scale/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 09:56:36 GMT</pubDate>
    <dc:creator>GuntherHeppner</dc:creator>
    <dc:date>2024-03-04T09:56:36Z</dc:date>
    <item>
      <title>The map from local .TPK file is displayed only after I zoom it, Android SDK 100.15.4</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-map-from-local-tpk-file-is-displayed-only/m-p/1389966#M6177</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I had an Android application that display a local .TPK file,, stored on the phone.&lt;/P&gt;&lt;P&gt;Starting with Android 14 the application does not start and I made an upgrade to ArcGis Runtime SDK 100.15.4&lt;/P&gt;&lt;P&gt;Now the map is displayed but I need to zoom it in order to make it visible. When the map is launched, the screen is with Esri grid, but the map is not visible. As soon as I was zoom it, the map become visible and I can zoom in or zoom out.&lt;/P&gt;&lt;P&gt;I think there is a scale issue or something like that. I read a lot but I did not found any relevant information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you any idea?&lt;/P&gt;&lt;P&gt;The code is below:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;MapView mmapView &lt;/SPAN&gt;= findViewById(&lt;SPAN&gt;R&lt;/SPAN&gt;.&lt;SPAN&gt;id&lt;/SPAN&gt;.&lt;SPAN&gt;mapView&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;ArcGISRuntimeEnvironment&lt;/SPAN&gt;.&lt;SPAN&gt;setApiKey&lt;/SPAN&gt;(API_KEY);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;String extDirName &lt;/SPAN&gt;=&lt;SPAN&gt;Environment&lt;/SPAN&gt;.&lt;SPAN&gt;getExternalStoragePublicDirectory&lt;/SPAN&gt;(&lt;SPAN&gt;Environment&lt;/SPAN&gt;.&lt;SPAN&gt;DIRECTORY_DCIM&lt;/SPAN&gt;) + &lt;SPAN&gt;File&lt;/SPAN&gt;.&lt;SPAN&gt;separator &lt;/SPAN&gt;+ &lt;SPAN&gt;"Folder/"&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;String filename &lt;/SPAN&gt;=&lt;SPAN&gt;"myTPK.tpk"&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;String tpkFile &lt;/SPAN&gt;= &lt;SPAN&gt;extDirName &lt;/SPAN&gt;+ &lt;SPAN&gt;filename&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TileCache tileCache &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;TileCache(&lt;SPAN&gt;tpkFile&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;ArcGISTiledLayer tiledLayer &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;ArcGISTiledLayer(&lt;SPAN&gt;tileCache&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;Basemap basemap &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;Basemap(&lt;SPAN&gt;tiledLayer&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;ArcGISMap map &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;ArcGISMap(&lt;SPAN&gt;basemap&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;mmapView&lt;/SPAN&gt;.setMap(&lt;SPAN&gt;map&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;mmapView&lt;/SPAN&gt;.setVisibility(&lt;SPAN&gt;View&lt;/SPAN&gt;.&lt;SPAN&gt;VISIBLE&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;mmapView&lt;/SPAN&gt;.setWrapAroundMode(&lt;SPAN&gt;WrapAroundMode&lt;/SPAN&gt;.&lt;SPAN&gt;ENABLE_WHEN_SUPPORTED&lt;/SPAN&gt;);&lt;/DIV&gt;</description>
      <pubDate>Sun, 03 Mar 2024 06:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-map-from-local-tpk-file-is-displayed-only/m-p/1389966#M6177</guid>
      <dc:creator>RobertAnisoiu1</dc:creator>
      <dc:date>2024-03-03T06:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: The map from local .TPK file is displayed only after I zoom it, Android SDK 100.15.4</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-map-from-local-tpk-file-is-displayed-only/m-p/1390240#M6178</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;This is likely related to the scale range (min/max scale) of your tpk data. You should be able to find out what the scale range is, by either:&lt;BR /&gt;- Reading the values of&amp;nbsp;ArcGISTiledLayer.minScale &amp;amp;&amp;nbsp;ArcGISTiledLayer.maxScale once the layer has loaded.&lt;/P&gt;&lt;P&gt;- Or by reading the TileInfo obtained from ArcGISTiledLayer.tileInfo once the layer has loaded. TileInfo.&lt;SPAN&gt;levelsOfDetail gives you access to each LevelOfDetail which in turn gives you the scale values of each level.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Once you know the min/max scale of your ArcGISTiledLayer you can set these properties on your ArcGISMap instance with ArcGISMap.minScale &amp;amp; ArcGISMap.maxScale. The MapView will then apply that min scale upon initial drawing of the map so your map should appear at the appropriate tile level from the start.&lt;BR /&gt;&lt;BR /&gt;See related post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-calculate-min-and-max-zoom-scales-for/m-p/1113294/highlight/true#M5643" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-calculate-min-and-max-...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;related sample:&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/kotlin/sample-code/set-min-max-scale/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/android/kotlin/sample-code/set-min-max-scale/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 09:56:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-map-from-local-tpk-file-is-displayed-only/m-p/1390240#M6178</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2024-03-04T09:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: The map from local .TPK file is displayed only after I zoom it, Android SDK 100.15.4</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-map-from-local-tpk-file-is-displayed-only/m-p/1392362#M6182</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for all your help, Gunther. The problem was solved. By setting a minimum scale in application, the map become visible when the application is open.&amp;nbsp; The code is below&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;map.setMinScale(&lt;SPAN&gt;150000&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 06:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-map-from-local-tpk-file-is-displayed-only/m-p/1392362#M6182</guid>
      <dc:creator>RobertAnisoiu1</dc:creator>
      <dc:date>2024-03-07T06:12:17Z</dc:date>
    </item>
  </channel>
</rss>

