Authored by Justin R. Miller

fixes #169: allow re-add of annotations

... ... @@ -2869,6 +2869,9 @@
{
@synchronized (_annotations)
{
if ([_annotations containsObject:annotation])
return;
[_annotations addObject:annotation];
[self.quadTree addAnnotation:annotation];
}
... ...
... ... @@ -631,7 +631,8 @@
{
@synchronized (self)
{
[_rootNode addAnnotation:annotation];
if ( ! [_rootNode.annotations containsObject:annotation])
[_rootNode addAnnotation:annotation];
}
}
... ... @@ -643,9 +644,8 @@
@synchronized (self)
{
for (RMAnnotation *annotation in annotations)
{
[_rootNode addAnnotation:annotation];
}
if ( ! [_rootNode.annotations containsObject:annotation])
[_rootNode addAnnotation:annotation];
}
}
... ...