<?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 set a fance while moving the graphic using edit tools? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-a-fance-while-moving-the-graphic-using/m-p/398716#M36715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only want to display the feature movement limit as a graphic, you can use the selected point graphic as input for the geometry buffer function (3.16: &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#buffer" title="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#buffer"&gt;esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript&lt;/A&gt; , 4.0: &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#buffer" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#buffer"&gt;geometryEngine | API Reference | ArcGIS API for JavaScript 4.0&lt;/A&gt;) to create a polygon geometry, which you can add to the map in a seperate graphics layer, on selection of the point graphic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 May 2016 07:15:36 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2016-05-20T07:15:36Z</dc:date>
    <item>
      <title>How to set a fance while moving the graphic using edit tools?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-a-fance-while-moving-the-graphic-using/m-p/398715#M36714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using the edit tools to Move the feature(GeometryType is Point) on the FeatureLayer. When I activate the Edit.MOVE, I want to set a fance for the point graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice the "graphic-move" event of Edit can get the moving graphic point, and the geometryEngine also identify the spatial relationship between the graphic and the fance polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to display on the map or graphic layer, so that the move point only located inside the fance area?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;bufferGeometry = results.features[0].geometry;


editTools.on("graphic-move", function(evt)
{
&amp;nbsp; var graphic = evt.graphic;
&amp;nbsp; var geometry = graphic.geometry;


&amp;nbsp; if (geometryEngine.within(geometry, bufferGeometry))
&amp;nbsp; {
&amp;nbsp; // do nothing
&amp;nbsp; } else
&amp;nbsp; {
&amp;nbsp; // the current position is outside the fance, go back to the previous 
&amp;nbsp; }
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the circumstances, the highlight graphic should be along the boundary.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/201580_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-a-fance-while-moving-the-graphic-using/m-p/398715#M36714</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2021-12-11T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a fance while moving the graphic using edit tools?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-a-fance-while-moving-the-graphic-using/m-p/398716#M36715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only want to display the feature movement limit as a graphic, you can use the selected point graphic as input for the geometry buffer function (3.16: &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#buffer" title="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#buffer"&gt;esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript&lt;/A&gt; , 4.0: &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#buffer" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#buffer"&gt;geometryEngine | API Reference | ArcGIS API for JavaScript 4.0&lt;/A&gt;) to create a polygon geometry, which you can add to the map in a seperate graphics layer, on selection of the point graphic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 07:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-set-a-fance-while-moving-the-graphic-using/m-p/398716#M36715</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-20T07:15:36Z</dc:date>
    </item>
  </channel>
</rss>

