Permalink
Browse files

fixed bug which won't display annotation to ignore

  • Loading branch information...
1 parent 8946098 commit b059ba0cd4adf597e7ae4c9b6cef2f68887907c5 Botond Kis committed Mar 4, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 OCMapView/OCMapView.m
View
4 OCMapView/OCMapView.m
@@ -164,12 +164,14 @@ - (void)doClustering{
// add clustered and ignored annotations to map
[super addAnnotations: clusteredAnnotations];
- [super addAnnotations: [annotationsToIgnore allObjects]];
// fix for flickering
[annotationsToRemove removeObjectsInArray: clusteredAnnotations];
[super removeAnnotations:annotationsToRemove];
+ // add ignored annotations
+ [super addAnnotations: [annotationsToIgnore allObjects]];
+
// memory
[clusteredAnnotations release];
[annotationsToCluster release];

0 comments on commit b059ba0

Please sign in to comment.