MapKit: programmatic zooming during UserTracking

Originator:futuretap
Number:rdar://15374402 Date Originated:01-Nov-2013 11:06 PM
Status:Open Resolved:
Product:iOS SDK Product Version:6.1, 7.0
Classification:Serious Bug Reproducible:Always
 
Summary:
When using MKUserTrackingModeFollow, programmatic zooming using -[MKMapView setRegion:animated:] doesn't work. The map shortly zooms out but returns to the previous zoom level as soon as it receives the next location update.

Steps to Reproduce:
Open and run the attached project.
Enable user tracking using the button.
Then tap "Zoom Out".

Expected Results:
The map continues to track the user but zooms out.

Actual Results:
The map shortly zooms out and zooms back in when it receives the next location update. Under iOS 7 it zooms back in right after tapping the "Zoom Out" button.

Notes:
Many apps need to set the zoom level according to the shown content (such as pins). This is hardly doable in combination with the new user tracking feature. I can think of hacks like disabling the tracking mode during the programmatic zoom but this is clearly not the way it should work.

Regression:
see rdar://9921109 
I believe the bug was once fixed but since (at least) iOS 6.1 it occurs again.

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!