Pinch/zoom events in AGSGeoViewTouchDelegate

306
1
12-08-2021 07:01 AM
Selsoe
by
New Contributor III

I'm trying to figure out when viewPoint changes/updates occur because of the user touching the screen or because of other events (such as programatically changing it or if it follows the user location).

I'm looking at the `AGSGeoViewTouchDelegate` and specifically the functions

`geoView:didTouchDownAtScreenPoint:mapPoint:completion:`

and

`geoView:didTouchUpAtScreenPoint:mapPoint:`

However, these functions are not called if the user touches the screen with more than one finger, such as when pinching/zooming.

Is there a better way of making the distinction of the view point changing is due to user or other activity?

0 Kudos
1 Reply
Nicholas-Furness
Esri Regular Contributor

Hi @Selsoe,

At the moment we don't really have a generic solution. In your case, you could potentially look at the AGSLocationDisplay's autoPanMode to get an idea. If the user pinches while auto-panning, then autoPan mode is turned off (the exception is double-tap-to-zoom).

In the meantime, I'll see if we can expose some information about that in a future release.