<?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: Override GeoViewDoubleTapped Event in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364462#M4307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm testing on an Android TabS ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2017 15:12:03 GMT</pubDate>
    <dc:creator>AndyWright</dc:creator>
    <dc:date>2017-01-03T15:12:03Z</dc:date>
    <item>
      <title>Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364460#M4305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Double-tapping the map on a tablet zooms in by default. &amp;nbsp;I have a scenario where I'd like to stop that from happening. &amp;nbsp;I need to override that functionality and have it do something else besides zooming in. &amp;nbsp;I subscribed to the GeoView.GeoViewDoubleTapped event and set handled = true, but it seems like the map view already does its thing prior to my event being handled. &amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I don't want to override that behavior throughout my entire application, only when I have a specific tool activated. &amp;nbsp;What am I missing? &amp;nbsp;Thanks in advance for the help ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 18:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364460#M4305</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2016-12-29T18:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364461#M4306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What platform you are using? I don't have touch device at the moment for testing but I'll have a look to this later this week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 11:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364461#M4306</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2017-01-03T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364462#M4307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm testing on an Android TabS ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 15:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364462#M4307</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2017-01-03T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364463#M4308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just handle the event.&lt;/P&gt;&lt;P&gt;mapView.GeoViewDoublleTapped += (s,e) =&amp;gt; { e.Handled = true; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 19:44:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364463#M4308</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-01-03T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364464#M4309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeh I'm doing that already and the zoom in still occurs. &amp;nbsp;It also cancels my sketch editor stuff, which is why I want to trap it and handle it myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 21:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364464#M4309</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2017-01-03T21:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364465#M4310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share some code showing the issue? This shouldn't happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wrt editor note that it would only cause Editor to not complete an edit when you're running in the mode where double-click auto-finishes the sketch. For a touch-based interface, I would actually recommend turning that off and use a complete-button instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also You can check if the editor is active (ie is there an active session that can be cancelled) and not handle it in that case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;e.Handled = mapView.SketchEditor.CancelCommand.CanExecute(null);&lt;/P&gt;&lt;P&gt;However this wouldn't prevent zooming on double-click during editing though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly you mentioned you only want to prevent it in some cases. Then only set this value if it's that case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly you can turn zooming off altogether:&lt;/P&gt;&lt;P&gt;mapView.InteractionOptions.IsZoomEnabled = false;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 21:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364465#M4310</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-01-03T21:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364466#M4311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanted to start with getting that zoom functionality disabled when I needed it disabled. &amp;nbsp;I don't want it disabled all the time however. &amp;nbsp;The editor really doesn't come into play yet until I can control that zoom stuff. &amp;nbsp;And I agree with you that the double-tap shouldn't be used for completing sketches on a touch device, but that was another symptom of the double-tap that I wanted to communicate to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all of this code is within a huge application so it will be hard to send you. &amp;nbsp;Anyway, my mapview object is accessed throughout my application through a static variable in a manager class. &amp;nbsp;Once that class is all loaded up and everything is good to go I throw an event that indicates the rest of the app can start doing its thing. &amp;nbsp;That's when I attempt to hook into the mapview double tapped event just like you suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplicationManager.MainMapView.GeoViewDoubleTapped += (s, ev) =&amp;gt; { ev.Handled = true; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put a break point there it gets hit every time I double tap, but the zoom in still occurs. &amp;nbsp;I suppose I could put together a little repro app and see if it happens decoupled from the girth of my application. &amp;nbsp;Do you have cases in house where this is working as expected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 22:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364466#M4311</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2017-01-03T22:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Override GeoViewDoubleTapped Event</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364467#M4312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just created a brand new template app and plugged in this override and it still zooms in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XAML:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ContentPage xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fxamarin.com%2Fschemas%2F2014%2Fforms" rel="nofollow" target="_blank"&gt;http://xamarin.com/schemas/2014/forms&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:x="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fschemas.microsoft.com%2Fwinfx%2F2009%2Fxaml" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/winfx/2009/xaml&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms"&lt;BR /&gt; xmlns:local="clr-namespace:ArcGISApp5.Shared;assembly=ArcGISApp5"&lt;BR /&gt; x:Class="ArcGISApp5.MapPage"&amp;gt;&lt;BR /&gt; &amp;lt;ContentPage.Resources&amp;gt;&lt;BR /&gt; &amp;lt;ResourceDictionary&amp;gt;&lt;BR /&gt; &amp;lt;local:MapViewModel x:Key="MapViewModel" /&amp;gt;&lt;BR /&gt; &amp;lt;/ResourceDictionary&amp;gt;&lt;BR /&gt; &amp;lt;/ContentPage.Resources&amp;gt;&lt;BR /&gt; &amp;lt;Grid&amp;gt;&lt;BR /&gt; &amp;lt;esriUI:MapView x:Name="mapView" Map="{Binding Map, Source={StaticResource MapViewModel}}" /&amp;gt;&lt;BR /&gt; &amp;lt;/Grid&amp;gt;&lt;BR /&gt;&amp;lt;/ContentPage&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Behind:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using Xamarin.Forms;&lt;/P&gt;&lt;P&gt;namespace ArcGISApp5&lt;BR /&gt;{&lt;BR /&gt; public partial class MapPage : ContentPage&lt;BR /&gt; {&lt;BR /&gt; public MapPage()&lt;BR /&gt; {&lt;BR /&gt; InitializeComponent();&lt;/P&gt;&lt;P&gt;mapView.GeoViewDoubleTapped += (s, ev) =&amp;gt;&lt;BR /&gt; {&lt;BR /&gt; ev.Handled = true;&lt;BR /&gt; };&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// Map initialization logic is contained in MapViewModel.cs&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 22:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/override-geoviewdoubletapped-event/m-p/364467#M4312</guid>
      <dc:creator>AndyWright</dc:creator>
      <dc:date>2017-01-03T22:58:55Z</dc:date>
    </item>
  </channel>
</rss>

