Commit 032360bf authored by bsudekum's avatar bsudekum
Browse files

Dont show popups when no title or subtitle

Showing with 7 additions and 1 deletion
+7 -1
......@@ -307,7 +307,13 @@ RCT_EXPORT_MODULE();
}
- (BOOL)mapView:(RCTMapboxGL *)mapView annotationCanShowCallout:(id <MGLAnnotation>)annotation {
return YES;
NSString *title = [(RCTMGLAnnotation *) annotation title];
NSString *subtitle = [(RCTMGLAnnotation *) annotation subtitle];
if ([title length] != 0 || [subtitle length] != 0 ) {
return YES;
} else {
return NO;
}
}
- (void)selectAnnotationAnimated:(NSUInteger)annotationInArray
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment