Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MKMapView tiles not loaded with zoom

I've got an issue. I'm using a MKMapView for displaying some annotations. I initialize a map view with default zoom. And it displays some map.

enter image description here

but when i try zooming, tiles not loaded, and map becomes empty. Like this.

enter image description here

I create my Map View via interface builder.

@property (nonatomic, weak) IBOutlet MKMapView* mapView;

What am I doing wrong? Is there any mandatory methods for implementation, that affect on this functional? And yes, there is an internet connection on my device.

like image 978
BergP Avatar asked Oct 14 '14 07:10

BergP


1 Answers

Generally this can happens due to internet connection. If you have slow internet connection than it takes time to load map tiles.

About methods i recommended to override below method.

Override MKMapView delegate method -

- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated

Will call every time you zoom in/out and load map tiles.

PS - provide MKMapViewDelegate to your view controller.

like image 115
Kampai Avatar answered Dec 28 '22 10:12

Kampai