<?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 SketchEditor GeometryChanged events NewGeometry equals OldGeometry in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729935#M9188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;EM&gt;GeometryChanged&lt;/EM&gt; event of the SketchEditor does sometimes return &lt;EM&gt;NewGeometry&lt;/EM&gt; which equals &lt;EM&gt;OldGeometry&lt;/EM&gt; even though that a point has been modifed using the editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reproduction Steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Start the &lt;EM&gt;SketchEditor&lt;/EM&gt; with an already existing geometry as initial geometry and &lt;EM&gt;drawAndEdit == true&lt;/EM&gt;.&lt;/LI&gt;&lt;LI&gt;Select and move one point of the geometry.&lt;BR /&gt;Expectation: &lt;EM&gt;GeometryChanged&lt;/EM&gt; event gets raised and &lt;EM&gt;NewGeometry&lt;/EM&gt; is different from &lt;EM&gt;OldGeometry&lt;/EM&gt;.&lt;BR /&gt;Observation: &lt;EM&gt;GeometryChanged&lt;/EM&gt; event gets raised and &lt;EM&gt;NewGeometry&lt;/EM&gt; equals &lt;EM&gt;OldGeometry&lt;/EM&gt; (&lt;EM&gt;OldGeometry.IsEqual(NewGeometry) == true&lt;/EM&gt;).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Adding a point, deleting a point or moving multiple points will return the correct &lt;EM&gt;NewGeometry&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When registering to the &lt;EM&gt;PropertyChanged&lt;/EM&gt; event and filtering for Geometry property the provided value is what I'd expected to be returned as &lt;EM&gt;NewGeometry&lt;/EM&gt; from the &lt;EM&gt;GeometryChanged&lt;/EM&gt; event. So registering to the &lt;EM&gt;PropertyChanged&lt;/EM&gt; event is currently used by me as a workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2018 06:03:39 GMT</pubDate>
    <dc:creator>JonasHashagen</dc:creator>
    <dc:date>2018-08-13T06:03:39Z</dc:date>
    <item>
      <title>SketchEditor GeometryChanged events NewGeometry equals OldGeometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729935#M9188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;EM&gt;GeometryChanged&lt;/EM&gt; event of the SketchEditor does sometimes return &lt;EM&gt;NewGeometry&lt;/EM&gt; which equals &lt;EM&gt;OldGeometry&lt;/EM&gt; even though that a point has been modifed using the editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reproduction Steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Start the &lt;EM&gt;SketchEditor&lt;/EM&gt; with an already existing geometry as initial geometry and &lt;EM&gt;drawAndEdit == true&lt;/EM&gt;.&lt;/LI&gt;&lt;LI&gt;Select and move one point of the geometry.&lt;BR /&gt;Expectation: &lt;EM&gt;GeometryChanged&lt;/EM&gt; event gets raised and &lt;EM&gt;NewGeometry&lt;/EM&gt; is different from &lt;EM&gt;OldGeometry&lt;/EM&gt;.&lt;BR /&gt;Observation: &lt;EM&gt;GeometryChanged&lt;/EM&gt; event gets raised and &lt;EM&gt;NewGeometry&lt;/EM&gt; equals &lt;EM&gt;OldGeometry&lt;/EM&gt; (&lt;EM&gt;OldGeometry.IsEqual(NewGeometry) == true&lt;/EM&gt;).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Adding a point, deleting a point or moving multiple points will return the correct &lt;EM&gt;NewGeometry&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When registering to the &lt;EM&gt;PropertyChanged&lt;/EM&gt; event and filtering for Geometry property the provided value is what I'd expected to be returned as &lt;EM&gt;NewGeometry&lt;/EM&gt; from the &lt;EM&gt;GeometryChanged&lt;/EM&gt; event. So registering to the &lt;EM&gt;PropertyChanged&lt;/EM&gt; event is currently used by me as a workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 06:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729935#M9188</guid>
      <dc:creator>JonasHashagen</dc:creator>
      <dc:date>2018-08-13T06:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor GeometryChanged events NewGeometry equals OldGeometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729936#M9189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reporting this issue and offering us a workaround. It does appear GeometryChanged to be raised earlier with an old value for NewGeometry. I just logged the issue so we can work on getting this fixed in future releases of the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Undo/Redo&amp;nbsp;for change in vertex positions however, appear to be working.&amp;nbsp;But if you need to know when/what Geometry has changed to, GeometryChangedEventArgs.NewGeometry only reflects the change when a new vertex is added or a vertex gets deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask what you're using SketchEditor.Geometry for? Would it be something where two-way binding to this property can be done or is it necessary to do in code-behind where you subscribe to PropertyChanged event? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 18:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729936#M9189</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2018-08-13T18:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor GeometryChanged events NewGeometry equals OldGeometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729937#M9190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using two-way binding is not applicable as I'm using the event in the context of my question &lt;A href="https://community.esri.com/thread/219561"&gt;Exit condition for SketchEditor&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 05:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729937#M9190</guid>
      <dc:creator>JonasHashagen</dc:creator>
      <dc:date>2018-08-14T05:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor GeometryChanged events NewGeometry equals OldGeometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729938#M9191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the SketchEditor as a measure tool, I experience the same. Adding new vertexes works, but if I move an existing point, e.NewGeometry&amp;nbsp;holds OldGeometry. Moving the point again, I get the geometry I was supposed to get the previous time, and so on. I have a sample if needed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:42:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-events-newgeometry/m-p/729938#M9191</guid>
      <dc:creator>BjørnarSundsbø1</dc:creator>
      <dc:date>2018-09-18T13:42:55Z</dc:date>
    </item>
  </channel>
</rss>

