Merge pull request #1204 from friedbunny/location-shadow

Smooth edges of user location annotation icon's shadow
This commit is contained in:
Minh Nguyễn
2015-04-03 21:40:10 -07:00

View File

@@ -102,7 +102,7 @@ const CGFloat MGLTrackingDotRingWidth = 24.0;
//
if ( ! _dotBorderLayer)
{
CGRect rect = CGRectMake(0, 0, MGLTrackingDotRingWidth * 1.25, MGLTrackingDotRingWidth * 1.25);
CGRect rect = CGRectMake(0, 0, MGLTrackingDotRingWidth * 1.5, MGLTrackingDotRingWidth * 1.5);
UIGraphicsBeginImageContextWithOptions(rect.size, NO, [[UIScreen mainScreen] scale]);
CGContextRef context = UIGraphicsGetCurrentContext();