refactor: Rework image creation

This commit is contained in:
Andrea Busi
2022-11-17 22:13:18 +01:00
parent 95a214403b
commit 3e122240dc
4 changed files with 28 additions and 19 deletions
@@ -119,7 +119,7 @@
EQNMapAnnotationUserReport *report = (EQNMapAnnotationUserReport *)annotation;
EQNCustomAnnotationView *annotationView = (EQNCustomAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:EQNCustomAnnotationView.SmallIdentifier];
annotationView.image = report.image;
annotationView.image = [report imageWithHeight:EQNCustomAnnotationView.SmallViewImageHeight];
annotationView.title = report.timeDifference;
return annotationView;
}