我使用MKMapView
来显示总共约700个注释。我的问题是,有时我得到一个像这样的巨大日志:
2013-06-05 17:32:12.395 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 324): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 480): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 1818): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 234): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 90): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 174): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 162): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 186): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 114): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 120): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 78): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 126): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 192): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 156): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 84): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)
我一直无法找到有关错误的任何内容,我完全感到困惑。我没有看到真正的视觉差异,也没有其他错误。任何人都知道这是怎么回事?
答案 0 :(得分:3)
I also had the same problem once in iOS6.1.
I was zooming out the map based on a coordinate which was (0.00000,0.00000).
In my code:-
CLLocationCoordinate2D theCoordinate ;
theCoordinate.latitude = [[self.dicOfMAP objectForKey:@"latitude"] doubleValue];
theCoordinate.longitude = [[self.dicOfMAP objectForKey:@"longitude"] doubleValue];
self.pointAnnotation.coordinate = theCoordinate;
the value of theCoordinate was(0.0,0.0).
So check the value of coordinate.