<?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 Can't plot polylines to a client-side streamlayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-plot-polylines-to-a-client-side-streamlayer/m-p/1571075#M86291</link>
    <description>&lt;P&gt;I have plotted points to a clientside streamlayer but can't plot lines. I've tried many variations of plotting lines, but can't get it to work. Adding to my confusion, the documentation suggests it should be possible but I cannot find any examples of clientside streamlayers consisting of lines rather than points.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://codepen.io/coxfsi/pen/JoPJEqz?editors=1001" target="_blank" rel="noopener"&gt;https://codepen.io/coxfsi/pen/JoPJEqz?editors=1001&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2024 00:11:29 GMT</pubDate>
    <dc:creator>ironmaskito</dc:creator>
    <dc:date>2024-12-24T00:11:29Z</dc:date>
    <item>
      <title>Can't plot polylines to a client-side streamlayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-plot-polylines-to-a-client-side-streamlayer/m-p/1571075#M86291</link>
      <description>&lt;P&gt;I have plotted points to a clientside streamlayer but can't plot lines. I've tried many variations of plotting lines, but can't get it to work. Adding to my confusion, the documentation suggests it should be possible but I cannot find any examples of clientside streamlayers consisting of lines rather than points.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://codepen.io/coxfsi/pen/JoPJEqz?editors=1001" target="_blank" rel="noopener"&gt;https://codepen.io/coxfsi/pen/JoPJEqz?editors=1001&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 00:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-plot-polylines-to-a-client-side-streamlayer/m-p/1571075#M86291</guid>
      <dc:creator>ironmaskito</dc:creator>
      <dc:date>2024-12-24T00:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't plot polylines to a client-side streamlayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-plot-polylines-to-a-client-side-streamlayer/m-p/1571973#M86302</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are couple of issues in the app you provided.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;Geometries of features added to the StreamLayer must be in the spatial reference of the view, because the layer's&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#spatialReference" target="_blank"&gt;spatialReference&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is always set to the spatial reference of the view. To avoid overhead, the stream layer does not do any additional processing or reprojecting on features as they arrive. This behavior is documented &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#clientside-streamlayer" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; So you either need to use a basemap in WGS84 or your features need to have geometries in Web Mercator.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#sendMessageToClient" target="_self"&gt;StreamLayer.sendMessageToClient()&lt;/A&gt;&amp;nbsp;states that when sending &lt;EM&gt;features&lt;/EM&gt; message then your features have to be esri JSON feature object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Based on this, I updated your codepen:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/QwLqrpd?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/QwLqrpd?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 23:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-plot-polylines-to-a-client-side-streamlayer/m-p/1571973#M86302</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-12-31T23:13:48Z</dc:date>
    </item>
  </channel>
</rss>

