<?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: Hi All in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530749#M49473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2020 02:55:16 GMT</pubDate>
    <dc:creator>bharathreddy</dc:creator>
    <dc:date>2020-05-08T02:55:16Z</dc:date>
    <item>
      <title>Hi All</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530745#M49469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we draw a line by selecting Point A and PointB on a existing polyline which is not a straghit line using arcgis javascript Api?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 05:56:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530745#M49469</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2020-05-07T05:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530746#M49470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you asking if the ArcGIS for JavaScript API has functionality that allows users to draw a line that automatically snaps to an existing polyline by just selecting the 2 endpoints?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is your question then&amp;nbsp;I believe that it is not possible (out of the box).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snapping is not currently implemented for editing under version 4 of the API:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html" title="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html"&gt;Functionality matrix | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under version 3, the Editor widget supports snapping but you would need to click on each of the polyline's vertexes to overlay your polyline exactly. You can see the Editor widget snapping in action at this line (press Cntrl to enable snap):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_default_editingwidget" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_default_editingwidget"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 06:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530746#M49470</guid>
      <dc:creator>mdonnelly</dc:creator>
      <dc:date>2020-05-07T06:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530747#M49471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we achieve that functionality using&amp;nbsp; 3.x ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 07:53:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530747#M49471</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2020-05-07T07:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530748#M49472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To my knowledge, I don't believe there is anything in the API (3 or 4) that is going to do exactly what you want, out of the box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it would require some custom effort to achieve. Essentially you want to&amp;nbsp;copy a polyline feature between 2 points, from what I understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do something like the following:&lt;/P&gt;&lt;P&gt;- Capture the start and endpoints from the user&lt;/P&gt;&lt;P&gt;- Intersect them with features from a given layer to find the closest feature&lt;/P&gt;&lt;P&gt;- Make a copy of that feature's geometry&lt;/P&gt;&lt;P&gt;- Edit the geometry to start and finish at the start and end points chosen by the user&lt;/P&gt;&lt;P&gt;- Apply those edits to your copy layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 23:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530748#M49472</guid>
      <dc:creator>mdonnelly</dc:creator>
      <dc:date>2020-05-07T23:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hi All</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530749#M49473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 02:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hi-all/m-p/530749#M49473</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2020-05-08T02:55:16Z</dc:date>
    </item>
  </channel>
</rss>

