Skip to content

Commit

Permalink
Merge pull request #220 from hansemannn/TIMOB-25677
Browse files Browse the repository at this point in the history
[TIMOB-25677] iOS: Fix cluster-annotations-crash and static analyser warnings
  • Loading branch information
hansemannn authored Jan 18, 2018
2 parents 2737e81 + f3749ad commit cd471ab
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 403 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion android/CHANGELOG.txt

This file was deleted.

246 changes: 0 additions & 246 deletions android/LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion ios/Classes/TiMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotationProxy:(TiMap

if (!TiPreviewingDelegate) {
NSLog(@"[ERROR] Unable to receive TiPreviewingDelegate class!");
return;
return nil;
}

#ifndef __clang_analyzer__
Expand Down
6 changes: 4 additions & 2 deletions ios/Classes/TiMapViewProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ - (void)setAnnotations:(id)arg
// descriptors for them, we have to check and make sure there is
// no overlap and remember/forget appropriately.

for (TiMapAnnotationProxy *annProxy in currentAnnotations) {
if (![newAnnotations containsObject:annProxy]) {
for (id annProxy in currentAnnotations) {
// Remove old proxy references that should not rendered anymore
// Also only forget proxies, not native annotations like cluster annotations
if ([annProxy isKindOfClass:[TiMapAnnotationProxy class]] && ![newAnnotations containsObject:annProxy]) {
[self forgetProxy:annProxy];
}
}
Expand Down
Loading

0 comments on commit cd471ab

Please sign in to comment.