Authored by Justin R. Miller

updated @2x markers for latest API changes

... ... @@ -133,7 +133,7 @@
{
BOOL useRetina = ([[UIScreen mainScreen] scale] > 1.0);
NSURL *imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://a.tiles.mapbox.com/v3/marker/pin-%@%@%@.png%@",
NSURL *imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://a.tiles.mapbox.com/v3/marker/pin-%@%@%@%@.png",
(sizeString ? [sizeString substringToIndex:1] : @"m"),
(symbolName ? [@"-" stringByAppendingString:symbolName] : nil),
(colorHex ? [@"+" stringByAppendingString:[colorHex stringByReplacingOccurrencesOfString:@"#" withString:@""]] : nil),
... ... @@ -141,9 +141,7 @@
UIImage *image;
NSString *rearrangedFilename = [[imageURL lastPathComponent] stringByReplacingOccurrencesOfString:@".png@2x" withString:@"@2x.png"]; // for scale detection
NSString *cachePath = [NSString stringWithFormat:@"%@/%@", kCachesPath, rearrangedFilename];
NSString *cachePath = [NSString stringWithFormat:@"%@/%@", kCachesPath, [imageURL lastPathComponent]];
if ((image = [UIImage imageWithContentsOfFile:cachePath]) && image)
return [self initWithUIImage:image];
... ...