<?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: How to add several .tpk files while inizializing ArcGISTiledlayer? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375308#M4437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...but we do recommend you handle the Loaded event to check there were no errors in loading:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/E_Esri_ArcGISRuntime_ILoadable_Loaded.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/E_Esri_ArcGISRuntime_ILoadable_Loaded.htm"&gt;ILoadable.Loaded Event&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2020 16:34:12 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2020-10-20T16:34:12Z</dc:date>
    <item>
      <title>How to add several .tpk files while inizializing ArcGISTiledlayer?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375304#M4433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create basemap using several map .tpk file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basemap creation with one .tpk file works fine:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ArcGISTiledLayer tiledBasemapLayer = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map1.tpk");&lt;BR /&gt; await tiledBasemapLayer.LoadAsync();&lt;BR /&gt;Scene newScene = new Scene();&lt;BR /&gt; newScene.Basemap = new Basemap(tiledBasemapLayer);&lt;/P&gt;&lt;P&gt;Scene = newScene;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is how to make this with two or more .tpk files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ArcGISTiledLayer tiledBasemapLayer = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map1.tpk", "C:\\Users\\osipa\\Documents\\ArcGIS\\011020200\\map2.tpk") ;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -------error "tileCache doesn't contain constructor that takes&amp;nbsp;2 arguments."&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 19:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375304#M4433</guid>
      <dc:creator>VanyaIvanov</dc:creator>
      <dc:date>2020-10-19T19:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add several .tpk files while inizializing ArcGISTiledlayer?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375305#M4434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of creating one ArcGISTiledLayer pointing at 2 TPKs, create 2 separate ArcGISTiledLayers, each pointing to one TPK, and &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Mapping_Basemap__ctor_3.htm"&gt;add both of those layers to the new Basemap&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 19:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375305#M4434</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2020-10-19T19:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add several .tpk files while inizializing ArcGISTiledlayer?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375306#M4435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my soution. if somebody is interested in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;ArcGISTiledLayer tiledBasemapLayer1 = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map1.tpk");&lt;BR /&gt;await tiledBasemapLayer1.LoadAsync();&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;ArcGISTiledLayer tiledBasemapLayer2 = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map2.tpk");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;await tiledBasemapLayer2.LoadAsync();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Scene newScene = new Scene();&lt;BR /&gt;newScene.Basemap = new Basemap(new ArcGISTiledLayer[] { tiledBasemapLayer1, tiledBasemapLayer2 });&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Scene = newScene;&lt;/P&gt;&lt;DIV style="position: absolute; left: 419px; top: 313.2px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 08:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375306#M4435</guid>
      <dc:creator>VanyaIvanov</dc:creator>
      <dc:date>2020-10-20T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add several .tpk files while inizializing ArcGISTiledlayer?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375307#M4436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note, you don't need to explicitly call LoadAsync() on the layers.&amp;nbsp;The way Runtime handles &lt;A href="https://developers.arcgis.com/net/latest/wpf/guide/loadable-pattern.htm#ESRI_SECTION1_C3328D1C87D347D9940913A2356C7244"&gt;cascading dependencies&lt;/A&gt; will ensure that when the Scene&amp;nbsp;is displayed in a SceneView, the SceneView&amp;nbsp;will internally load the Scene, which will internally load the Basemap, which will internally load the two AGSTiledLayers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You typically&amp;nbsp;only need to explicitly load a&amp;nbsp;Loadable&amp;nbsp;object if you need to read properties from it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 14:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375307#M4436</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2020-10-20T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add several .tpk files while inizializing ArcGISTiledlayer?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375308#M4437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...but we do recommend you handle the Loaded event to check there were no errors in loading:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference/html/E_Esri_ArcGISRuntime_ILoadable_Loaded.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference/html/E_Esri_ArcGISRuntime_ILoadable_Loaded.htm"&gt;ILoadable.Loaded Event&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 16:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-add-several-tpk-files-while-inizializing/m-p/375308#M4437</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-10-20T16:34:12Z</dc:date>
    </item>
  </channel>
</rss>

