<?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: ExportVectorTilesTask: falsely claims that service doesn't support exporting tiles in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158153#M10857</link>
    <description>&lt;P&gt;That explains alot. Thank you for your quick response.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Mar 2022 21:15:50 GMT</pubDate>
    <dc:creator>esp1rl</dc:creator>
    <dc:date>2022-03-26T21:15:50Z</dc:date>
    <item>
      <title>ExportVectorTilesTask: falsely claims that service doesn't support exporting tiles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158070#M10852</link>
      <description>&lt;P&gt;The following code fails with an exception even though the service states&amp;nbsp;exportTilesAllowed=true.&lt;/P&gt;&lt;P&gt;Exception:&amp;nbsp;"Tile export is not enabled: Vector tile service does not support exporting tiles"&lt;/P&gt;&lt;P&gt;I've included code for loading the basemap using&amp;nbsp;ArcGISVectorTiledLayer which accurately parses the&amp;nbsp;exportTilesAllowed as true. See the screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var uri = new Uri("https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasisTerreng/VectorTileServer");
var basemap = new ArcGISVectorTiledLayer(uri);
await basemap.LoadAsync();
try
{
    var exportVectorTilesTask = await ExportVectorTilesTask.CreateAsync(uri);
}
catch (Exception e)
{
    // fails with: "Tile export is not enabled: Vector tile service does not support exporting tiles"
    throw;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="esp1rl_0-1648244848795.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37405i0E058465B3AC61C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="esp1rl_0-1648244848795.png" alt="esp1rl_0-1648244848795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also tested with "&lt;A href="https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_Export_v2/VectorTileServer" target="_blank" rel="noopener"&gt;https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_Export_v2/VectorTileServer&lt;/A&gt;" which works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using ArcGIS Runtime for .NET v100.13 @WinUI 3&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 22:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158070#M10852</guid>
      <dc:creator>esp1rl</dc:creator>
      <dc:date>2022-03-25T22:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: ExportVectorTilesTask: falsely claims that service doesn't support exporting tiles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158079#M10853</link>
      <description>&lt;P&gt;I played some more with different services.&lt;/P&gt;&lt;P&gt;&lt;A href="https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasisTerreng/VectorTileServer" target="_blank"&gt;https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasisTerreng/VectorTileServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasis/VectorTileServer" target="_blank"&gt;https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasis/VectorTileServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The first one is the one that fails. The second one is from the same vendor, same server. It works, and the only difference in the service json document is the service name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 22:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158079#M10853</guid>
      <dc:creator>esp1rl</dc:creator>
      <dc:date>2022-03-25T22:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: ExportVectorTilesTask: falsely claims that service doesn't support exporting tiles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158084#M10854</link>
      <description>&lt;P&gt;Thanks for providing those URLs.&lt;/P&gt;&lt;P&gt;Each vector tile layer has a set of style resources to go with it. You can see those at these URLs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasisTerreng/VectorTileServer/resources/styles/?f=json" target="_blank"&gt;https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasisTerreng/VectorTileServer/resources/styles/?f=json&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasis/VectorTileServer/resources/styles/?f=json" target="_blank"&gt;https://services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasis/VectorTileServer/resources/styles/?f=json&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What's happening is that the style for the &lt;STRONG&gt;GeocacheBasisTerreng&lt;/STRONG&gt; layer actually brings a couple more layers into the mix. Here's the style JSON's &lt;STRONG&gt;sources&lt;/STRONG&gt;&amp;nbsp;property:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"sources": {
  "esri": {
    "url": "https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasis/VectorTileServer/",
    "type": "vector",
    "maxzoom": 16,
    "tiles": [
      "https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheBasis/VectorTileServer/tile/{z}/{y}/{x}.pbf"
    ]
  },
  "curves": {
    "url": "https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheHoydekurver/VectorTileServer/",
    "type": "vector",
    "maxzoom": 16,
    "tiles": [
      "https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheHoydekurver/VectorTileServer/tile/{z}/{y}/{x}.pbf"
    ]
  },
  "hillshade": {
    "url": "https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheRelieff/VectorTileServer/",
    "type": "vector",
    "maxzoom": 16,
    "tiles": [
      "https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheRelieff/VectorTileServer/tile/{z}/{y}/{x}.pbf"
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;You can see the curves and hillshade layers that exist in addition to that specified in the GeocacheBasis layer.&lt;/P&gt;&lt;P&gt;One of those, &lt;STRONG&gt;GeocacheHoydekurver&lt;/STRONG&gt; has this JSON definition which has &lt;STRONG&gt;exportTilesAllowed&lt;/STRONG&gt; set to &lt;STRONG&gt;false&lt;/STRONG&gt;, which is disabling the overall layer:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheHoydekurver/VectorTileServer/?f=json" target="_blank"&gt;https://vector.services.geodataonline.no/arcgis/rest/services/GeocacheVector/GeocacheHoydekurver/VectorTileServer/?f=json&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You would need to reach out to the service owner to see if they could enable exporting tiles for the&amp;nbsp;&lt;STRONG&gt;GeocacheHoydekurver&lt;/STRONG&gt; service.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 23:35:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158084#M10854</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2022-03-25T23:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: ExportVectorTilesTask: falsely claims that service doesn't support exporting tiles</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158153#M10857</link>
      <description>&lt;P&gt;That explains alot. Thank you for your quick response.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 21:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/exportvectortilestask-falsely-claims-that-service/m-p/1158153#M10857</guid>
      <dc:creator>esp1rl</dc:creator>
      <dc:date>2022-03-26T21:15:50Z</dc:date>
    </item>
  </channel>
</rss>

