-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTLMapView.h
55 lines (44 loc) · 1.38 KB
/
TLMapView.h
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
//
// TLMapView.h
// Mercatalog
//
// Created by Nathan Vander Wilt on 2/25/08.
// Copyright 2008 Calf Trail Software, LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TLProjection.h"
#import "TLBounds.h"
@class TLMapLayer;
@class TLInteractiveMapLayer;
#define CHECKPROTOCOL
#ifdef CHECKPROTOCOL
// NOTE: this is to get protocol check despite compiler bug rdar://problem/6284845
#import "TLMapInfo.h"
@interface TLMapView : NSView < TLMapInfo > {
#undef CHECKPROTOCOL
#else
@interface TLMapView : NSView {
#endif /* CHECKPROTOCOL */
@private
// cartographic parameters
TLProjectionRef projection;
TLBounds desiredBounds;
// layer hosting
NSMutableArray* mapLayers;
NSMapTable* mapLayerBackingInfo;
__weak CALayer* rootLayer;
// tracking zone management
NSMapTable* layerTrackingManagers;
// other stuff
CGSize cachedScreenSizeInMillimeters;
__weak TLInteractiveMapLayer* currentMouseLayer;
NSEvent* eventForDrag;
}
@property (nonatomic, assign) TLProjectionRef projection; // "copy"
@property (nonatomic, assign) TLBounds desiredBounds;
@property (nonatomic, readonly) TLBounds visibleBounds;
- (void)addLayer:(TLMapLayer*)layer;
- (void)replaceLayer:(TLMapLayer*)oldLayer withLayer:(TLMapLayer*)newLayer;
- (void)insertLayer:(TLMapLayer*)layer aboveLayer:(TLMapLayer*)existingLayer;
- (void)insertLayer:(TLMapLayer*)layer belowLayer:(TLMapLayer*)existingLayer;
@end