<?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 Change Position of Polygon/Polyline graphic in ArcGIS java in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138898#M407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;I have seen the usage of SketchEditor. Though my&amp;nbsp;question was to know specifically that if there is any way to programmatically change the position of a polygon/polyline by shifting it from it's geometry, however your response confirms that there isn't any way to do that apart from the SketchEditor, which is why i'm going to accept this as the correct answer. The problem i am facing is that right now, my application gives the user the ability to draw different shapes (including Square, Rectangle and circles which are not currently supported by the SDK but are drawn using polygon geometry programmatically by me). In order to edit those unsupported shapes, the SketchEditor must support them too.&amp;nbsp;I'm trying to avoid editing shapes using the&amp;nbsp;&lt;SPAN&gt;SketchEditor&amp;nbsp;due to this rigid scenario. Starting the SketchEditor with a circle polygon may probably ruin the shape. Can i even ask you when is the team going to add support for more shape geometries plus SketchEditor just like the Team has done with C# SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2020 11:52:03 GMT</pubDate>
    <dc:creator>FuzailSiddiqui</dc:creator>
    <dc:date>2020-02-06T11:52:03Z</dc:date>
    <item>
      <title>How to Change Position of Polygon/Polyline graphic in ArcGIS java</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138896#M405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a map based application using&amp;nbsp;ArcGIS java SDK 100.7.0. I'm working on drawing and editing graphics. My question is very simple. Is there a way that we can change the center point of the extent of a polygon or a polyline graphic. I am required to give my user the ability to drag and move a graphic on MapView when on edit mode. How can i achieve this in java.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 07:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138896#M405</guid>
      <dc:creator>FuzailSiddiqui</dc:creator>
      <dc:date>2020-01-28T07:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Position of Polygon/Polyline graphic in ArcGIS java</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138897#M406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;Hello,&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;Utilitising the &lt;A href="https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/SketchEditor.html" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer" target="_blank"&gt;Sketch Editor&lt;/A&gt;, a user can click and drag a geometry (currently supporting polygon/polyline/point/multipoint) once it has been added to e.g. a graphics overlay. See the &lt;A href="https://developers.arcgis.com/java/latest/java/sample-code/sketch-on-map/" rel="nofollow noopener noreferrer" target="_blank"&gt;Sketch On Map&lt;/A&gt; sample for an example of how to use this functionality.&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;Programmatically, this happens via capturing the graphic's geometry and passing it into the sketchEditor.start() function.&amp;nbsp;This allows the user to click on the graphic, and click and drag it to move the whole graphic, or click and drag individual vertexes on the graphic to edit individual segments. See for example the following code snippet from the Sketch On Map sample:&lt;SPAN class="" data-stringify-type="paragraph-break"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if (!graphicsOverlay.getSelectedGraphics().isEmpty()) {
      graphic = graphicsOverlay.getSelectedGraphics().get(0);
      sketchEditor.start(graphic.getGeometry());
    }&lt;/PRE&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;Hope this helps,&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;Rachael&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #1d1c1d; background-color: #ffffff;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138897#M406</guid>
      <dc:creator>Rachael_Ellen</dc:creator>
      <dc:date>2021-12-11T07:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Position of Polygon/Polyline graphic in ArcGIS java</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138898#M407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;I have seen the usage of SketchEditor. Though my&amp;nbsp;question was to know specifically that if there is any way to programmatically change the position of a polygon/polyline by shifting it from it's geometry, however your response confirms that there isn't any way to do that apart from the SketchEditor, which is why i'm going to accept this as the correct answer. The problem i am facing is that right now, my application gives the user the ability to draw different shapes (including Square, Rectangle and circles which are not currently supported by the SDK but are drawn using polygon geometry programmatically by me). In order to edit those unsupported shapes, the SketchEditor must support them too.&amp;nbsp;I'm trying to avoid editing shapes using the&amp;nbsp;&lt;SPAN&gt;SketchEditor&amp;nbsp;due to this rigid scenario. Starting the SketchEditor with a circle polygon may probably ruin the shape. Can i even ask you when is the team going to add support for more shape geometries plus SketchEditor just like the Team has done with C# SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 11:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138898#M407</guid>
      <dc:creator>FuzailSiddiqui</dc:creator>
      <dc:date>2020-02-06T11:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Position of Polygon/Polyline graphic in ArcGIS java</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138899#M408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your feedback on the SketchEditor functionality: as you say, these shapes are currently missing from SketchEditor in the Java SDK. We are however considering them for a future release.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rachael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 13:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-change-position-of-polygon-polyline-graphic/m-p/138899#M408</guid>
      <dc:creator>Rachael_Ellen</dc:creator>
      <dc:date>2020-02-10T13:12:27Z</dc:date>
    </item>
  </channel>
</rss>

