On Jul 5, 2010, at 2:47 AM, Miguel Arroz wrote:

> Hello,
> 
>  I'm trying to control a map view programmatically, and I need to zoom in and 
> out with high accuracy (like when the user pinches it for zomming, the map 
> may display an arbitrary level of zoom when the user stops touching the view).
> 
>  However, when I do it programmatically, with setRegion:animated: or 
> setVisibleMapRect:animated:, the behavior is different than what I expect. It 
> appears that the map view has some predefined zoom levels, and it will 
> massage the region or rect I pass to those calls and adjust it to the nearest 
> approximation for those predefined zoom levels. This prevents me from setting 
> an arbitrary zoom level, or making a continuous zooming effect.
> 
>  Is there any way to tell the map view I want that specific region or rect, 
> and not the approximation?

I'm not sure about MKMapView but if it behaves the same way UIScrollView 
does... are those rects proportional to the view bounds?
I'm asking this because UIScrollView does an AspectFit to the rect you pass in 
when zooming, so to have complete control of where you want the final bounds to 
be, you need to pass a proportional rect.

> 
> Miguel Arroz
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/pfca%40mega.ist.utl.pt
> 
> This email sent to p...@mega.ist.utl.pt

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to