Re: Continuous zoom in MKMapView
Re: Continuous zoom in MKMapView
- Subject: Re: Continuous zoom in MKMapView
- From: Paulo Andrade <email@hidden>
- Date: Wed, 7 Jul 2010 14:04:18 +0100
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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden