-
Notifications
You must be signed in to change notification settings - Fork 0
/
TLMapLayer.m
70 lines (47 loc) · 960 Bytes
/
TLMapLayer.m
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// TLMapLayer.m
// Mercatalog
//
// Created by Nathan Vander Wilt on 2/25/08.
// Copyright 2008 Calf Trail Software, LLC. All rights reserved.
//
#import "TLMapLayer.h"
#import "TLMapView.h"
#import "TLMapLayer+HostInternals.h"
#import "TLMapView+HostInternals.h"
@implementation TLMapLayer
#pragma mark Lifecylce
- (id)init {
self = [super init];
if (self) {
// ...
}
return self;
}
- (void)dealloc {
// ...
[super dealloc];
}
#pragma mark "Stuff"
@synthesize active;
@synthesize hidden;
- (void)removeFromHost {
[host removeLayer:self];
}
- (void)setNeedsDisplay {
[[self host] setLayerNeedsDisplay:self];
}
#pragma mark Old map layer subclass compatibility
- (void)drawInContext:(CGContextRef)ctx withInfo:(id < TLMapInfo >)mapInfo {
(void)ctx;
(void)mapInfo;
}
@end
@implementation TLMapLayer (TLMapLayerHostInternals)
- (TLMapView*)host {
return host;
}
- (void)setHost:(TLMapView*)aHost {
host = aHost;
}
@end