<?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 arcgis online vector tile service in Leaflet map in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-in-leaflet-map/m-p/570947#M673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Greetings, I am trying to add an arcgis online served vector tiles service to a Leaflet map. I am using ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FLeaflet%2FLeaflet.VectorGrid" rel="nofollow" target="_blank"&gt;https://github.com/Leaflet/Leaflet.VectorGrid&lt;/A&gt;&lt;SPAN&gt; ) to add the vector tiles to a Leaflet v1.3.1 map application.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to add ESRI layers into the Leaflet map using the following simplified code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; var esriTilesUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fbasemaps.arcgis.com%2Fv1%2Farcgis%2Frest%2Fservices%2FWorld_Basemap%2FVectorTileServer%2Ftile%2F" rel="nofollow" target="_blank"&gt;https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer/tile/&lt;/A&gt;&lt;SPAN&gt;{z}/{y}/{x}.pbf";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var esriTilesPbfLayer = L.vectorGrid.protobuf(esriTilesUrl);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; esriTilesPbfLayer.addTo(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to add my arcgis online vector tiles&amp;nbsp;to the leaflet map using the same code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; var esriTilesUrl =&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2Fl4TwMwwoiuEVRPw9%2Farcgis%2Frest%2Fservices%2FCaryHouseHolds%2FVectorTileServer%2Ftile%2F" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/l4TwMwwoiuEVRPw9/arcgis/rest/services/CaryHouseHolds/VectorTileServer/tile/&lt;/A&gt;&lt;SPAN&gt;{z}/{y}/{x}.pbf"; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var esriTilesPbfLayer = L.vectorGrid.protobuf(esriTilesUrl);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; esriTilesPbfLayer.addTo(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2Fl4TwMwwoiuEVRPw9%2Farcgis%2Frest%2Fservices%2FCaryHouseHolds%2FVectorTileServer%2Ftile%2F13%2F3222%2F2303.pbf" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/l4TwMwwoiuEVRPw9/arcgis/rest/services/CaryHouseHolds/VectorTileServer/tile/13/3222/2303.pbf&lt;/A&gt;&lt;SPAN&gt; 404 ()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct url to use to consume arcgis online vector tiles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Tyler&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2018 13:25:18 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-04-10T13:25:18Z</dc:date>
    <item>
      <title>arcgis online vector tile service in Leaflet map</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-in-leaflet-map/m-p/570947#M673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Greetings, I am trying to add an arcgis online served vector tiles service to a Leaflet map. I am using ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FLeaflet%2FLeaflet.VectorGrid" rel="nofollow" target="_blank"&gt;https://github.com/Leaflet/Leaflet.VectorGrid&lt;/A&gt;&lt;SPAN&gt; ) to add the vector tiles to a Leaflet v1.3.1 map application.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to add ESRI layers into the Leaflet map using the following simplified code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; var esriTilesUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fbasemaps.arcgis.com%2Fv1%2Farcgis%2Frest%2Fservices%2FWorld_Basemap%2FVectorTileServer%2Ftile%2F" rel="nofollow" target="_blank"&gt;https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer/tile/&lt;/A&gt;&lt;SPAN&gt;{z}/{y}/{x}.pbf";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var esriTilesPbfLayer = L.vectorGrid.protobuf(esriTilesUrl);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; esriTilesPbfLayer.addTo(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to add my arcgis online vector tiles&amp;nbsp;to the leaflet map using the same code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; var esriTilesUrl =&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2Fl4TwMwwoiuEVRPw9%2Farcgis%2Frest%2Fservices%2FCaryHouseHolds%2FVectorTileServer%2Ftile%2F" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/l4TwMwwoiuEVRPw9/arcgis/rest/services/CaryHouseHolds/VectorTileServer/tile/&lt;/A&gt;&lt;SPAN&gt;{z}/{y}/{x}.pbf"; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; var esriTilesPbfLayer = L.vectorGrid.protobuf(esriTilesUrl);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; esriTilesPbfLayer.addTo(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2Fl4TwMwwoiuEVRPw9%2Farcgis%2Frest%2Fservices%2FCaryHouseHolds%2FVectorTileServer%2Ftile%2F13%2F3222%2F2303.pbf" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/l4TwMwwoiuEVRPw9/arcgis/rest/services/CaryHouseHolds/VectorTileServer/tile/13/3222/2303.pbf&lt;/A&gt;&lt;SPAN&gt; 404 ()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct url to use to consume arcgis online vector tiles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Tyler&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-in-leaflet-map/m-p/570947#M673</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-04-10T13:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis online vector tile service in Leaflet map</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-in-leaflet-map/m-p/570948#M674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tyler ! I am also trying to add a custom Basemap (which seems to be a vector tile service since the url is&amp;nbsp;&lt;A class="link-titled" href="https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer" title="https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer"&gt;https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't make it work with leaflet.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What was your solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2020 09:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-in-leaflet-map/m-p/570948#M674</guid>
      <dc:creator>yoannjaffrain</dc:creator>
      <dc:date>2020-09-18T09:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis online vector tile service in Leaflet map</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-in-leaflet-map/m-p/570949#M675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize now that this URL cannot be correct because it doesn't take into account my customization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question would : how do you display your ESRI custom basemap with leaflet ? (should use the id ?, ... ?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2020 09:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-vector-tile-service-in-leaflet-map/m-p/570949#M675</guid>
      <dc:creator>yoannjaffrain</dc:creator>
      <dc:date>2020-09-18T09:35:30Z</dc:date>
    </item>
  </channel>
</rss>

