<?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 Mapbox VectorTileLayer 4.15 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapbox-vectortilelayer-4-15/m-p/607131#M56779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get my head around adding of Mapbox base&amp;nbsp;tilesets (i.e.: mapbox-streets-v7) into&amp;nbsp;arcgis.VectorTileLayer.&lt;/P&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;var mapboxStreetsLayer = new VectorTileLayer({&lt;BR /&gt; url : "https://api.mapbox.com/v4/mapbox.mapbox-streets-v7.json?f=json&amp;amp;access_token=pk.ey...redacted"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;and see this error in the browser's console:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;dojo.js:253 [esri.layers.VectorTileLayer] #load() Failed to load layer (title: 'Layer', id: '17218e28949-layer-1') d {name: "request:server", message: "Unable to load https://api.mapbox.com/v4/mapbox.mapbox-streets-v7.json?f=json status: 401", details: {…}}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;The network tab clearly shows that the access_token has been removed before shooting the request and the url i provided tampered with. I thus cannot load the style. How is it meant to be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also pondering on &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#url"&gt;this&lt;/A&gt;&amp;nbsp;fragment of the&amp;nbsp;documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;The URL to the vector tile service, or the URL to the style resource of vector tiles that will be used to render the layer. If specifying a URL to a style, the tiles are fetched from the tile servers specified in the style object.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The style scenario is clear, but what is exactly a "vector tile service" (what API is it expected to expose)? And what style will a&amp;nbsp;&lt;SPAN&gt;VectorTileLayer be rendered with if it's initialised against a&amp;nbsp;"vector tile service"?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2020 15:15:45 GMT</pubDate>
    <dc:creator>RemekZajac</dc:creator>
    <dc:date>2020-05-15T15:15:45Z</dc:date>
    <item>
      <title>Mapbox VectorTileLayer 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapbox-vectortilelayer-4-15/m-p/607131#M56779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get my head around adding of Mapbox base&amp;nbsp;tilesets (i.e.: mapbox-streets-v7) into&amp;nbsp;arcgis.VectorTileLayer.&lt;/P&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;var mapboxStreetsLayer = new VectorTileLayer({&lt;BR /&gt; url : "https://api.mapbox.com/v4/mapbox.mapbox-streets-v7.json?f=json&amp;amp;access_token=pk.ey...redacted"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;and see this error in the browser's console:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;dojo.js:253 [esri.layers.VectorTileLayer] #load() Failed to load layer (title: 'Layer', id: '17218e28949-layer-1') d {name: "request:server", message: "Unable to load https://api.mapbox.com/v4/mapbox.mapbox-streets-v7.json?f=json status: 401", details: {…}}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;The network tab clearly shows that the access_token has been removed before shooting the request and the url i provided tampered with. I thus cannot load the style. How is it meant to be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also pondering on &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#url"&gt;this&lt;/A&gt;&amp;nbsp;fragment of the&amp;nbsp;documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;The URL to the vector tile service, or the URL to the style resource of vector tiles that will be used to render the layer. If specifying a URL to a style, the tiles are fetched from the tile servers specified in the style object.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The style scenario is clear, but what is exactly a "vector tile service" (what API is it expected to expose)? And what style will a&amp;nbsp;&lt;SPAN&gt;VectorTileLayer be rendered with if it's initialised against a&amp;nbsp;"vector tile service"?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 15:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapbox-vectortilelayer-4-15/m-p/607131#M56779</guid>
      <dc:creator>RemekZajac</dc:creator>
      <dc:date>2020-05-15T15:15:45Z</dc:date>
    </item>
  </channel>
</rss>

