Skip to content

Commit

Permalink
Merge pull request #113 from pecheriere/fix-inverted-width-height
Browse files Browse the repository at this point in the history
FIX inverted height and width
  • Loading branch information
Bobby Sudekum committed Oct 25, 2015
2 parents f536b40 + 5bfea1e commit 3c12340
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/RCTMapboxGL/RCTMapboxGLManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
pin.annotationImageURL = annotationImageURL;
pin.annotationImageSize = annotationImageSize;
}
Expand All @@ -220,7 +220,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
point.annotationImageURL = annotationImageURL;
point.annotationImageSize = annotationImageSize;
}
Expand Down Expand Up @@ -422,7 +422,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
pin.annotationImageURL = annotationImageURL;
pin.annotationImageSize = annotationImageSize;
}
Expand All @@ -444,7 +444,7 @@ - (NSArray *)customDirectEventTypes
RCTLogError(@"Height and width for image required");
return;
}
CGSize annotationImageSize = CGSizeMake(height, width);
CGSize annotationImageSize = CGSizeMake(width, height);
point.annotationImageURL = annotationImageURL;
point.annotationImageSize = annotationImageSize;
}
Expand Down

0 comments on commit 3c12340

Please sign in to comment.