<?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 Not able to display vector tile layer in MapLibre in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/not-able-to-display-vector-tile-layer-in-maplibre/m-p/1257517#M7</link>
    <description>&lt;P&gt;Hi, I'm starting to explore MapLibre and following the example in&amp;nbsp;&lt;A href="https://developers.arcgis.com/maplibre-gl-js/layers/add-a-vector-tile-layer/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/maplibre-gl-js/layers/add-a-vector-tile-layer/&lt;/A&gt;&amp;nbsp;but with a data set of my own. I added this pretty simple code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;      map.addSource("lights", {
        type: "vector",
        tiles: [
 'https://vectortileservices7.arcgis.com/kh264m9HYKfSLRfM/arcgis/rest/services/den_vector/VectorTileServer/tile/{z}/{y}/{x}.pbf'

        ]
      });

      map.addLayer({
        id: "parcels-fill",
		type: 'circle',
        source: "lights",
        "source-layer": "den_vector",
		'paint': {
			'circle-radius': 6,
			'circle-color': '#B42222'
		},
      });&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and while my basemap renders just fine, nothing appears for the vector tile layer and I'm having trouble figuring out why not. Any ideas?&lt;/P&gt;
&lt;P&gt;CodePen example:&amp;nbsp;&lt;A href="https://codepen.io/dandormont-the-decoder/pen/yLxBqby" target="_blank" rel="noopener"&gt;https://codepen.io/dandormont-the-decoder/pen/yLxBqby&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The tile data is public so you should be able to view it with any key.&amp;nbsp; And the layer itself shows up just fine in AGOL:&amp;nbsp;&lt;A href="https://veoci.maps.arcgis.com/apps/mapviewer/index.html?layers=623a51817d69494ca303f6be5fe4afcb" target="_blank" rel="noopener"&gt;https://veoci.maps.arcgis.com/apps/mapviewer/index.html?layers=623a51817d69494ca303f6be5fe4afcb&lt;/A&gt;&amp;nbsp;so I don't think it's a data issue. I've also tested with Leaflet and ArcGIS Javascript, those both are able to show it. Just trying to figure out how to make it work with MapLibre.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dan&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 17:49:13 GMT</pubDate>
    <dc:creator>DanielDormont</dc:creator>
    <dc:date>2023-08-18T17:49:13Z</dc:date>
    <item>
      <title>Not able to display vector tile layer in MapLibre</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/not-able-to-display-vector-tile-layer-in-maplibre/m-p/1257517#M7</link>
      <description>&lt;P&gt;Hi, I'm starting to explore MapLibre and following the example in&amp;nbsp;&lt;A href="https://developers.arcgis.com/maplibre-gl-js/layers/add-a-vector-tile-layer/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/maplibre-gl-js/layers/add-a-vector-tile-layer/&lt;/A&gt;&amp;nbsp;but with a data set of my own. I added this pretty simple code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;      map.addSource("lights", {
        type: "vector",
        tiles: [
 'https://vectortileservices7.arcgis.com/kh264m9HYKfSLRfM/arcgis/rest/services/den_vector/VectorTileServer/tile/{z}/{y}/{x}.pbf'

        ]
      });

      map.addLayer({
        id: "parcels-fill",
		type: 'circle',
        source: "lights",
        "source-layer": "den_vector",
		'paint': {
			'circle-radius': 6,
			'circle-color': '#B42222'
		},
      });&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and while my basemap renders just fine, nothing appears for the vector tile layer and I'm having trouble figuring out why not. Any ideas?&lt;/P&gt;
&lt;P&gt;CodePen example:&amp;nbsp;&lt;A href="https://codepen.io/dandormont-the-decoder/pen/yLxBqby" target="_blank" rel="noopener"&gt;https://codepen.io/dandormont-the-decoder/pen/yLxBqby&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The tile data is public so you should be able to view it with any key.&amp;nbsp; And the layer itself shows up just fine in AGOL:&amp;nbsp;&lt;A href="https://veoci.maps.arcgis.com/apps/mapviewer/index.html?layers=623a51817d69494ca303f6be5fe4afcb" target="_blank" rel="noopener"&gt;https://veoci.maps.arcgis.com/apps/mapviewer/index.html?layers=623a51817d69494ca303f6be5fe4afcb&lt;/A&gt;&amp;nbsp;so I don't think it's a data issue. I've also tested with Leaflet and ArcGIS Javascript, those both are able to show it. Just trying to figure out how to make it work with MapLibre.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 17:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/not-able-to-display-vector-tile-layer-in-maplibre/m-p/1257517#M7</guid>
      <dc:creator>DanielDormont</dc:creator>
      <dc:date>2023-08-18T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to display vector tile layer in MapLibre</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/not-able-to-display-vector-tile-layer-in-maplibre/m-p/1258628#M8</link>
      <description>&lt;P&gt;Turns out it was my own mistake. I didn't realize that the source-layer within the vector tileset was not the same name I used when creating the layer. I'm not (yet) an expert in vector tile layers, as it turns out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I do see an issue which is that the feature properties seem to be missing, but that's not a MapLibre issue.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 19:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/not-able-to-display-vector-tile-layer-in-maplibre/m-p/1258628#M8</guid>
      <dc:creator>DanielDormont</dc:creator>
      <dc:date>2023-02-15T19:26:16Z</dc:date>
    </item>
  </channel>
</rss>

