Authored by Justin R. Miller

update MBTiles source for upstream protocol changes

@@ -44,6 +44,8 @@ @@ -44,6 +44,8 @@
44 RMFractalTileProjection *tileProjection; 44 RMFractalTileProjection *tileProjection;
45 } 45 }
46 46
  47 +@synthesize cacheable = _cacheable, opaque = _opaque;
  48 +
47 - (id)initWithTileSetURL:(NSURL *)tileSetURL 49 - (id)initWithTileSetURL:(NSURL *)tileSetURL
48 { 50 {
49 if ( ! (self = [super init])) 51 if ( ! (self = [super init]))
@@ -63,6 +65,9 @@ @@ -63,6 +65,9 @@
63 [db setShouldCacheStatements:YES]; 65 [db setShouldCacheStatements:YES];
64 }]; 66 }];
65 67
  68 + self.cacheable = NO;
  69 + self.opaque = YES;
  70 +
66 return self; 71 return self;
67 } 72 }
68 73
@@ -130,6 +135,11 @@ @@ -130,6 +135,11 @@
130 return image; 135 return image;
131 } 136 }
132 137
  138 +- (BOOL)tileSourceHasTile:(RMTile)tile
  139 +{
  140 + return YES;
  141 +}
  142 +
133 - (NSString *)tileURL:(RMTile)tile 143 - (NSString *)tileURL:(RMTile)tile
134 { 144 {
135 return nil; 145 return nil;