RMTiledLayerController.h
1.37 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
//
// ScreenProjection.h
// Images
//
// Created by Joseph Gentle on 28/08/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RMMercator.h"
#import "RMLatLong.h"
#import <QuartzCore/QuartzCore.h>
@protocol RMTileSource;
////////////////////////////// NOT COMPLETE. DO NOT USE
@interface RMTiledLayerController : NSObject
{
CATiledLayer *layer;
// MercatorPoint topLeft;
// Size in pixels
// CGSize viewSize;
// Scale is how many meters in 1 pixel. Larger scale means bigger things are smaller on the screen.
// Scale of 1 means 1 pixel == 1 meter.
// Scale of 10 means 1 pixel == 10 meters.
float scale;
id tileSource;
}
-(id) initWithTileSource: (id <RMTileSource>) tileSource;
-(void) setScale: (float) scale;
-(void) centerMercator: (RMMercatorPoint) point Animate: (BOOL) animate;
-(void) centerLatLong: (CLLocationCoordinate2D) point Animate: (BOOL) animate;
-(void) dragBy: (CGSize) delta;
-(void) zoomByFactor: (float) zoomFactor Near:(CGPoint) center;
/*
-(CGPoint) projectMercatorPoint: (MercatorPoint) point;
-(CGRect) projectMercatorRect: (MercatorRect) rect;
-(MercatorPoint) projectInversePoint: (CGPoint) point;
-(MercatorRect) projectInverseRect: (CGRect) rect;
-(MercatorRect) bounds;
*/
@property (assign, readwrite, nonatomic) float scale;
@property (readonly, nonatomic) CATiledLayer *layer;
@end