-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFFMapRoute.h
29 lines (23 loc) · 858 Bytes
/
FFMapRoute.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
//
// FFMapRoute.h
//
// Created by Fabiano Francesconi on 19/07/10.
// Copyright 2010 Fabiano Francesconi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
@interface FFMapRoute : NSObject {
NSMutableArray *points;
NSUInteger level;
MKPolyline *line;
}
@property (nonatomic, retain) MKPolyline *line;
@property (nonatomic, retain) NSMutableArray *points;
@property (nonatomic, assign) NSUInteger level;
/* Init the object with a list of points */
- (id) initWithPoints:(NSArray *)newPoints;
/* Add coordinate to the local array by wrapping it into a NSData object */
/* This method is useful when you created a placeholder that is an empty FFMapRoute instance. */
/* With this method you can drop the existing points and regenerate the new polyline */
- (void) updateRouteWithPoints:(NSArray *)newPoints;
@end