Authored by Joseph G

Added some description lines to various classes

@@ -66,6 +66,12 @@ @@ -66,6 +66,12 @@
66 66
67 [[image layer] removeFromSuperlayer]; 67 [[image layer] removeFromSuperlayer];
68 } 68 }
  69 +
  70 +-(NSString*) description
  71 +{
  72 + return @"CoreAnimation map renderer";
  73 +}
  74 +
69 /* 75 /*
70 - (void)moveBy: (CGSize) delta 76 - (void)moveBy: (CGSize) delta
71 { 77 {
@@ -53,6 +53,12 @@ @@ -53,6 +53,12 @@
53 [contents drawRect:rect]; 53 [contents drawRect:rect];
54 } 54 }
55 55
  56 +-(NSString*) description
  57 +{
  58 + CGRect bounds = [self bounds];
  59 + return [NSString stringWithFormat:@"iPhone MapView at %.0f,%.0f-%.0f,%.0f", bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height];
  60 +}
  61 +
56 #pragma mark Movement 62 #pragma mark Movement
57 63
58 -(void) moveToMercator: (RMMercatorPoint) point 64 -(void) moveToMercator: (RMMercatorPoint) point
@@ -15,4 +15,9 @@ @@ -15,4 +15,9 @@
15 return [NSString stringWithFormat:@"http://tile.openstreetmap.org/%d/%d/%d.png", tile.zoom, tile.x, tile.y]; 15 return [NSString stringWithFormat:@"http://tile.openstreetmap.org/%d/%d/%d.png", tile.zoom, tile.x, tile.y];
16 } 16 }
17 17
  18 +-(NSString*) description
  19 +{
  20 + return @"OpenStreetMaps";
  21 +}
  22 +
18 @end 23 @end
@@ -34,6 +34,11 @@ @@ -34,6 +34,11 @@
34 [super dealloc]; 34 [super dealloc];
35 } 35 }
36 36
  37 +-(NSString*) description
  38 +{
  39 + return @"Quartz 2D map renderer";
  40 +}
  41 +
37 - (void)drawRect:(CGRect)rect 42 - (void)drawRect:(CGRect)rect
38 { 43 {
39 [[content imagesOnScreen] drawRect:rect]; 44 [[content imagesOnScreen] drawRect:rect];
@@ -46,4 +46,9 @@ @@ -46,4 +46,9 @@
46 return [NSString stringWithFormat:@"http://%@%d.ortho.tiles.virtualearth.net/tiles/%@%@%@?g=15", mapType, 3, mapType, quadKey, mapExtension]; 46 return [NSString stringWithFormat:@"http://%@%d.ortho.tiles.virtualearth.net/tiles/%@%@%@?g=15", mapType, 3, mapType, quadKey, mapExtension];
47 } 47 }
48 48
  49 +-(NSString*) description
  50 +{
  51 + return @"Microsoft VirtualEarth";
  52 +}
  53 +
49 @end 54 @end