<?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: How Can I Disable Panning? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554245#M3797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try Implementing this via the MapView.OnTouchListener(); event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 mMapView.setOnTouchListener(new OnTouchListener(){


&amp;nbsp; @Override
&amp;nbsp; public boolean onTouch(View v, MotionEvent event) {
&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp;&amp;nbsp; mMapView.setOnPanListener(null);
&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp; }
&amp;nbsp; 
 });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Downside is this will intercept any touch events on your map (pan/zoom/etc..).&amp;nbsp; With some more logic, you could probably trap what is pan, what is zoom, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:57:23 GMT</pubDate>
    <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
    <dc:date>2021-12-11T23:57:23Z</dc:date>
    <item>
      <title>How Can I Disable Panning?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554240#M3792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to allow the user to move/edit the position of a marker. I would like to disable panning to allow the user to just move the selected marker. How do I accomplish this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 16:57:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554240#M3792</guid>
      <dc:creator>EDWINSANCHEZ</dc:creator>
      <dc:date>2012-06-15T16:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Disable Panning?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554241#M3793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can disable the OnPanListener event by implementing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MapView.setOnPanListener(null);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 12:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554241#M3793</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2012-06-18T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Disable Panning?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554242#M3794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can disable the OnPanListener event by implementing:&lt;BR /&gt;MapView.setOnPanListener(null);&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does not work for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 10:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554242#M3794</guid>
      <dc:creator>_lkerArg_n</dc:creator>
      <dc:date>2012-06-25T10:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Disable Panning?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554243#M3795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@mggl if the setOnPanListener(null) pattern doesn't work then make sure you don't have another listener enabled somewhere. Chances are that another listener is overriding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 16:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554243#M3795</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-06-25T16:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Disable Panning?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554244#M3796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@agup i dont have another onpanlistener enabled. After setting onpanlistener to null, the result of &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;mapView.getOnPanListener() == null&lt;/PRE&gt;&lt;SPAN&gt; is true. However, the map still can be panned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 05:42:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554244#M3796</guid>
      <dc:creator>_lkerArg_n</dc:creator>
      <dc:date>2012-06-26T05:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Disable Panning?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554245#M3797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try Implementing this via the MapView.OnTouchListener(); event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 mMapView.setOnTouchListener(new OnTouchListener(){


&amp;nbsp; @Override
&amp;nbsp; public boolean onTouch(View v, MotionEvent event) {
&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp;&amp;nbsp; mMapView.setOnPanListener(null);
&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp; }
&amp;nbsp; 
 });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Downside is this will intercept any touch events on your map (pan/zoom/etc..).&amp;nbsp; With some more logic, you could probably trap what is pan, what is zoom, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-can-i-disable-panning/m-p/554245#M3797</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2021-12-11T23:57:23Z</dc:date>
    </item>
  </channel>
</rss>

