Skip to content

Commit

Permalink
update MBTiles source for upstream protocol changes
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Nov 2, 2012
1 parent 3955fce commit ab21104
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions MapView/Map/RMMBTilesSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ @implementation RMMBTilesSource
RMFractalTileProjection *tileProjection;
}

@synthesize cacheable = _cacheable, opaque = _opaque;

- (id)initWithTileSetURL:(NSURL *)tileSetURL
{
if ( ! (self = [super init]))
Expand All @@ -63,6 +65,9 @@ - (id)initWithTileSetURL:(NSURL *)tileSetURL
[db setShouldCacheStatements:YES];
}];

self.cacheable = NO;
self.opaque = YES;

return self;
}

Expand Down Expand Up @@ -130,6 +135,11 @@ - (UIImage *)imageForTile:(RMTile)tile inCache:(RMTileCache *)tileCache
return image;
}

- (BOOL)tileSourceHasTile:(RMTile)tile
{
return YES;
}

- (NSString *)tileURL:(RMTile)tile
{
return nil;
Expand Down

0 comments on commit ab21104

Please sign in to comment.