blob: c84485970ab6a89deb9febf34565f72a2f36514d (
plain)
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
|
An OpenGL renderer for [Mapbox vector tiles](https://www.mapbox.com/blog/vector-tiles),
implemented in C++, targeting iOS & OSX.
# Build instructions
## Mac OS X
You may need to install [glfw3](http://www.glfw.org/docs/latest/):
```
brew install homebrew/versions/glfw3
```
```
mkdir xcode
cd xcode
cmake .. -G Xcode
```
Then open the xcode project and build.
# Style protobuf
We're encoding the styling information as a protocol buffer, according to
proto/style.proto. The reason for doing so is that we don't have to ship with a
JSON/yaml parser. To test the conversion script, run
```
bin/convert-style.js | protoc --decode=style proto/style.proto
```
You should see a nicely formatted hierarchical output of the converted style.
To update the included default style, use
```
bin/convert-style.js > resources/style.pbf && bin/build-style.js
```
# Usage
- Press 'R' to reset the transform
- Press 'N' to reset north
- Press Tab to toggle debug information
- Press Esc to quit
|