Authored by Thomas Rasch

o Code cleanup

... ... @@ -39,13 +39,13 @@
#import "RMTileSourcesContainer.h"
// constants for boundingMask
enum {
enum : NSUInteger {
RMMapNoMinBound = 0, // Map can be zoomed out past view limits
RMMapMinHeightBound = 1, // Minimum map height when zooming out restricted to view height
RMMapMinWidthBound = 2 // Minimum map width when zooming out restricted to view width (default)
};
typedef enum {
typedef enum : NSUInteger {
RMMapDecelerationNormal,
RMMapDecelerationFast,
RMMapDecelerationOff
... ...
... ... @@ -310,7 +310,7 @@
{
CGRect bounds = [self bounds];
return [NSString stringWithFormat:@"MapView at %.0f,%.0f-%.0f,%.0f", bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height];
return [NSString stringWithFormat:@"MapView at {%.0f,%.0f}-{%.0f,%.0f}", bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height];
}
#pragma mark -
... ... @@ -1484,16 +1484,14 @@
{
NSArray *tileSources = [self tileSources];
for (NSUInteger i=0; i<[tileSources count]; ++i)
{
id <RMTileSource> currentTileSource = [tileSources objectAtIndex:i];
[tileSources enumerateObjectsUsingBlock:^(id <RMTileSource> currentTileSource, NSUInteger index, BOOL *stop)
{
if (tileSource == currentTileSource)
{
[self setHidden:isHidden forTileSourceAtIndex:i];
break;
[self setHidden:isHidden forTileSourceAtIndex:index];
*stop = YES;
}
}
}];
}
- (void)setHidden:(BOOL)isHidden forTileSourceAtIndex:(NSUInteger)index
... ...
... ... @@ -10,7 +10,7 @@
@class RMAnnotation, RMMapView;
typedef enum {
typedef enum : short {
nodeTypeLeaf,
nodeTypeNode
} RMQuadTreeNodeType;
... ...
... ... @@ -32,7 +32,7 @@
@class RMTileImage, RMMemoryCache;
typedef enum {
typedef enum : short {
RMCachePurgeStrategyLRU,
RMCachePurgeStrategyFIFO,
} RMCachePurgeStrategy;
... ...
... ... @@ -747,7 +747,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0420;
LastUpgradeCheck = 0450;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MapView" */;
compatibilityVersion = "Xcode 3.2";
... ...