<?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 ESRI Leafley creating FeatureLayer with data in an array in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/esri-leafley-creating-featurelayer-with-data-in-an/m-p/1115715#M83</link>
    <description>&lt;P&gt;Hello, I am currently attempting to parse an array of assets and their locations and insert it into an ESRI feature layer that I can add to my map.&lt;/P&gt;
&lt;P&gt;This is what the objects in the array look like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bushrasyed_0-1636563290213.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27151i1A0419C49184CF23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bushrasyed_0-1636563290213.png" alt="bushrasyed_0-1636563290213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was wondering if it would be possible to convert the array into a Feature collection, or if it needs to be a JSON object? If it is possible what steps could I take?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my current map, where assets is the array I want to convert into a feature collection:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bushrasyed_1-1636563508893.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27152iBBDB45EE63277F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bushrasyed_1-1636563508893.png" alt="bushrasyed_1-1636563508893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 20:11:52 GMT</pubDate>
    <dc:creator>bushrasyed</dc:creator>
    <dc:date>2023-08-25T20:11:52Z</dc:date>
    <item>
      <title>ESRI Leafley creating FeatureLayer with data in an array</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/esri-leafley-creating-featurelayer-with-data-in-an/m-p/1115715#M83</link>
      <description>&lt;P&gt;Hello, I am currently attempting to parse an array of assets and their locations and insert it into an ESRI feature layer that I can add to my map.&lt;/P&gt;
&lt;P&gt;This is what the objects in the array look like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bushrasyed_0-1636563290213.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27151i1A0419C49184CF23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bushrasyed_0-1636563290213.png" alt="bushrasyed_0-1636563290213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was wondering if it would be possible to convert the array into a Feature collection, or if it needs to be a JSON object? If it is possible what steps could I take?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my current map, where assets is the array I want to convert into a feature collection:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bushrasyed_1-1636563508893.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27152iBBDB45EE63277F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bushrasyed_1-1636563508893.png" alt="bushrasyed_1-1636563508893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/esri-leafley-creating-featurelayer-with-data-in-an/m-p/1115715#M83</guid>
      <dc:creator>bushrasyed</dc:creator>
      <dc:date>2023-08-25T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI Leafley creating FeatureLayer with data in an array</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/esri-leafley-creating-featurelayer-with-data-in-an/m-p/1115743#M84</link>
      <description>&lt;P&gt;I do not see any geometry information (for example, latitude/longitude) in your screenshot - do you have that info for each asset? If not, that would be the first step. Then you can add them using Leaflet (for example, &lt;A href="https://leafletjs.com/reference.html#marker" target="_self"&gt;L.Marker&lt;/A&gt;). If you want to transform it into a GeoJSON FeatureCollection, you can use &lt;A href="https://leafletjs.com/reference.html#geojson" target="_self"&gt;L.geoJSON&lt;/A&gt; - that would work too.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 17:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/esri-leafley-creating-featurelayer-with-data-in-an/m-p/1115743#M84</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2021-11-10T17:52:36Z</dc:date>
    </item>
  </channel>
</rss>

