Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zoom out in MKMapView

When you double tap on MKMapView : zoom in.

But how to zoom out??

like image 385
saurabh Avatar asked May 28 '26 23:05

saurabh


1 Answers

There's always using two fingers to zoom in and out. On the emulator you need to hold down an option key to get 'two fingers' appear on the emulated screen (I think it's the Alt key but I use a PC keyboard on my mac so may differ on a real mac keyboard)

As for doing it procedurally you need to set the region on the mapkit. via the setRegion method of your MKMapKit object.

Make sure you're within bounds though as it will cause a crash if not. (i.e. long -180

like image 197
sradforth Avatar answered May 31 '26 14:05

sradforth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!