<?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 Draw track LINES to connect previous observations to show a path that a moving feature traveled in StreamLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-track-lines-to-connect-previous-observations/m-p/1367236#M83275</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm creating an streamLayer with a custom server. So far I have things working well, but I have not been able to draw a line connecting previous observations. When I set the maximumObservations parameter, I have a group of point moving, what I want is a line showing the path.&lt;/P&gt;&lt;P&gt;There is this guide explaining how to do it on &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/symbolize-stream-layers.htm" target="_self"&gt;ArcGIS Pro&lt;/A&gt;, but I can't seem to replicate the steps with ArcGIS JS SDK. Any hekp is very much appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 06:10:23 GMT</pubDate>
    <dc:creator>ikenna212</dc:creator>
    <dc:date>2024-01-08T06:10:23Z</dc:date>
    <item>
      <title>Draw track LINES to connect previous observations to show a path that a moving feature traveled in StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-track-lines-to-connect-previous-observations/m-p/1367236#M83275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm creating an streamLayer with a custom server. So far I have things working well, but I have not been able to draw a line connecting previous observations. When I set the maximumObservations parameter, I have a group of point moving, what I want is a line showing the path.&lt;/P&gt;&lt;P&gt;There is this guide explaining how to do it on &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/symbolize-stream-layers.htm" target="_self"&gt;ArcGIS Pro&lt;/A&gt;, but I can't seem to replicate the steps with ArcGIS JS SDK. Any hekp is very much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 06:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-track-lines-to-connect-previous-observations/m-p/1367236#M83275</guid>
      <dc:creator>ikenna212</dc:creator>
      <dc:date>2024-01-08T06:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Draw track LINES to connect previous observations to show a path that a moving feature traveled in StreamLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-track-lines-to-connect-previous-observations/m-p/1367572#M83285</link>
      <description>&lt;P&gt;Since a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html" target="_self"&gt;StreamLayer&lt;/A&gt; can only support one &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#geometryType" target="_self"&gt;geometryType&lt;/A&gt;, you won't be able to use a point layer to display lines.&amp;nbsp; However, you can mimic this by adding a GraphicsLayer, getting the point data from your StreamLayer, creating a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html" target="_self"&gt;line&lt;/A&gt; from those points, and adding it to the GraphicsLayer.&lt;/P&gt;&lt;P&gt;The trickiest part of that is getting the point data from the StreamLayer, but even that's not all that bad.&amp;nbsp; To do this, you'll need to get a reference to its associated &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html" target="_self"&gt;StreamLayerView&lt;/A&gt;.&amp;nbsp; The StreamLayerView has a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#event-data-received" target="_self"&gt;data-received&lt;/A&gt; event that fires when new features are received.&amp;nbsp; It also has a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryFeatures" target="_self"&gt;queryFeatures&lt;/A&gt; function which you can also use to get the points from your StreamLayer.&amp;nbsp; Between these, you'd have all you need to create and display the track line(s) in the GraphicsLayer.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 19:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-track-lines-to-connect-previous-observations/m-p/1367572#M83285</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-01-08T19:47:28Z</dc:date>
    </item>
  </channel>
</rss>

