<?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: SketchEditor.GeometryChanged not firing consistently when moving a point by dragging it in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209003#M2426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reporting this, it's been logged and fixed in our current builds to address this user&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/219562-sketcheditor-geometrychanged-events-newgeometry-equals-oldgeometry"&gt;feedback&lt;/A&gt;. You may want to use PropertyChanged for Geometry meanwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, do you mean to update feature's geometry before sketch has completed? You can use set SketchEditor.Style Fill/Line/Marker/Selected symbols if you just need the temporary graphic of SketchEditor to match your feature's symbology.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 22:52:09 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2018-08-23T22:52:09Z</dc:date>
    <item>
      <title>SketchEditor.GeometryChanged not firing consistently when moving a point by dragging it</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209001#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a tool that allows my users to click on a point in the map and then drag it and drop it on a new location.&amp;nbsp; This works perfectly in the WPF API, but in the Xamarin API there are times where the sketch editor does not appear to know that a geometry edit has occurred.&amp;nbsp; I've tried to force a complete on the sketch editor as well and in the same fashion CompleteCommand.CanExecute is false at times right after I complete the drag and drop.&amp;nbsp; If I don't drag and I simply select the point then tap on the new location it seems to work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a snippet of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SketchEditConfiguration sec = new SketchEditConfiguration();&lt;BR /&gt; sec.AllowMove = true;&lt;BR /&gt; sec.AllowRotate = false;&lt;BR /&gt; sec.AllowVertexEditing = false;&lt;BR /&gt; sec.RequireSelectionBeforeDrag = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SketchCreationMode sketchCreationMode = SketchCreationMode.Point;&lt;BR /&gt; Geometry editGeom = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplicationManager.MainMapView.SketchEditor.GeometryChanged += async (s, e) =&amp;gt;&lt;BR /&gt; {&lt;BR /&gt; moveFeature.Geometry = e.NewGeometry;&lt;BR /&gt; await moveFeature.FeatureTable.UpdateFeatureAsync(moveFeature);&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;editGeom = moveFeature.Geometry;&lt;BR /&gt; sketchCreationMode = (SketchCreationMode)Enum.Parse(typeof(SketchCreationMode), moveFeature.Geometry.GeometryType.ToString());&lt;/P&gt;&lt;P&gt;await ApplicationManager.MainMapView.SketchEditor.StartAsync(editGeom, sketchCreationMode, sec);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209001#M2424</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2018-08-23T20:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor.GeometryChanged not firing consistently when moving a point by dragging it</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209002#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed that if I drag the point to a new location and pause for a second or two everything works fine.&amp;nbsp; If I drag to the new location and immediately lift my finger off the screen it hardly ever works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209002#M2425</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2018-08-23T21:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor.GeometryChanged not firing consistently when moving a point by dragging it</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209003#M2426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reporting this, it's been logged and fixed in our current builds to address this user&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/219562-sketcheditor-geometrychanged-events-newgeometry-equals-oldgeometry"&gt;feedback&lt;/A&gt;. You may want to use PropertyChanged for Geometry meanwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, do you mean to update feature's geometry before sketch has completed? You can use set SketchEditor.Style Fill/Line/Marker/Selected symbols if you just need the temporary graphic of SketchEditor to match your feature's symbology.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 22:52:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209003#M2426</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2018-08-23T22:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor.GeometryChanged not firing consistently when moving a point by dragging it</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209004#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok that's good to know Jennifer.&amp;nbsp; So I assume this will be fixed in 100.4 then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I am not trying to update the geometry before it has been completed.&amp;nbsp; The scenario I described is where the completed "event" doesn't occur consistently unless I pause before I lift my finger off the screen on a drag and drop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-geometrychanged-not-firing/m-p/209004#M2427</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2018-08-24T14:36:06Z</dc:date>
    </item>
  </channel>
</rss>

