<?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: Adding TileCache (TiledLayer) into MapView throws &amp;quot;No Data&amp;quot; error in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4742#M68</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear its working.&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;The vector tile export limit is technically controlled by the service so there's not a general number we can give, but&lt;/P&gt;&lt;P&gt;export limits are typically about the same between image and vector services - at least for Esri basemaps. However, since the vector tiles are vector-based and not image-based they tend to be significantly smaller than their image tile counterparts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The service specific vector tile export limit is contained in the &lt;EM&gt;maxExportTilesCount of the VectorTileService &lt;/EM&gt;metadata (&lt;A href="https://developers.arcgis.com/rest/services-reference/vector-tile-service.htm"&gt;REST doc&lt;/A&gt;). You can get that by viewing the service URL in a browser or by creating and loading an&amp;nbsp;&lt;EM&gt;ArcGISVectorTiledLayer&lt;/EM&gt; in the Runtime API and checking the &lt;EM&gt;SourceInfo.MaxExportTilesCount&lt;/EM&gt; property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2018 14:00:16 GMT</pubDate>
    <dc:creator>GregDeStigter</dc:creator>
    <dc:date>2018-08-24T14:00:16Z</dc:date>
    <item>
      <title>Adding TileCache (TiledLayer) into MapView throws "No Data" error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4739#M65</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a Xamarin.Forms app that allows users to specify a basemap and offline-capable feature layers. The basemap and layers are then taken offline. The basemaps that we are allowing our users to pick from are the Esri created basemaps "For Export". Found here -&amp;nbsp;&lt;A class="link-titled" href="http://www.arcgis.com/home/search.html?q=for%20export&amp;amp;t=content&amp;amp;focus=layers&amp;amp;start=1&amp;amp;sortOrder=desc&amp;amp;sortField=relevance" title="http://www.arcgis.com/home/search.html?q=for%20export&amp;amp;t=content&amp;amp;focus=layers&amp;amp;start=1&amp;amp;sortOrder=desc&amp;amp;sortField=relevance"&gt;http://www.arcgis.com/home/search.html?q=for%20export&amp;amp;t=content&amp;amp;focus=layers&amp;amp;start=1&amp;amp;sortOrder=desc&amp;amp;sortField=relevance&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the problem: We have the ExportTileCacheTask being created based on which basemap the user chooses. The job then creates the .tpk file and stores it on the device. The problem is when the user navigates to the page where the MapView and the Map are created. The .tpk gets loaded into a Basemap layer from the device, but always throws a "No Data" error. This is happening specifically with the Topographic and Streets basemaps, but we have it working with the Imagery basemap. We can't identify any differences between these basemaps, and the code always runs the same regardless of which basemap is chosen. Here is some of our code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var portalItem = await PortalItem.CreateAsync(new Uri(BASEMAP_BASEURL + mapConfig.SelectedBasemap.ID));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Imagery Url = &lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=226d23f076da478bba4589e7eae95952" title="https://www.arcgis.com/home/item.html?id=226d23f076da478bba4589e7eae95952"&gt;https://www.arcgis.com/home/item.html?id=226d23f076da478bba4589e7eae95952&lt;/A&gt;&lt;BR /&gt;//Topo Url = &lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=df541726b3df4c0caf99255bb1be4c86" title="https://www.arcgis.com/home/item.html?id=df541726b3df4c0caf99255bb1be4c86"&gt;https://www.arcgis.com/home/item.html?id=df541726b3df4c0caf99255bb1be4c86&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var task = await ExportTileCacheTask.CreateAsync(portalItem.ServiceUrl, cred);&lt;BR /&gt; var areaOfInterest = currentView;&lt;BR /&gt; var minScale = task.ServiceInfo.MinScale;&lt;BR /&gt; var maxScale = task.ServiceInfo.MaxScale;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var parameters = await task.CreateDefaultExportTileCacheParametersAsync(areaOfInterest, minScale, maxScale);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var path = AppSettings.TPKFilePath;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var job = task.ExportTileCache(parameters, path);&lt;BR /&gt; var tileCache = await job.GetResultAsync();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Note that the job.Status always returns a JobStatus.Succeeded. We immediately check the resulting tileCache, and it results in a "No Data" error.&lt;BR /&gt;Pulling .tpk out and into the MapView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;TileCache tileCache = new TileCache(AppSettings.TPKFilePath);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;await tileCache.LoadAsync();&lt;BR /&gt; }&lt;BR /&gt; catch (Exception)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Debug.WriteLine(tileCache.LoadError);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Always states "No Data"&lt;BR /&gt; }&lt;BR /&gt; ArcGISTiledLayer tiledLayer = new ArcGISTiledLayer(tileCache);&lt;BR /&gt;myMapView.Map.Basemap = new Basemap(tiledLayer);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we remove the Try/Catch and don't .LoadAsync() the tileCache, the MapView becomes empty. Even the other operational layers we add after the basemap become empty. Whereas the Imagery basemap loads just fine. So the question is: why won't other basemaps work the same way? Thanks for any help in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4739#M65</guid>
      <dc:creator>DaxtonHorspool</dc:creator>
      <dc:date>2018-08-23T21:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding TileCache (TiledLayer) into MapView throws "No Data" error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4740#M66</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the Topo basemap you're referencing is a vector tile basemap. Those are different and have a different download task&amp;nbsp;(`ExportVectorTilesTask`) and download a different format (.vtpk)&amp;nbsp;which&amp;nbsp;may or may not be what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The export enabled image tiled version of the Topo basemap is here:&lt;/P&gt;&lt;P style="color: #287433; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3D" rel="nofollow" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;eaee8760ed754019a964a6d785613a50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if you want to give that a shot. That should work with the code you have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 22:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4740#M66</guid>
      <dc:creator>GregDeStigter</dc:creator>
      <dc:date>2018-08-23T22:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding TileCache (TiledLayer) into MapView throws "No Data" error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4741#M67</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did the trick! Thanks, I was not understanding the difference between Vector and Tiled. On a side note, which one typically allows more tiles to be taken offline? I know most Tiled state about 100,000 - 150,000. I noticed the vector's only say: "&lt;STRONG style="color: #4c4c4c; background-color: #ffffff; font-weight: 500;"&gt;support exporting small volumes of basemap tiles for offline use " though. Thanks again for the help!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 23:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4741#M67</guid>
      <dc:creator>DaxtonHorspool</dc:creator>
      <dc:date>2018-08-23T23:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding TileCache (TiledLayer) into MapView throws "No Data" error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4742#M68</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear its working.&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;The vector tile export limit is technically controlled by the service so there's not a general number we can give, but&lt;/P&gt;&lt;P&gt;export limits are typically about the same between image and vector services - at least for Esri basemaps. However, since the vector tiles are vector-based and not image-based they tend to be significantly smaller than their image tile counterparts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The service specific vector tile export limit is contained in the &lt;EM&gt;maxExportTilesCount of the VectorTileService &lt;/EM&gt;metadata (&lt;A href="https://developers.arcgis.com/rest/services-reference/vector-tile-service.htm"&gt;REST doc&lt;/A&gt;). You can get that by viewing the service URL in a browser or by creating and loading an&amp;nbsp;&lt;EM&gt;ArcGISVectorTiledLayer&lt;/EM&gt; in the Runtime API and checking the &lt;EM&gt;SourceInfo.MaxExportTilesCount&lt;/EM&gt; property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/adding-tilecache-tiledlayer-into-mapview-throws/m-p/4742#M68</guid>
      <dc:creator>GregDeStigter</dc:creator>
      <dc:date>2018-08-24T14:00:16Z</dc:date>
    </item>
  </channel>
</rss>

