<?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 Creating a featurelayer from an array of locations in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/creating-a-featurelayer-from-an-array-of-locations/m-p/1135975#M98</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I was wondering if it would be possible to turn a 2d array of latitude and longitude into a featurelayer using esri leaflet? Would this be difficult to accomplish? This is what the data looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var data = [
        { "latitude": 59.441193, "longitude": 24.729494 },
        { "latitude": 59.432365, "longitude": 24.742992 },
        { "latitude": 59.431602, "longitude": 24.757563 },
        { "latitude": 59.437843, "longitude": 24.765759 },
        { "latitude": 59.439644, "longitude": 24.779041 },
        { "latitude": 59.434776, "longitude": 24.756681 }
    ];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 20:10:30 GMT</pubDate>
    <dc:creator>BushraSyed1</dc:creator>
    <dc:date>2023-08-25T20:10:30Z</dc:date>
    <item>
      <title>Creating a featurelayer from an array of locations</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/creating-a-featurelayer-from-an-array-of-locations/m-p/1135975#M98</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I was wondering if it would be possible to turn a 2d array of latitude and longitude into a featurelayer using esri leaflet? Would this be difficult to accomplish? This is what the data looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var data = [
        { "latitude": 59.441193, "longitude": 24.729494 },
        { "latitude": 59.432365, "longitude": 24.742992 },
        { "latitude": 59.431602, "longitude": 24.757563 },
        { "latitude": 59.437843, "longitude": 24.765759 },
        { "latitude": 59.439644, "longitude": 24.779041 },
        { "latitude": 59.434776, "longitude": 24.756681 }
    ];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/creating-a-featurelayer-from-an-array-of-locations/m-p/1135975#M98</guid>
      <dc:creator>BushraSyed1</dc:creator>
      <dc:date>2023-08-25T20:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a featurelayer from an array of locations</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/creating-a-featurelayer-from-an-array-of-locations/m-p/1136003#M99</link>
      <description>&lt;P&gt;You could use Add XY Coordinates in ArcMap to convert the table of coordinates to points, and then share the result as a map.&amp;nbsp; Leaflet can be used to publish it, but isn't required.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 21:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/creating-a-featurelayer-from-an-array-of-locations/m-p/1136003#M99</guid>
      <dc:creator>JayJohnson2</dc:creator>
      <dc:date>2022-01-21T21:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a featurelayer from an array of locations</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/creating-a-featurelayer-from-an-array-of-locations/m-p/1137864#M100</link>
      <description>&lt;P&gt;LeafletJS is pretty open-ended here with a few ways you could accomplish this. But with the esri-leaflet plugin there is no concept of a "client-side-only" FeatureLayer (but there is in the ArcGIS API for JavaScript).&lt;/P&gt;&lt;P&gt;Back to LeafletJS itself, you can use layer types such as `Marker`, `Circle`, or `CircleMarker` with each of your objects in your data array.&lt;/P&gt;&lt;P&gt;&lt;A href="https://leafletjs.com/reference.html" target="_blank"&gt;https://leafletjs.com/reference.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 14:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/creating-a-featurelayer-from-an-array-of-locations/m-p/1137864#M100</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-27T14:34:24Z</dc:date>
    </item>
  </channel>
</rss>

