Konstantin Käfer
7dbe768ffc
change the window title to indicate the current style
2015-05-07 11:01:15 +02:00
Thiago Marcos P. Santos
769364c117
Make all GLFWView attributes private
2015-05-07 11:01:15 +02:00
Thiago Marcos P. Santos
168d7c4f17
Add style change functionality to the Linux test app
...
Makes the life of people using Linux as development environment way
easier.
Just press 's' to cycle through 3 different styles.
2015-05-07 11:01:15 +02:00
John Firebaugh
a625ba8a09
Remove Map::start/stop
...
Both Android and iOS now use pause/resume. The map thread is
always running, and be able to receive messages. When paused,
it will just refuse to render.
2015-04-28 14:32:24 -04:00
Konstantin Käfer
452d12e6e6
make implementation files private headers
2015-04-13 18:28:18 +02:00
Konstantin Käfer
16849a341b
hide Thread<> and separate the Implementation object
2015-04-13 17:57:45 +02:00
Konstantin Käfer
4c7132337f
convert DefaultFileSource to use util::Thread<>
2015-04-10 22:37:27 +02:00
Konstantin Käfer
bba3d9838a
add Thread<T> and RunLoop
...
Thread<T> is a generic thread management object that starts a thread, creates an object T in that thread and calls its .start() function. When the Thread<T> object is destructed (which must happen in the thread that created it), it'll call the object's .stop() function, and wait for thread termination. The .stop() function must somehow get the thread to terminate. Note that object T's constructor/destructor/start()/stop() must be protected/private, and Thread<T> must be declared as a friend class. All public functions may be called from any thread and are exposed through operator->().
RunLoop encapsulates a libuv runloop and has a facility of dispatching function objects to the thread. It can be used either as a worker thread class by itself, or it can be derived from. This commit converts SQLiteCache to derive from RunLoop and removes the custom code used previously for managing the cache thread.
2015-04-10 15:36:32 +02:00
Thiago Marcos P. Santos
490c172b35
Delete the GLFWView object at exit
...
Also destroy the glfwWindow we create. This leak was probably harmless
but a nice cleanup helps us debug other serious memory leaks.
2015-03-20 14:38:08 +02:00
Thiago Marcos P. Santos
124b49562d
Get rid of printf and cout by using Log::*
...
Use our logging system that will route the message accordingly on
the target platform.
Fixes #613
2015-03-12 14:19:32 +02:00
Thiago Marcos P. Santos
51bc265db3
Make the logging system static
...
No initialization is needed anymore and we can use the logging functions
safely at any point of the code (threading is not handled though, so you
might get multiplexed messages if you log from two threads
simultaneously).
2015-03-12 13:28:41 +02:00
Justin R. Miller
6e41664cb0
fixes #476 & #853 : pixel/meter/latlng conversion routines in core & iOS
2015-02-16 09:52:36 -08:00
Konstantin Käfer
29baacf3a5
refactor makefile
2015-02-04 10:49:09 +01:00
Konstantin Käfer
92a7f73bbe
fixes for linux
2015-02-04 10:49:06 +01:00
Konstantin Käfer
8a1fce547e
rearrange tests and add storage tests
2015-02-04 10:49:05 +01:00
John Firebaugh
9495b686e7
Use v7 styles / tests
2015-01-22 12:00:26 -08:00
Konstantin Käfer
b5e9998b15
change file:// to asset:// to indicate that they aren't arbitrary files
...
refs #579
2014-12-17 14:59:05 +01:00
Konstantin Käfer
936e096514
Make file request overridable by platform implementations
...
refs #579 : Android can now rename AssetRequest to FileRequest and implement it differently
2014-12-17 12:14:32 +01:00
John Firebaugh
ff640132de
Move setAccessToken to CachingHTTPFileSource
2014-12-04 17:03:23 -08:00
Konstantin Käfer
abafb52f37
make most headers private
2014-12-04 20:02:50 +01:00
Mike Morris
dac76a0f92
break out FileSource as an abstract class
...
add CachingHTTPFileSource implementation
2014-12-03 12:25:11 -05:00
John Firebaugh
05c5c3a8bc
Use v6 styles
2014-11-04 12:26:14 -08:00
artemp
1e2c5f988e
add -s,--style command line option to specify path to the style
...
e.g ./build/Release/mapbox-gl -s ./styles/styles/bright-v5.json
2014-11-03 16:00:40 +00:00
Dane Springmeyer
f0b8fa2839
fix 'run-linux' target - refs #534/#511
2014-11-03 09:20:13 -05:00
Dane Springmeyer
b2032103f2
linux app: fix path to styles
2014-10-31 17:14:30 -04:00
John Firebaugh
d675828fe1
Get mapbox-gl-styles via submodule ( fixes #511 )
2014-10-31 17:14:30 -04:00
Konstantin Käfer
cd9a89257a
restructure gyp files
2014-10-24 16:40:08 +02:00
Konstantin Käfer
6f80264291
remove uv.h dependency from header files
2014-08-12 11:45:30 +02:00
Konstantin Käfer
be15af7e04
consolidate into one line
2014-08-11 12:17:27 +02:00
Konstantin Käfer
4657e6e023
use a file source object to abstract loading of resources
2014-08-08 18:25:45 +02:00
John Firebaugh
86336ed838
Flip name and units and sign of rotation API
...
Angle -> Bearing
Radians -> Degrees
Clockwise -> Counterclockwise
2014-07-21 11:30:51 -07:00
Konstantin Käfer
4ea281c750
rename llmr => mbgl
2014-07-16 18:53:56 -07:00
Konstantin Käfer
7ffe4a7858
add nslog and stderr log backends
2014-07-11 14:34:17 -07:00
Konstantin Käfer
0d7b3462e9
read access token from environment
2014-07-10 11:27:03 -07:00
Justin R. Miller
cfbd9f2469
move Linux & OS X to per-map access tokens
2014-07-09 18:08:53 -07:00
John Firebaugh
815f8be96e
Use API v4 and access tokens
2014-07-08 13:16:38 -07:00
Konstantin Käfer
3019cc502a
typo
2014-06-02 12:34:04 +02:00
Konstantin Käfer
15c12701e3
error early when it can't read the style file
2014-06-02 12:01:33 +02:00
Konstantin Käfer
6bbac8559f
run executable with correct working dir
2014-06-01 22:28:36 +02:00
Young Hahn
04610023de
Load stylesheet from disk.
2014-06-01 13:50:32 -04:00
Konstantin Käfer
9bbdba9eab
remove concept of settings object from library
2014-04-30 13:47:03 +02:00
Konstantin Käfer
1216a061d3
move to libuv for the rendering loop
2014-04-30 12:01:26 +02:00
Konstantin Käfer
1ecff57829
use libuv event loop in the glfw view
...
Integrates libuv's default loop with GLFW's glfwWaitEvents() call. See https://github.com/joyent/libuv/issues/1246 for more details on integrating event loops.
fixes #149
2014-04-22 16:54:55 +02:00
Konstantin Käfer
a807ace3c1
rename to glfw_view.cpp/hpp
2014-04-16 11:10:54 -04:00
Konstantin Käfer
305e688a3a
clean up os x + ios request code
...
fixes #129
2014-04-14 11:47:57 -04:00
Konstantin Käfer
3c5bac0f6b
add debug window showing the glyph atlas
2014-03-14 12:43:42 +01:00
Konstantin Käfer
bdfa761c39
remove code duplication between osx/glfw and linux/glfw programs
2014-03-14 11:33:45 +01:00
Konstantin Käfer
80ae10a070
add back sigint handling
2014-03-11 12:21:05 +01:00
Konstantin Käfer
d9922b2a46
add animation modes to linux wrapper
2014-03-11 12:15:26 +01:00
Konstantin Käfer
c37701d41d
accept --fullscreen option
...
Conflicts:
linux/main.cpp
2014-03-11 12:11:36 +01:00