Authored by Paul Bridger
Committed by Justin R. Miller

fix custom marker colors - integer cast was done on a value of range

0..1
... ... @@ -121,7 +121,7 @@
CGFloat red, green, blue, alpha;
if ([color getRed:&red green:&green blue:&blue alpha:&alpha])
colorHex = [NSString stringWithFormat:@"%02x%02x%02x", ((NSUInteger)red * 255), ((NSUInteger)green * 255), ((NSUInteger)blue * 255)];
colorHex = [NSString stringWithFormat:@"%02x%02x%02x", (NSUInteger)(red * 255), (NSUInteger)(green * 255), (NSUInteger)(blue * 255)];
}
return [self initWithMapBoxMarkerImage:symbolName tintColorHex:colorHex sizeString:sizeString];
... ...