Skip to content

Commit

Permalink
Added removing duplicate of selected annotation from cluster when upd…
Browse files Browse the repository at this point in the history
…ating clusters.
  • Loading branch information
Rafał Dubiel committed Dec 13, 2018
1 parent dbd5d91 commit 66146c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ClusterKit/Core/CKClusterManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ - (void)updateMapRect:(MKMapRect)visibleMapRect animated:(BOOL)animated {
return;
}

if ([_clusters containsObject: _selectedCluster]) {
[_clusters removeObject:_selectedCluster];
[self.map selectCluster:_selectedCluster animated:animated];
}

MKMapRect clusterMapRect = MKMapRectWorld;
if (self.marginFactor != kCKMarginFactorWorld) {
clusterMapRect = MKMapRectInset(visibleMapRect,
Expand Down

0 comments on commit 66146c7

Please sign in to comment.