<?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 Double tap zoom wont work after map has been rotated. in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674192#M4697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with double tap zoom not working after the MapView is rotated. Is there a way to fix this or a way to disable onDoubleTap completely in MapView?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aleksi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 12:22:09 GMT</pubDate>
    <dc:creator>AleksiMajander</dc:creator>
    <dc:date>2012-05-30T12:22:09Z</dc:date>
    <item>
      <title>Double tap zoom wont work after map has been rotated.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674192#M4697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with double tap zoom not working after the MapView is rotated. Is there a way to fix this or a way to disable onDoubleTap completely in MapView?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aleksi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 12:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674192#M4697</guid>
      <dc:creator>AleksiMajander</dc:creator>
      <dc:date>2012-05-30T12:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Double tap zoom wont work after map has been rotated.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674193#M4698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aleksi, Did you see any errors in logcat right after you did a double tap? I believe the following code snippet will prevent double tap from propagating:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.setOnTouchListener(new MapOnTouchListener(getApplicationContext(), map){
 @Override
 public boolean onDoubleTap(MotionEvent point) {
&amp;nbsp; Log.d("Test","onDoubleTap do nothing");
&amp;nbsp; return false;
 }
});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674193#M4698</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-12T04:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Double tap zoom wont work after map has been rotated.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674194#M4699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the reply, that snippet works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The double tap still zooms after map rotation, the problem is that it also moves the map depending on how much map is rotated. So after double tap i might be zoomed 5km of from the original map point i double-tapped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aleksi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--EDIT--&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Found a workaround using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
map.centerAt(map.toMapPoint(new Point(point.getX(), point.getY())), true);
double i = map.getRotationAngle();
map.setRotationAngle(0);
map.zoomin();
map.setRotationAngle(i);
return true;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in onDoubleTap(). Is there any better way to accomplish this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:26:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674194#M4699</guid>
      <dc:creator>AleksiMajander</dc:creator>
      <dc:date>2021-12-12T04:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Double tap zoom wont work after map has been rotated.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674195#M4700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aleksi, I'm not able to duplicate...I have an app that rotates on pinch and the setOnTouchListener override works just fine on several phones. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have an OnPinchListener set in addition to a setOnTouchListener?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 14:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/double-tap-zoom-wont-work-after-map-has-been/m-p/674195#M4700</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-06-05T14:15:10Z</dc:date>
    </item>
  </channel>
</rss>

