Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 72 lines (47 sloc) 2.653 kB
a268a17 @elbryan Initial commit
authored
1 # MapKitDynRoutes
2
3 iOS4 library to manage dynamic routes on MKMapView.
4 This library tries to handle the lack of methods to manage growing routes without
5 repainting all of those anytime.
6
6a04d2a @elbryan Added demo project
authored
7 ## Features
6eb8520 @elbryan Adjusted readme file
authored
8 FFMapRoute(s) provide two classes that manage a growing route using an algorithm to aggregate points without having the polyline to be redraw/regenerated every time a new point is acquired.
6a04d2a @elbryan Added demo project
authored
9 Furthemore, this set of classes, comes with a simulator that injects coordinates using a timer.
10
2aff532 @elbryan Improved readme file
authored
11 ## How it works
6eb8520 @elbryan Adjusted readme file
authored
12 It works using an incremental way to add segments based on a integer factor.
13 That value is called kAGGREGATION_FACTOR and its value is set to 3, by default (please, check "kAGGREGATION_FACTOR" macro in "FFMapRoutes.h").
14 In order to explain it better, I'm going to drop you an example.
15
16 Let's say the factor is 3 and the tracking begins.
eaf1239 @elbryan Fixed README markdown syntax
authored
17 The segment sequence will be:
18
2aff532 @elbryan Improved readme file
authored
19 A-B, B-C, C-D
20
eaf1239 @elbryan Fixed README markdown syntax
authored
21 -- **aggregation** --
2aff532 @elbryan Improved readme file
authored
22 A-B-C-D
eaf1239 @elbryan Fixed README markdown syntax
authored
23 -- **end of aggregation** --
2aff532 @elbryan Improved readme file
authored
24
25 A-B-C-D, D-E, E-F, F-G
26
eaf1239 @elbryan Fixed README markdown syntax
authored
27 -- **aggregation** --
2aff532 @elbryan Improved readme file
authored
28 A-B-C-D, D-E-F-G
eaf1239 @elbryan Fixed README markdown syntax
authored
29 -- **end of aggregation** --
2aff532 @elbryan Improved readme file
authored
30
31 A-B-C-D, D-E-F-G, ..
32
eaf1239 @elbryan Fixed README markdown syntax
authored
33 -- **aggregation** --
2aff532 @elbryan Improved readme file
authored
34 ...
eaf1239 @elbryan Fixed README markdown syntax
authored
35 -- **end of aggregation** --
2aff532 @elbryan Improved readme file
authored
36
c98a4c0 @elbryan Fixed README typo
authored
37 A-B-C-D, D-E-F-G, G-H-I-J
2aff532 @elbryan Improved readme file
authored
38
eaf1239 @elbryan Fixed README markdown syntax
authored
39 -- **aggregation** --
c98a4c0 @elbryan Fixed README typo
authored
40 A-B-C-D-E-F-G-H-I-J
eaf1239 @elbryan Fixed README markdown syntax
authored
41 -- **end of aggregation** --
2aff532 @elbryan Improved readme file
authored
42
43 and so on.
44
6a04d2a @elbryan Added demo project
authored
45 ## Requirements
46
47 * Xcode 3.2.3 with iOS 4 SDK or Xcode 4 Preview.
48 * Project file (.xcodeproj) needs to:
49
50 1. C/C++ Compiler Version (GCC_VERSION) set to "LLVM compiler 1.5"
51 2. Other C Flags (OTHER_CFLAGS) should add "-Xclang -fobjc-nonfragile-abi2" flags.
52 3. Base SDK (SDKROOT) should be "iPhone Device 4.0"
53 4. Deployment Target (IPHONEOS_DEPLOYMENT_TARGET) can be "iPhone OS 3.1" if you want.
54
55 ## Note
56
57 <code>-Xclang</code> here means "pass argument to the clang compiler," and the argument is <code>-fobjc-nonfragile-abi2</code>. So you should add '**"-Xclang -fobjc-nonfragile-abi2"**' into $OTHER_CFLAGS as single argument that contains one space in between, and not add them as two arguments like '**-Xclang -fobjc-nonfragile-abi2**'.
58
59 For more details, check ["-Xclang -fobjc-nonfragile-abi2" is single flag with one argument][1].
60
a268a17 @elbryan Initial commit
authored
61 ## Thanksgiving
62 I want to say thanks to Walter 'DaK_TaLeS' for spending few nights talking about how to develop the algorithm used by this library and for supporting (and injuring) me all the time.
63
64 ## License
65
6eb8520 @elbryan Adjusted readme file
authored
66 This library and the associated demo are licensed under MIT license.
a268a17 @elbryan Initial commit
authored
67 However, if you are using this library and you want to share with me the fact that it suits your needs, please drop me a line. I'll be glad to hear that.
68
6a04d2a @elbryan Added demo project
authored
69 [1]:http://digdog.tumblr.com/post/833744044/xclang-fobjc-nonfragile-abi2-is-single-flag-with
70
6eb8520 @elbryan Adjusted readme file
authored
71 Fabiano 'elbryan' Francesconi
Something went wrong with that request. Please try again.