Authored by Justin R. Miller

fixes #89: don't just use `layer` to determine if visible

@@ -172,13 +172,12 @@ @@ -172,13 +172,12 @@
172 172
173 - (BOOL)isAnnotationOnScreen 173 - (BOOL)isAnnotationOnScreen
174 { 174 {
175 - CGRect screenBounds = [mapView bounds];  
176 - return [self isAnnotationWithinBounds:screenBounds]; 175 + return [self isAnnotationWithinBounds:[mapView bounds]];
177 } 176 }
178 177
179 - (BOOL)isAnnotationVisibleOnScreen 178 - (BOOL)isAnnotationVisibleOnScreen
180 { 179 {
181 - return (layer != nil); 180 + return (layer != nil && [self isAnnotationOnScreen]);
182 } 181 }
183 182
184 - (void)setIsUserLocationAnnotation:(BOOL)flag 183 - (void)setIsUserLocationAnnotation:(BOOL)flag