<?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 Re: How to move a point along a line? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-move-a-point-along-a-line/m-p/341734#M31597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your best bet is some math and the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/point-amd.html#update"&gt;update(x, y)&lt;/A&gt;&amp;nbsp;method from Point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the two points that make the line, from the Polyline Object. You know that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y=mx+b, and m = (y2-y1)/(x2-x1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can find the equation for the line. Then you can produce x values, and find the associated y values, and then use the update method to set the point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Low level graphics manipulation is a bit involved. Good luck man &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2018 20:39:03 GMT</pubDate>
    <dc:creator>deleted-user----ypwdOWHsd</dc:creator>
    <dc:date>2018-11-19T20:39:03Z</dc:date>
    <item>
      <title>How to move a point along a line?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-move-a-point-along-a-line/m-p/341733#M31596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a polyline showing a delivery route. How can I move/animate a point along the line from start to the end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 18:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-move-a-point-along-a-line/m-p/341733#M31596</guid>
      <dc:creator>AbdulKhan</dc:creator>
      <dc:date>2018-11-16T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to move a point along a line?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-move-a-point-along-a-line/m-p/341734#M31597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your best bet is some math and the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/point-amd.html#update"&gt;update(x, y)&lt;/A&gt;&amp;nbsp;method from Point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the two points that make the line, from the Polyline Object. You know that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y=mx+b, and m = (y2-y1)/(x2-x1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can find the equation for the line. Then you can produce x values, and find the associated y values, and then use the update method to set the point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Low level graphics manipulation is a bit involved. Good luck man &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-move-a-point-along-a-line/m-p/341734#M31597</guid>
      <dc:creator>deleted-user----ypwdOWHsd</dc:creator>
      <dc:date>2018-11-19T20:39:03Z</dc:date>
    </item>
  </channel>
</rss>

