MapKit: gesture flag in regionWill/DidChange callback

Originator:futuretap
Number:rdar://17342463 Date Originated:17-Jun-2014 05:03 PM
Status:Duplicate/16867174/Open Resolved:
Product:iOS SDK Product Version:8.0 beta (WWDC seed)
Classification:New Feature Reproducible:Not Applicable
 
We'd like to see an additional flag whether a region change was user initiated or not:

 -[MKMapViewDelegate mapView:(MKMapView *)mapView regionWill/DidChangeRegion:(MKCoordinateRegion)region userInitiated:(BOOL)userInitiated

This would be useful for apps that need to fetch content based on map movement but at the same time want to center the map based on the found content. Such apps need a way to differentiate whether a map movement was initiated by the user or made programmatically.

Steps to Reproduce:
n/a

Expected Results:
n/a

Actual Results:
n/a

Version:
iOS 8

Notes:
Of course we can introduce a custom waitingForProgrammaticRegionUpdate flag that is set on each programmatic region update and cleared at the regionDidChange callback. However this doesn't always work because callbacks tend to be omitted when the region change is too small.

So we need a proper way to differentiate both types of updates. Btw, Google Maps SDK has such a property in their willChange equivalent method and it's very useful.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!