<?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: Public Vector Tile Won't Display in with Esri leaflet plugin in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/public-vector-tile-won-t-display-in-with-esri/m-p/1068160#M108</link>
    <description>&lt;P&gt;Answered here: &lt;A href="https://github.com/Esri/esri-leaflet-vector/issues/93" target="_blank"&gt;https://github.com/Esri/esri-leaflet-vector/issues/93&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 22:04:39 GMT</pubDate>
    <dc:creator>GavinRehkemper</dc:creator>
    <dc:date>2021-06-14T22:04:39Z</dc:date>
    <item>
      <title>Public Vector Tile Won't Display in with Esri leaflet plugin</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/public-vector-tile-won-t-display-in-with-esri/m-p/1067411#M107</link>
      <description>&lt;P&gt;Hello-&lt;/P&gt;
&lt;P&gt;I'm simply trying to replace a draft version of a vector tile with a final version. Different service end points and no modes to code whatsoever. Seetings are identical in each service, but the updated service won't display.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Draft version I'm trying to replace, this one works:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://tiles.arcgis.com/tiles/tdQLEzq0fgVElWN3/arcgis/rest/services/Draft_Lifeform_Vector_Tile_Package_12_20_19/VectorTileServer" target="_blank" rel="noopener"&gt;https://tiles.arcgis.com/tiles/tdQLEzq0fgVElWN3/arcgis/rest/services/Draft_Lifeform_Vector_Tile_Package_12_20_19/VectorTileServer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Final version, this one doesn't work:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://tiles.arcgis.com/tiles/tdQLEzq0fgVElWN3/arcgis/rest/services/Marin_County_Lifeform_Map_FINAL/VectorTileServer" target="_blank" rel="noopener"&gt;https://tiles.arcgis.com/tiles/tdQLEzq0fgVElWN3/arcgis/rest/services/Marin_County_Lifeform_Map_FINAL/VectorTileServer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;And here is a code snippet with CDNs etc.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;!-- Load Leaflet from CDN --&amp;gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="&lt;A href="https://unpkg.com/leaflet/dist/leaflet.css" target="_blank" rel="noopener"&gt;https://unpkg.com/leaflet/dist/leaflet.css&lt;/A&gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://unpkg.com/leaflet/dist/leaflet.js" target="_blank" rel="noopener"&gt;https://unpkg.com/leaflet/dist/leaflet.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;!-- Esri Leaflet and Esri Leaflet Vector --&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://unpkg.com/esri-leaflet/dist/esri-leaflet.js" target="_blank" rel="noopener"&gt;https://unpkg.com/esri-leaflet/dist/esri-leaflet.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://unpkg.com/esri-leaflet-vector@3/dist/esri-leaflet-vector.js" target="_blank" rel="noopener"&gt;https://unpkg.com/esri-leaflet-vector@3/dist/esri-leaflet-vector.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;!-- Link to marin county boundary js file --&amp;gt;&lt;BR /&gt;&amp;lt;script src="GeoJsons/MarinBnd.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;// options to be used when creating the map&lt;BR /&gt;var options = {&lt;BR /&gt;center: [38.0828, -122.7551],&lt;BR /&gt;zoom: 10.4,&lt;BR /&gt;zoomSnap: .1,&lt;BR /&gt;zoomControl: true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;var map = L.map('map', options);&lt;/P&gt;
&lt;P&gt;// requests some map tiles&lt;BR /&gt;var tiles = L.tileLayer('&lt;A href="https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x" target="_blank" rel="noopener"&gt;https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x&lt;/A&gt;}', 'Tiles &amp;amp;copy; Esri &amp;amp;mdash; Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community');&lt;/P&gt;
&lt;P&gt;// add those tiles to our map element&lt;BR /&gt;map.addLayer(tiles);&lt;/P&gt;
&lt;P&gt;// add county layer to map&lt;BR /&gt;const countyLayer = L.geoJson(county, {&lt;BR /&gt;style: function (feature) {&lt;BR /&gt;return {&lt;BR /&gt;opacity: 0, // set stroke opacity to zero&lt;BR /&gt;fillOpacity: 0 // set fill opacity to zero&lt;BR /&gt;&lt;BR /&gt;};&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;countyLayer.addTo(map);&lt;/P&gt;
&lt;P&gt;// request public vector tile layer from ArcGIS Online&lt;BR /&gt;L.esri.Vector.vectorTileLayer("&lt;A href="https://tiles.arcgis.com/tiles/tdQLEzq0fgVElWN3/arcgis/rest/services/Marin_County_Lifeform_Map_FINAL/VectorTileServer" target="_blank" rel="noopener"&gt;https://tiles.arcgis.com/tiles/tdQLEzq0fgVElWN3/arcgis/rest/services/Marin_County_Lifeform_Map_FINAL/VectorTileServer&lt;/A&gt;", {&lt;/P&gt;
&lt;P&gt;// add service to map&lt;BR /&gt;}).addTo(map);&lt;/P&gt;
&lt;P&gt;// make county layer zoom to fit screen&lt;BR /&gt;const macoZoom = countyLayer.getBounds()&lt;/P&gt;
&lt;P&gt;// fit bounds to extent marin county boundary&lt;BR /&gt;map.fitBounds(macoZoom, {&lt;BR /&gt;maxzoom: 8&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would love it if anyone has any idea that would help solving this issue.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Zac&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:17:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/public-vector-tile-won-t-display-in-with-esri/m-p/1067411#M107</guid>
      <dc:creator>ZacStanley3</dc:creator>
      <dc:date>2023-08-25T20:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Public Vector Tile Won't Display in with Esri leaflet plugin</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/public-vector-tile-won-t-display-in-with-esri/m-p/1068160#M108</link>
      <description>&lt;P&gt;Answered here: &lt;A href="https://github.com/Esri/esri-leaflet-vector/issues/93" target="_blank"&gt;https://github.com/Esri/esri-leaflet-vector/issues/93&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 22:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/public-vector-tile-won-t-display-in-with-esri/m-p/1068160#M108</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2021-06-14T22:04:39Z</dc:date>
    </item>
  </channel>
</rss>

