GoogleMapsOverlayiOS icon indicating copy to clipboard operation
GoogleMapsOverlayiOS copied to clipboard

Auto Zoom in ?

Open shivanraptor opened this issue 13 years ago • 2 comments

Is there any Auto Zoom In feature ? By default, it shows almost the whole world .

shivanraptor avatar Oct 29 '12 10:10 shivanraptor

Hi Raptor,

This is just mkmapkit overlay, you can zoom map like before.

Sent from my iPhone 5 test device

On 29.10.2012., at 11.19, Raptor Kwok [email protected] wrote:

Is there any Auto Zoom In feature ? By default, it shows almost the whole world .

— Reply to this email directly or view it on GitHub.

mladjan avatar Oct 29 '12 10:10 mladjan

I use this code :

if ([mapView showsUserLocation]) { MKCoordinateSpan span; MKCoordinateRegion region; span.longitudeDelta = 0.002; span.latitudeDelta = 0.002; CLLocationCoordinate2D location = mapView.userLocation.coordinate; region.span = span; region.center = location;

    [mapView setCenterCoordinate:location animated:YES];

}

but it doesn't zoom in .

shivanraptor avatar Oct 29 '12 10:10 shivanraptor