<?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: Geometry Editor - Move or Rotate in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-editor-move-or-rotate/m-p/1407480#M12611</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/331798"&gt;@Mike_Quetel&lt;/a&gt;&amp;nbsp;thanks for your question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I took a look at the &lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/blob/main/src/GeometryEditor/MyGeometryEditor.cs" target="_self"&gt;sample&lt;/A&gt; you based your implementation on and I think a can see what is missing.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the sample implementation tool styles are not being set when the geometry type is `MapPoint` or `Multipoint`. This causes the inactive and move tools to hide the vertex symbol and selected vertex symbol when editing a point.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've created a &lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/pull/72/files" target="_self"&gt;PR&lt;/A&gt; to correct this in the arcgis-maps-sdk-dotnet-demos repo.&lt;BR /&gt;&lt;BR /&gt;The main section to look at is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;else if (geometry is MapPoint || geometry is Multipoint)
{
  _inactiveTool.Style.VertexSymbol = _inactiveTool.Style.SelectedVertexSymbol = _moveTool.Style.SelectedVertexSymbol = _moveTool.Style.VertexSymbol = symbol;
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Please let me know if this doesn't fix your issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 12:56:18 GMT</pubDate>
    <dc:creator>HamishDuff</dc:creator>
    <dc:date>2024-04-09T12:56:18Z</dc:date>
    <item>
      <title>Geometry Editor - Move or Rotate</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-editor-move-or-rotate/m-p/1380622#M12522</link>
      <description>&lt;P&gt;I'm having some issues with moving a point geometry via the GeometryEditor (v200.2).&amp;nbsp; The basic workflow is that user has selected an existing graphic and then clicks a move or rotate ToggleButton.&amp;nbsp; The button sets the appropriate tool in the editor (lifted from &lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/blob/main/src/GeometryEditor/MyGeometryEditor.cs" target="_self"&gt;this sample&lt;/A&gt;), then calls Start() on the editor, passing in the geometry of the selected graphic, then calling SelectGeometry().&lt;/P&gt;&lt;P&gt;I'm getting the expected interactions for lines and polygons, but not points.&amp;nbsp; Dragging the line or polygon (or anywhere in the editor's selection rectangle) will move or rotate and I can update my graphic once the geometry property changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Points do not seem to respond or have a selection rectangle in the editor.&amp;nbsp; An attempt to drag the point simply pans the map.&amp;nbsp; Would appreciate any suggestions with what I am getting wrong here.&lt;/P&gt;&lt;P&gt;SelectGeometry() called on editor, with Geometry property set to a polygon:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="move_polygon.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94368iA9EE628AE1FA46CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="move_polygon.PNG" alt="move_polygon.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;SelectGeometry() called on editor, with Geometry property set to a point:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="move_point.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94369i5BE06784DC136423/image-size/medium?v=v2&amp;amp;px=400" role="button" title="move_point.PNG" alt="move_point.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the configuration of my move tool:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            _moveGeometryTool = new VertexTool()
            {
                Configuration = new InteractionConfiguration()
                {
                    AllowMovingSelectedElement = true,
                    AllowMidVertexSelection = false,
                    AllowDeletingSelectedElement = false,
                    AllowPartCreation = false,
                    AllowGeometrySelection = true,
                    AllowPartSelection = true,
                    AllowScalingSelectedElement = false,
                    AllowVertexCreation = false,
                    AllowVertexSelection = false,
                    AllowRotatingSelectedElement = false,
                    RequireSelectionBeforeMove = false,
                },
                Style = new GeometryEditorStyle
                {
                    MidVertexSymbol = null,
                    VertexSymbol = null,
                    SelectedVertexSymbol = null,
                    SelectedMidVertexSymbol = null,
                    FeedbackVertexSymbol = null
                }
            };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 21:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometry-editor-move-or-rotate/m-p/1380622#M12522</guid>
      <dc:creator>Mike_Quetel</dc:creator>
      <dc:date>2024-02-09T21:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Editor - Move or Rotate</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-editor-move-or-rotate/m-p/1407480#M12611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/331798"&gt;@Mike_Quetel&lt;/a&gt;&amp;nbsp;thanks for your question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I took a look at the &lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/blob/main/src/GeometryEditor/MyGeometryEditor.cs" target="_self"&gt;sample&lt;/A&gt; you based your implementation on and I think a can see what is missing.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the sample implementation tool styles are not being set when the geometry type is `MapPoint` or `Multipoint`. This causes the inactive and move tools to hide the vertex symbol and selected vertex symbol when editing a point.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've created a &lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/pull/72/files" target="_self"&gt;PR&lt;/A&gt; to correct this in the arcgis-maps-sdk-dotnet-demos repo.&lt;BR /&gt;&lt;BR /&gt;The main section to look at is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;else if (geometry is MapPoint || geometry is Multipoint)
{
  _inactiveTool.Style.VertexSymbol = _inactiveTool.Style.SelectedVertexSymbol = _moveTool.Style.SelectedVertexSymbol = _moveTool.Style.VertexSymbol = symbol;
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Please let me know if this doesn't fix your issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 12:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometry-editor-move-or-rotate/m-p/1407480#M12611</guid>
      <dc:creator>HamishDuff</dc:creator>
      <dc:date>2024-04-09T12:56:18Z</dc:date>
    </item>
  </channel>
</rss>

