<?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 Acquisition of attribute data for MVT data in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/acquisition-of-attribute-data-for-mvt-data/m-p/1025267#M71713</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As for the attribute data of MVT data, in Mapbox GL JS, I can get it as follows, but can't I get it in ArcGIS API for JavaScript?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;map.on("click", "japan_ver821_layer", (e) =&amp;gt; {
	const value = e.features[0];
	console.log(value)
	
	new mapboxgl.Popup()
		.setHTML(`&amp;lt;b&amp;gt;${value.properties.KEN}&amp;lt;/b&amp;gt;${value.properties.SIKUCHOSON}`)
		.setLngLat(e.lngLat)
		.addTo(map);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="スクリーンショット 2021-02-10 18.39.51.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5729i4EFBCBC150E29A8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="スクリーンショット 2021-02-10 18.39.51.png" alt="スクリーンショット 2021-02-10 18.39.51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code we used is shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://github.com/tkamiya0625/Arc-MVT" target="_blank" rel="noopener"&gt;https://github.com/tkamiya0625/Arc-MVT&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;ArcGIS API for JavaScript&lt;/H3&gt;&lt;P&gt;&lt;A href="https://tkamiya0625.github.io/Arc-MVT/20210210/arcgis.html" target="_blank" rel="nofollow noopener"&gt;https://tkamiya0625.github.io/Arc-MVT/20210210/arcgis.html&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Mapbox GL JS&lt;/H3&gt;&lt;P&gt;&lt;A href="https://tkamiya0625.github.io/Arc-MVT/20210210/mapbox.html" target="_blank" rel="nofollow noopener"&gt;https://tkamiya0625.github.io/Arc-MVT/20210210/mapbox.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 09:48:40 GMT</pubDate>
    <dc:creator>TakahiroKAMIYA</dc:creator>
    <dc:date>2021-02-10T09:48:40Z</dc:date>
    <item>
      <title>Acquisition of attribute data for MVT data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/acquisition-of-attribute-data-for-mvt-data/m-p/1025267#M71713</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As for the attribute data of MVT data, in Mapbox GL JS, I can get it as follows, but can't I get it in ArcGIS API for JavaScript?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;map.on("click", "japan_ver821_layer", (e) =&amp;gt; {
	const value = e.features[0];
	console.log(value)
	
	new mapboxgl.Popup()
		.setHTML(`&amp;lt;b&amp;gt;${value.properties.KEN}&amp;lt;/b&amp;gt;${value.properties.SIKUCHOSON}`)
		.setLngLat(e.lngLat)
		.addTo(map);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="スクリーンショット 2021-02-10 18.39.51.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5729i4EFBCBC150E29A8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="スクリーンショット 2021-02-10 18.39.51.png" alt="スクリーンショット 2021-02-10 18.39.51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code we used is shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://github.com/tkamiya0625/Arc-MVT" target="_blank" rel="noopener"&gt;https://github.com/tkamiya0625/Arc-MVT&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;ArcGIS API for JavaScript&lt;/H3&gt;&lt;P&gt;&lt;A href="https://tkamiya0625.github.io/Arc-MVT/20210210/arcgis.html" target="_blank" rel="nofollow noopener"&gt;https://tkamiya0625.github.io/Arc-MVT/20210210/arcgis.html&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Mapbox GL JS&lt;/H3&gt;&lt;P&gt;&lt;A href="https://tkamiya0625.github.io/Arc-MVT/20210210/mapbox.html" target="_blank" rel="nofollow noopener"&gt;https://tkamiya0625.github.io/Arc-MVT/20210210/mapbox.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 09:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/acquisition-of-attribute-data-for-mvt-data/m-p/1025267#M71713</guid>
      <dc:creator>TakahiroKAMIYA</dc:creator>
      <dc:date>2021-02-10T09:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Acquisition of attribute data for MVT data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/acquisition-of-attribute-data-for-mvt-data/m-p/1025407#M71721</link>
      <description>&lt;P&gt;Are you trying to get back data from the GeoJson layer?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/tkamiya0625/Arc-MVT/blob/main/20210210/arcgis.html#L88" target="_blank"&gt;https://github.com/tkamiya0625/Arc-MVT/blob/main/20210210/arcgis.html#L88&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Q: Maybe try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const opts = {
  include: geoJSONLayer
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 16:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/acquisition-of-attribute-data-for-mvt-data/m-p/1025407#M71721</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-02-10T16:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Acquisition of attribute data for MVT data</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/acquisition-of-attribute-data-for-mvt-data/m-p/1025757#M71733</link>
      <description>&lt;P&gt;Thank you very much.&lt;BR /&gt;No, I want to get the data from the following vector tile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const tileLayer = new VectorTileLayer({
          title: "National City Boundary Data (Vector Tile)",
          url: ". /style.json",
          opacity: 0.5
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand how to get attribute data from GeoJSON.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 09:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/acquisition-of-attribute-data-for-mvt-data/m-p/1025757#M71733</guid>
      <dc:creator>TakahiroKAMIYA</dc:creator>
      <dc:date>2021-02-11T09:21:34Z</dc:date>
    </item>
  </channel>
</rss>

