<?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: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291893#M26793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Briefly, you need to have three endpoints&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;your tile endpoint&lt;/LI&gt;&lt;LI&gt;A "/VectorTileServer/" endpoint, which needs to return a json like the one below (mine redirects the index.html to a json file)&lt;/LI&gt;&lt;LI&gt;A style endpoint which needs to return a valid Mapbox style (in this example also redirecting to a json style file)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck! Report back with your results if you get it to work.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;{&lt;BR /&gt;&amp;nbsp;"currentVersion": 10.7,&lt;BR /&gt;&amp;nbsp;"name": "Test",&lt;BR /&gt;&amp;nbsp;"capabilities": "TilesOnly, TileInfo", -I don 't know what these do and what other options there are &lt;BR /&gt;&amp;nbsp;"type": "flatVector", -Flat is what you want, ArcGIS Pro creates Indexed Tiles as well &lt;BR /&gt;&amp;nbsp;"defaultStyles": "../resources/styles", -Another endpoint &lt;BR /&gt;&amp;nbsp;"tiles": ["../{z}/{x}/{y}.mvt" - relative or hard link to tiles endpoint],&lt;BR /&gt;&amp;nbsp;"exportTilesAllowed": false,&lt;BR /&gt;&amp;nbsp;"tileInfo": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"rows": 512,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"cols": 512,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"dpi": 96,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"format": "pbf",&lt;BR /&gt;&amp;nbsp;"spatialReference": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"wkid": 102100,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"latestWkid": 3857&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt; },&lt;BR /&gt;&amp;nbsp; "maxzoom": 19,&lt;BR /&gt;&amp;nbsp; "resourceInfo": {&lt;BR /&gt;&amp;nbsp; "styleVersion": 8,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "tileCompression": "gzip" - if you get weird errors check that your tiles are being gzipped&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;CODE&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2019 12:54:14 GMT</pubDate>
    <dc:creator>MalcolmMeyer2</dc:creator>
    <dc:date>2019-11-19T12:54:14Z</dc:date>
    <item>
      <title>Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291888#M26788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been a question asked for the last two years without any updates. I just want to check in to see if there has been any changes regarding adding Mapbox vector tiles as a VectorTileLayer in Arcgis Javascript 4.x. If so, is there a code example we can follow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291888#M26788</guid>
      <dc:creator>boeskmgmoes</dc:creator>
      <dc:date>2019-07-02T18:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291889#M26789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to know this as well, but for the ArcGIS API 3.x&lt;/P&gt;&lt;P&gt;Is the VectorTileLayer only accepting OSM pbf format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 21:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291889#M26789</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2019-09-12T21:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291890#M26790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would assume the answer is yes considering I am successfully rendering custom vector tiles in AGOL. The trick is to use the &lt;A href="https://developers.arcgis.com/rest/services-reference/vector-tile-service.htm"&gt;Esri VectorTileService&lt;/A&gt;&amp;nbsp;json style schema to reference the tiles. If anyone is interested I can explain more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 13:17:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291890#M26790</guid>
      <dc:creator>MalcolmMeyer2</dc:creator>
      <dc:date>2019-10-31T13:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291891#M26791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I did it too a few weeks ago, in ArcGIS 3.29, using custom tiles generated using ST_asMVT in postgis. The only thing I couldn't do is display labels from attributes included in the tiles. I could be wrong, but I suspect the ArcGIS API fetches the required JavaScript code to render labels from the ArcGIS Enterprise server, using web workers. Which would explain why they say ArcGIS Enterprise is mandatory to use VectorTileLayer. I was able to replicate the json files for the service metadata and style, but not this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 14:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291891#M26791</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2019-10-31T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291892#M26792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/323093"&gt;Malcolm Meyer&lt;/A&gt;‌ - I am looking at ways to pull in vector tiles that are not from ESRI vector tile service, but generated using Tippecanoe and hosted on Azure. Would you have some guidance or an example style file to share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 17:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291892#M26792</guid>
      <dc:creator>SudhirPonnappan1</dc:creator>
      <dc:date>2019-11-18T17:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291893#M26793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Briefly, you need to have three endpoints&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;your tile endpoint&lt;/LI&gt;&lt;LI&gt;A "/VectorTileServer/" endpoint, which needs to return a json like the one below (mine redirects the index.html to a json file)&lt;/LI&gt;&lt;LI&gt;A style endpoint which needs to return a valid Mapbox style (in this example also redirecting to a json style file)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck! Report back with your results if you get it to work.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;{&lt;BR /&gt;&amp;nbsp;"currentVersion": 10.7,&lt;BR /&gt;&amp;nbsp;"name": "Test",&lt;BR /&gt;&amp;nbsp;"capabilities": "TilesOnly, TileInfo", -I don 't know what these do and what other options there are &lt;BR /&gt;&amp;nbsp;"type": "flatVector", -Flat is what you want, ArcGIS Pro creates Indexed Tiles as well &lt;BR /&gt;&amp;nbsp;"defaultStyles": "../resources/styles", -Another endpoint &lt;BR /&gt;&amp;nbsp;"tiles": ["../{z}/{x}/{y}.mvt" - relative or hard link to tiles endpoint],&lt;BR /&gt;&amp;nbsp;"exportTilesAllowed": false,&lt;BR /&gt;&amp;nbsp;"tileInfo": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"rows": 512,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"cols": 512,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"dpi": 96,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"format": "pbf",&lt;BR /&gt;&amp;nbsp;"spatialReference": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"wkid": 102100,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"latestWkid": 3857&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt; },&lt;BR /&gt;&amp;nbsp; "maxzoom": 19,&lt;BR /&gt;&amp;nbsp; "resourceInfo": {&lt;BR /&gt;&amp;nbsp; "styleVersion": 8,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "tileCompression": "gzip" - if you get weird errors check that your tiles are being gzipped&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;CODE&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291893#M26793</guid>
      <dc:creator>MalcolmMeyer2</dc:creator>
      <dc:date>2019-11-19T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291894#M26794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have documented the process to consume Mapbox tiles generated with &lt;EM&gt;tippecanoe&lt;/EM&gt; in the ESRI JavaScript API 4.x&amp;nbsp; - &lt;A href="https://support.woolpert.io/hc/en-us/articles/360047005294"&gt;Vector Tiles on Google Cloud Storage: Web Clients&lt;/A&gt;. I pieced together&amp;nbsp;bits from&amp;nbsp;this thread and my own investigation. Thanks to all contributors on this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="410" src="https://community.esri.com/legacyfs/online/497976_pastedImage_2.png" width="653" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not able to successfully configure a labeling layer&amp;nbsp;for the contour line elevations. I tried following&amp;nbsp;&lt;A href="https://swaggypyang.github.io/arcgisapi/sdk/latest/sample-code/layers-vectortilelayer-json/index.html"&gt;VectorTileLayer from JSON&lt;/A&gt;, which provides an example of labeling the continents, but was unsuccessful. The labels did not appear and worse, the layer from which the labels originated became hidden with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenLayers, on the other hand, supports labeling from the same vector tiles as well as simple identify based on mouse hover - &lt;A href="https://woolpert.gitlab.io/cloud/demos/samples/geoaccelerators/fairfield-openlayers/"&gt;Fairfield County Ohio contours on OpenLayers&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/497975_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has additional leads on labeling (symbol type layer) or support for simple identify/popup, please share.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 01:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/291894#M26794</guid>
      <dc:creator>DavidHollema1</dc:creator>
      <dc:date>2020-06-26T01:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/1217884#M78883</link>
      <description>&lt;P&gt;Thank you for this. This is perfect solution to self host vector tile *.MBTiles with MapBox / OpenMapTile styling, and simulate a VectorTileServer ESRI service endpoint.&lt;/P&gt;&lt;P&gt;Also I could imagine using custom stylized &lt;A href="https://studio.mapbox.com" target="_self"&gt;MapBox Studio&lt;/A&gt; vector basemap on ESRI environment (AGOL, ArcGIS Pro, ArcGIS API JS, etc), which is not possible by default, they only point out the raster WMTS endpoint for their service.&lt;/P&gt;&lt;P&gt;just one thing that I want to add is, &lt;STRONG&gt;how to redirect a directory to a JSON&lt;/STRONG&gt; file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.web.site/labs/SimulatingService/VectorTileServer" target="_blank" rel="noopener"&gt;https://www.web.site/labs/SimulatingService/VectorTileServer&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into&lt;BR /&gt;&lt;A href="https://www.web.site/labs/SimulatingService/VectorTileServer/index.json" target="_blank" rel="noopener"&gt;https://www.web.site/labs/SimulatingService/VectorTileServer/index.json&lt;/A&gt; (a json that describing tileset mbtile/pbf/mvt, like this &lt;A href="https://pastebin.com/raw/hSLAc5p8" target="_self"&gt;example&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.web.site/labs/SimulatingService/VectorTileServer/resources/styles" target="_blank" rel="noopener"&gt;https://www.web.site/labs/SimulatingService/VectorTileServer/resources/styles&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into&lt;BR /&gt;&lt;A href="https://www.web.site/labs/SimulatingService/VectorTileServer/resources/styles/index.json" target="_blank" rel="noopener"&gt;https://www.web.site/labs/SimulatingService/VectorTileServer/resources/styles/index.json&lt;/A&gt; (json describing how to syle the vector, like this &lt;A href="https://pastebin.com/raw/NZ1WbeZV" target="_self"&gt;example&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;I found out that simple Index.html redirect trick didn't work for me (using Apache, on Linux Debian 11)&lt;/P&gt;&lt;P&gt;But later I found that using &lt;STRONG&gt;.htaccess&lt;/STRONG&gt; file could do it just fine. Just create .htaccess and put "DirectoryIndex &lt;STRONG&gt;index.json&lt;/STRONG&gt;" inside that file, then put that .htaccess file into /SimulatingService/VectorTileServer and "DirectoryIndex &lt;STRONG&gt;root.json&lt;/STRONG&gt;" .htaccess file into /SimulatingService/VectorTileServer/resources/styles&lt;/P&gt;&lt;P&gt;Just make sure that rewrite module (Linux= "a2enmod rewrite") is already on in the Apache2 web server, also some tweak about "AllowOverride All" in /etc/apache2/sites-available/000-default.conf and /etc/apache2/sites-available/000-default-le-ssl.conf, to really enabling .htaccess file to work on Apache2&lt;/P&gt;&lt;P&gt;Now, when the URL pointed to that folder, it will show the JSON file, instead redirecting it physically on address bar.&lt;/P&gt;&lt;P&gt;This screenshot, is tested on ArcGIS Online, using a &lt;A href="https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/test_data.zip" target="_self"&gt;test MBTile file&lt;/A&gt; consumed by tileserver-gl or simply a lightweight &lt;A href="https://github.com/maptiler/tileserver-php" target="_self"&gt;tileserver-php&lt;/A&gt;, that could provide tileset JSON with PBF endpoint for that MBTile file.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 16:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/1217884#M78883</guid>
      <dc:creator>MarhensaAditya_Hadi</dc:creator>
      <dc:date>2022-09-30T16:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to render mapbox vector tiles (pbf) in Arcgis Javascript API 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/1245979#M79792</link>
      <description>&lt;P&gt;I realise this is an old thread now, but it has been a very helpful guide to&amp;nbsp;&lt;SPAN&gt;simulating a VectorTileServer ESRI service endpoint. Thanks all!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question is whether any of these self hosted&amp;nbsp;VectorTileServer end point have been successfully loaded into ArcGIS Pro as well as Arc JS API?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a correctly formatted&amp;nbsp;VectorTileServer end point, but if I try and bring into ArcGIS Pro I just get a red exclamation mark rejection.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 13:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-render-mapbox-vector-tiles-pbf/m-p/1245979#M79792</guid>
      <dc:creator>SimonLewis</dc:creator>
      <dc:date>2023-01-06T13:44:30Z</dc:date>
    </item>
  </channel>
</rss>

