[ios] Do not allow multipoint annotations to be assigned views

This commit is contained in:
Jason Wray
2016-07-22 17:49:47 -04:00
parent 4b1eeada9e
commit 09cc87f593
2 changed files with 8 additions and 1 deletions

View File

@@ -4547,7 +4547,13 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
MGLAnnotationContext &annotationContext = pair.second;
MGLAnnotationView *annotationView = annotationContext.annotationView;
// Defer to the shape/polygon styling delegate methods
if ([annotationContext.annotation isKindOfClass:[MGLMultiPoint class]])
{
continue;
}
if (!annotationView)
{
MGLAnnotationView *annotationView = [self annotationViewForAnnotation:annotationContext.annotation];