o Added a cancelAllDownloads stub to the tile sources
Showing
3 changed files
with
6 additions
and
0 deletions
@@ -92,6 +92,10 @@ | @@ -92,6 +92,10 @@ | ||
92 | userInfo:nil]; | 92 | userInfo:nil]; |
93 | } | 93 | } |
94 | 94 | ||
95 | +- (void)cancelAllDownloads | ||
96 | +{ | ||
97 | +} | ||
98 | + | ||
95 | - (RMFractalTileProjection *)mercatorToTileProjection | 99 | - (RMFractalTileProjection *)mercatorToTileProjection |
96 | { | 100 | { |
97 | if (!tileProjection) { | 101 | if (!tileProjection) { |
@@ -1106,6 +1106,7 @@ | @@ -1106,6 +1106,7 @@ | ||
1106 | if (tileSource == newTileSource) | 1106 | if (tileSource == newTileSource) |
1107 | return; | 1107 | return; |
1108 | 1108 | ||
1109 | + [tileSource cancelAllDownloads]; | ||
1109 | [tileSource autorelease]; | 1110 | [tileSource autorelease]; |
1110 | tileSource = [newTileSource retain]; | 1111 | tileSource = [newTileSource retain]; |
1111 | 1112 |
@@ -41,6 +41,7 @@ | @@ -41,6 +41,7 @@ | ||
41 | @protocol RMTileSource <NSObject> | 41 | @protocol RMTileSource <NSObject> |
42 | 42 | ||
43 | - (UIImage *)imageForTile:(RMTile)tile inCache:(RMTileCache *)tileCache; | 43 | - (UIImage *)imageForTile:(RMTile)tile inCache:(RMTileCache *)tileCache; |
44 | +- (void)cancelAllDownloads; | ||
44 | 45 | ||
45 | - (RMFractalTileProjection *)mercatorToTileProjection; | 46 | - (RMFractalTileProjection *)mercatorToTileProjection; |
46 | - (RMProjection *)projection; | 47 | - (RMProjection *)projection; |
-
Please register or login to post a comment