<?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 to disable pan and zoom and use drag in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229153#M2101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we have this as a feature to AGSMapView? MapKit framework has scrollEnabled property to do this. A similar property can be added to AGSMapView so that scroll and pan can be disabled and user can still tap on Graphics on the screen. I am sure this would be a common use case when people are doing free hand drawing/geo fence on maps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 23:50:04 GMT</pubDate>
    <dc:creator>AkhilChoran_Balan</dc:creator>
    <dc:date>2015-03-31T23:50:04Z</dc:date>
    <item>
      <title>how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229149#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;im using the sketch layer sample, and want to disable pan and zoom when the toolbar items are selected. how do i do this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;also, how can i use drag to draw instead of touch?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229149#M2097</guid>
      <dc:creator>HamzaHaroon</dc:creator>
      <dc:date>2012-08-10T14:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229150#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't disable the pan/zoom of map. You should add a transparent UIView on top of it which will receive all touches and then you can convert those touch point into map point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 20:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229150#M2098</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-14T20:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229151#M2099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks. im using an opengl view so that i can free hand draw. only problem im having is making the drawing stay at certain geological coordinates. to convert an agspoint to a cgpoint do i have to implement the toScreenPoint: method myself, or i just have to call it. is there any example of this method?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 12:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229151#M2099</guid>
      <dc:creator>HamzaHaroon</dc:creator>
      <dc:date>2012-08-15T12:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229152#M2100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Normal UIView is good enough for a free hand draw. AGSMapView has toScreenPoint method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 15:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229152#M2100</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-08-15T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229153#M2101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we have this as a feature to AGSMapView? MapKit framework has scrollEnabled property to do this. A similar property can be added to AGSMapView so that scroll and pan can be disabled and user can still tap on Graphics on the screen. I am sure this would be a common use case when people are doing free hand drawing/geo fence on maps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 23:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229153#M2101</guid>
      <dc:creator>AkhilChoran_Balan</dc:creator>
      <dc:date>2015-03-31T23:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229154#M2102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once I have used AGSMapView toMapPoint to create the mapPoint object within my custom, transparent UIView's UITapGestureRecognizer event handler, what selector on the mapView can I call with my mapPoint parameter so that the AGSMapView's didClickAtPoint event will be triggered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems no programmatic way to trigger the AGSMapViewTouchDelegate's events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 18:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229154#M2102</guid>
      <dc:creator>ReedHunter</dc:creator>
      <dc:date>2016-01-04T18:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229155#M2103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some clarification ...&lt;/P&gt;&lt;P&gt;I need to lock down the map mode so users don't switch from Navigation, Compass, or Auto-Center mode to manual pan (AGSLocation/displayAutoPanModeOff) with accidental swipes of the screen.&amp;nbsp; This has generated user complaints from fans of navigation mode.&amp;nbsp; I'm trying to implement what I'm calling "locked" navigation, compass, and auto-center modes, each making the map view ignore swipes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disabling user interaction is no solution because they need taps to identify and edit features, and they want the tap-hold for accessing the magnifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The context for my question above is I'm trying out a transparent UIView above the map view such as outlined here: &lt;A href="https://community.esri.com/thread/57159"&gt;how to disable pan and zoom and use drag&lt;/A&gt;​, only passing the taps and the tap-holds through to the map. I'm not seeing a way though to call the map view programmatically from my UIView's gesture handlers to make it think it's been tapped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since that hasn't worked, I'm also looking into overriding the map view's gesture handlers to ignore swipes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229155#M2103</guid>
      <dc:creator>ReedHunter</dc:creator>
      <dc:date>2016-01-04T19:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to disable pan and zoom and use drag</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229156#M2104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I came up with a solution that's working well, but will require my review each time the iOS SDK is updated to a new version: remove any array elements from AGSMapView.gestureRecognizers that handle the user interaction I want to restrict.&amp;nbsp; At the current release, there are seven gestureRecognizers, and the three I keep are the UILongPressGestureRecognizer (I have enabled the magnifier) and the two UITapGestureRecognizers.&amp;nbsp; This lets the map support identify, editing, and the magnifier without letting the users accidentally pan the map out of the navigation, auto-center, or compass modes.&amp;nbsp; I save the others in a module level array in my view controller, adding them back to the AGSMapView's gestureRecognizers when the user picks a "non-locked" map mode from the UI picker I made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ones I set aside are UIPanGestureRecognizer, AGSMultiTapGestureRecognizer, UIPinchGestureRecognizer, and UIRotationGestureRecognizer.&amp;nbsp; This routine below is what I call to "lock" the current map mode, and I have another written in the reverse logic to "unlock" the map mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- (void) removePanGesturesFromMap {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSMutableArray * mutableGestureRecognizers = [[NSMutableArray alloc] initWithArray:self.mapView.gestureRecognizers];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSMutableArray *recognizersToRemove = [[NSMutableArray alloc] init];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (UIGestureRecognizer * gestureRecognizer in self.mapView.gestureRecognizers) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (![gestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; ![gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]] ) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; [recognizersToRemove addObject:gestureRecognizer];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (recognizersToRemove.count &amp;gt; 0) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [mutableGestureRecognizers removeObjectsInArray:(NSArray*) recognizersToRemove];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.preservedMapPanGestureHandlers = recognizersToRemove;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.mapView.gestureRecognizers = (NSArray*)mutableGestureRecognizers;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-disable-pan-and-zoom-and-use-drag/m-p/229156#M2104</guid>
      <dc:creator>ReedHunter</dc:creator>
      <dc:date>2016-01-06T01:13:16Z</dc:date>
    </item>
  </channel>
</rss>

