<?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: Xamarin Forms - MapView.SketchEditor.StartAsync right after pinch to zoom in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596389#M7316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I've found a workaround for this issue.&amp;nbsp; Essentially, it involves listening for the MapView's NavigationCompleted event, then, when fired, forcing completion of the current freehand polygon sketch, replacing the MapView's SketchEditor instance with a new one, and starting a new freehand polygon sketch with the completed sketch's Geometry.&amp;nbsp; I've attached a sample that encapsulates this workaround in an extension method to the MapView called SketchFreehandPolygonAsync.&amp;nbsp; That method can be called in place of MapView.SketchEditor.StartAsync.&amp;nbsp; Although stopping and starting the sketch session and replacing the SketchEditor on navigation completion seems a bit heavy-handed, it seemed to work without any notable side effects in the bit of testing I did on an Android and iOS device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2018 16:04:32 GMT</pubDate>
    <dc:creator>RichZwaap</dc:creator>
    <dc:date>2018-07-03T16:04:32Z</dc:date>
    <item>
      <title>Xamarin Forms - MapView.SketchEditor.StartAsync right after pinch to zoom</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596385#M7312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so we have the mapview.sketcheditor.startasync with a freehandpolygon in a loop and we can draw the polygon and geometry is returned, we can then keep drawing polygons one after the other with no problem.&amp;nbsp; We then pinch to zoom the map and the first mapview.sketcheditor.startasync after that doesn't draw a freehand polygon but instead pans the map and returns a null geometry,&amp;nbsp; after the pan we can then draw a polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This feels like an Esri bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Has anyone else experienced this?&lt;/P&gt;&lt;P&gt;2. What did you do to get around it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 21:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596385#M7312</guid>
      <dc:creator>PaulFarrow1</dc:creator>
      <dc:date>2018-06-13T21:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - MapView.SketchEditor.StartAsync right after pinch to zoom</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596386#M7313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your feedback. We ignore multi-touch gestures for sketch editor. Which version of the api are you using? To better assist, can you share which platform and code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also try to disable sketch editor in code this way...&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pinchGestureRecognizer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;PinchGestureRecognizer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
pinchGestureRecognizer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PinchUpdated &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SketchEditor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsEnabled&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SketchEditor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsEnabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Status &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; GestureStatus&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Canceled &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Status &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; GestureStatus&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Completed&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GestureRecognizers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pinchGestureRecognizer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To cancel or complete sketch in v100.x, use Cancel/CompleteCommand.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SketchEditor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CancelCommand&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CanExecute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SketchEditor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CancelCommand&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Execute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may check SketchEditor.Geometry property and MyMapView.GeometryChanged events. For Freehand, you should get this event on mouse/touch up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596386#M7313</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T01:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - MapView.SketchEditor.StartAsync right after pinch to zoom</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596387#M7314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for replying.&amp;nbsp; This is on Xamarin forms and exhibits the same behavor on iOS and Android.&amp;nbsp; We are using 100.2.1 runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how that helps me.&amp;nbsp; Setting the IsEnabled to false does not help the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have to pan the map before something internally allows the sketcheditor to resume giving back geometry otherwise geometry is null after a zoom of the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to create a basic example of it and call the support line or can I call you somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 20:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596387#M7314</guid>
      <dc:creator>PaulFarrow1</dc:creator>
      <dc:date>2018-06-14T20:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - MapView.SketchEditor.StartAsync right after pinch to zoom</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596388#M7315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE: Just in case any one else is facing this issue - I logged a support call and ESRI agreed its a bug in the 100.2.1 runtime and has been marked as a bug with the tracking id of &lt;STRONG style="font-size: 11.0pt;"&gt;BUG-000114899&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596388#M7315</guid>
      <dc:creator>PaulFarrow1</dc:creator>
      <dc:date>2018-06-28T15:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - MapView.SketchEditor.StartAsync right after pinch to zoom</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596389#M7316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I've found a workaround for this issue.&amp;nbsp; Essentially, it involves listening for the MapView's NavigationCompleted event, then, when fired, forcing completion of the current freehand polygon sketch, replacing the MapView's SketchEditor instance with a new one, and starting a new freehand polygon sketch with the completed sketch's Geometry.&amp;nbsp; I've attached a sample that encapsulates this workaround in an extension method to the MapView called SketchFreehandPolygonAsync.&amp;nbsp; That method can be called in place of MapView.SketchEditor.StartAsync.&amp;nbsp; Although stopping and starting the sketch session and replacing the SketchEditor on navigation completion seems a bit heavy-handed, it seemed to work without any notable side effects in the bit of testing I did on an Android and iOS device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 16:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596389#M7316</guid>
      <dc:creator>RichZwaap</dc:creator>
      <dc:date>2018-07-03T16:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - MapView.SketchEditor.StartAsync right after pinch to zoom</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596390#M7317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I tried this before in our application and had issues.&amp;nbsp; I tried it in my little example I gave you guys and it appears to work but within our application I hit what I hit before which is I&amp;nbsp; seem to have a cascading cancel exception which doesn't allow the sketch to continually loop.&amp;nbsp; I have put a couple of days effort into this over the week since you posted and I still cant get it to succeed successfully in our application.&amp;nbsp; Is this something I could screen share with you or are we closer to getting a proper fix for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 20:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-mapview-sketcheditor-startasync/m-p/596390#M7317</guid>
      <dc:creator>PaulFarrow1</dc:creator>
      <dc:date>2018-07-10T20:05:15Z</dc:date>
    </item>
  </channel>
</rss>

