<?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: Loading vtpk via VectorTileCache reports success but the map is not shown in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/loading-vtpk-via-vectortilecache-reports-success/m-p/1311442#M150</link>
    <description>&lt;P&gt;Okay, my fault. I did not download the correct geometry and thus the map was empty at my current viewpoint.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 11:59:00 GMT</pubDate>
    <dc:creator>padmalcom</dc:creator>
    <dc:date>2023-07-25T11:59:00Z</dc:date>
    <item>
      <title>Loading vtpk via VectorTileCache reports success but the map is not shown</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/loading-vtpk-via-vectortilecache-reports-success/m-p/1311431#M148</link>
      <description>&lt;P&gt;Hi, I managed to correctly download a VectorTileLayer to a local vtpk file. When I try to load the map from the vtpk file, I get no errors (onSuccess is called on each load() procedure) but the map is not shown. Now, I'm thinking if I'm missing sth essetial. Here is my code.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;fun &lt;/SPAN&gt;&lt;SPAN&gt;loadMap&lt;/SPAN&gt;() {&lt;BR /&gt;    &lt;SPAN&gt;coroutineScope&lt;/SPAN&gt;.&lt;SPAN&gt;launch &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;vtpk &lt;/SPAN&gt;= &lt;SPAN&gt;"/StyleItemResources/myVectorTiles.vtpk"&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;externalFilesDir &lt;/SPAN&gt;= &lt;SPAN&gt;context&lt;/SPAN&gt;?.getExternalFilesDir(&lt;SPAN&gt;null&lt;/SPAN&gt;)?.&lt;SPAN&gt;path&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;vectorTileCache &lt;/SPAN&gt;= VectorTileCache(File(&lt;SPAN&gt;externalFilesDir&lt;/SPAN&gt;, &lt;SPAN&gt;vtpk&lt;/SPAN&gt;).&lt;SPAN&gt;path&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;Timber&lt;/SPAN&gt;.d(&lt;SPAN&gt;"Loading vector tiles from &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;vectorTileCache&lt;/SPAN&gt;.&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;vectorTileCache&lt;/SPAN&gt;.load().&lt;SPAN&gt;onSuccess &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;Timber&lt;/SPAN&gt;.d(&lt;SPAN&gt;"vectorTileCache loaded."&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;arcGISVectorTiledLayer &lt;/SPAN&gt;=&lt;BR /&gt;                ArcGISVectorTiledLayer(&lt;SPAN&gt;vectorTileCache&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;arcGISVectorTiledLayer&lt;/SPAN&gt;.load().&lt;SPAN&gt;onSuccess &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;Timber&lt;/SPAN&gt;.d(&lt;SPAN&gt;"vectorTiledLayer loaded successfully."&lt;/SPAN&gt;)&lt;BR /&gt;                &lt;SPAN&gt;mapView&lt;/SPAN&gt;.&lt;SPAN&gt;map &lt;/SPAN&gt;= ArcGISMap(SpatialReference(&lt;SPAN&gt;MapConstants&lt;/SPAN&gt;.&lt;SPAN&gt;EPSG_3857&lt;/SPAN&gt;)).&lt;SPAN&gt;apply &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;                    &lt;SPAN&gt;operationalLayers&lt;/SPAN&gt;.add(&lt;SPAN&gt;arcGISVectorTiledLayer&lt;/SPAN&gt;)&lt;BR /&gt;                    load().&lt;SPAN&gt;onSuccess &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;                        &lt;SPAN&gt;Timber&lt;/SPAN&gt;.d(&lt;SPAN&gt;"Map loaded"&lt;/SPAN&gt;)&lt;BR /&gt;                    &lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            }&lt;/SPAN&gt;.&lt;SPAN&gt;onFailure &lt;/SPAN&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;s2 &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;Timber&lt;/SPAN&gt;.d(&lt;SPAN&gt;"vectorTiledLayer load failed. Status &lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;s2&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;            &lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        }&lt;/SPAN&gt;.&lt;SPAN&gt;onFailure &lt;/SPAN&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;s1 &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;Timber&lt;/SPAN&gt;.e(&lt;SPAN&gt;"vectorTileCache loading failed. Status &lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;s1&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    }&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jul 2023 11:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/loading-vtpk-via-vectortilecache-reports-success/m-p/1311431#M148</guid>
      <dc:creator>padmalcom</dc:creator>
      <dc:date>2023-07-25T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading vtpk via VectorTileCache reports success but the map is not shown</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/loading-vtpk-via-vectortilecache-reports-success/m-p/1311442#M150</link>
      <description>&lt;P&gt;Okay, my fault. I did not download the correct geometry and thus the map was empty at my current viewpoint.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 11:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/loading-vtpk-via-vectortilecache-reports-success/m-p/1311442#M150</guid>
      <dc:creator>padmalcom</dc:creator>
      <dc:date>2023-07-25T11:59:00Z</dc:date>
    </item>
  </channel>
</rss>

