RMMapRenderer.m
811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// MapRenderer.m
// RouteMe
//
// Created by Joseph Gentle on 9/09/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "RMMapRenderer.h"
#import "RMTileImage.h"
@implementation RMMapRenderer
// Designated initialiser
- (id) initWithContent: (RMMapContents *)_contents
{
if (![super init])
return nil;
content = _contents;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mapImageLoaded:) name:RMMapImageLoadedNotification object:nil];
return self;
}
-(void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
}
- (void) setNeedsDisplay
{
}
-(void)mapImageLoaded: (NSNotification*)notification
{
[self setNeedsDisplay];
}
- (void)drawRect:(CGRect)rect
{ }
- (CALayer*) layer
{
return nil;
}
@end