2013-06-05 25 views
9

Tôi sử dụng MKMapView để hiển thị tổng cộng khoảng 700 chú thích. Vấn đề của tôi là đôi khi tôi nhận được nhật ký khổng lồ như thế này:Lỗi lạ: Không thể hiển thị đa giác

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) 

Tôi không thể tìm thấy bất kỳ điều gì liên quan đến lỗi và hoàn toàn bị cản trở. Không có sự khác biệt thực sự về hình ảnh mà tôi có thể thấy và không có lỗi nào khác. Bất cứ ai có bất kỳ ý tưởng này là tất cả về?

+3

Bạn đã bao giờ tìm được giải pháp cho điều đó chưa? Tôi đang gặp vấn đề tương tự ngay bây giờ – gasparuff

+0

@gasparuff Dự án này liên quan đến việc đã được hoàn thành vài tháng trước, nhưng theo như tôi có thể nhớ, cuối cùng tôi đã chấp nhận các lỗi như là một lỗi của hệ thống kiểm tra lỗi của Apple. IIRC Thỉnh thoảng các thông báo lỗi chỉ được cho là xảy ra trên các bản ghi gỡ lỗi của riêng chúng kết thúc trong các bản dựng phân phối. Tôi không thể tìm thấy bất kỳ nguyên nhân nào cho lỗi này và kết thúc với hy vọng rằng bất cứ điều gì đang xảy ra đều đang được hệ thống cố định cùng một lúc. – Tapppi

+0

bản sao có thể có của [Không thể hiển thị đa giác (không thể đặt trước chỉ báo: XX): featureID: X khóa: XXXX] (http://stackoverflow.com/questions/23966911/cant-render-polygon-cant-reserve- indicies-xx-featureid-x-key-xxxx) – Daniel

Trả lời

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. 
+0

Thật không may là tôi không có thời gian để kiểm tra giải pháp này, nhưng nghi ngờ đây là nguyên nhân, như ban đầu đã được trả lời [ở đây] (http: // stackoverflow.com/a/23969763/1603234) – Tapppi