RMMapView.h
1.23 KB
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
//
// MapView.h
// Images
//
// Created by Joseph Gentle on 13/08/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <TargetConditionals.h>
///// This class is only valid for the iphone.
#if !TARGET_OS_IPHONE
#error This is only valid on the iphone.
#endif
#import <UIKit/UIKit.h>
#import "RMMercator.h"
//#import "MapRenderer.h"
//#import "TileSource.h"
typedef struct {
CGPoint center;
float averageDistanceFromCenter;
int numTouches;
} RMGestureDetails;
@protocol RMTileSource;
@class RMMapRenderer;
//@class TileSource;
//@class TileImageSet;
@interface RMMapView<RMRenderingTarget> : UIView {
id<RMTileSource> tileSource;
RMMapRenderer *renderer;
bool enableDragging;
bool enableZoom;
RMGestureDetails lastGesture;
}
-(void) moveToMercator: (RMMercatorPoint) point;
-(void) moveToLatLong: (CLLocationCoordinate2D) point;
- (void)moveBy: (CGSize) delta;
- (void)zoomByFactor: (float) zoomFactor Near:(CGPoint) center;
@property (readwrite) CLLocationCoordinate2D location;
@property (readwrite) float scale;
@property (assign, readwrite, nonatomic) bool enableDragging;
@property (assign, readwrite, nonatomic) bool enableZoom;
@property (retain, readwrite, nonatomic) id<RMTileSource> tileSource;
@end