MapRenderer.h
853 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
//
// MapRenderer.h
// RouteMe
//
// Created by Joseph Gentle on 8/09/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Mercator.h"
@class MapView;
@class ScreenProjection;
@interface MapRenderer : NSObject
{
ScreenProjection *screenProjection;
MapView *view;
}
// Designated initialiser
- (id) initWithView: (MapView *)_view ProjectingIn: (ScreenProjection*) _screenProjection;
// This makes a screen projection from the view
- (id) initWithView: (MapView *)view;
- (void)drawRect:(CGRect)rect;
-(void) moveToMercator: (MercatorPoint) point;
-(void) moveToLatLong: (CLLocationCoordinate2D) point;
- (void)moveBy: (CGSize) delta;
- (void)zoomByFactor: (float) zoomFactor Near:(CGPoint) center;
-(void) recalculateImageSet;
- (void)setNeedsDisplay;
@property (readwrite) double scale;
@end