views:

106

answers:

3

I don't know what's make wrong, my map can load, but the image on the map is not completely load. plx help. thz a lot. Here is the simulate map from the iPhone: (Added more example image.)

http://img689.imageshack.us/img689/8476/screenshot20100309at841.jpg alt text

Here is the code:

MKCoordinateRegion theRegion;
MKCoordinateSpan theSpan;
theSpan.latitudeDelta = 0.005;
theSpan.longitudeDelta = 0.005;

theRegion.center =  manager.location.coordinate;
theRegion.span = theSpan;

myMap.scrollEnabled = YES; 
myMap.zoomEnabled = YES; 

[myMap setRegion:theRegion];
[myMap regionThatFits:theRegion];
A: 

Don't you do anything in the main thread that would prevent the map tiles to load fully ?

yonel
A: 

Solved with SDK updated.

Tattat
A: 

I've seen that you're using CLLocationManager. You need to be aware that the CLLocationManager delegate callbacks are called on a background thread. So you should not update the map (e.g. zoom, region etc.) from within the delegate callbacks.

Or you need to perform these task in a "performSelectorOnMainThread" block.

Colins