Konstantin Käfer
9b64edd712
remove unused reference
2015-04-28 14:32:18 -04:00
Konstantin Käfer
ad0178fd45
move atlas/painter to map context
2015-04-28 14:32:18 -04:00
Konstantin Käfer
c88a60b1e5
remove unused includes
2015-04-28 14:32:18 -04:00
Konstantin Käfer
7c8c45edab
move activeSources to internal Map context
2015-04-28 14:32:18 -04:00
Konstantin Käfer
89167cbf8c
move Transform into MapData and make source unaware of the Map object
2015-04-28 14:32:18 -04:00
Konstantin Käfer
cc8f440c84
move TransformState to MapData object
2015-04-28 14:32:17 -04:00
John Firebaugh
c0b75f1af7
Remove Environment::terminate and associated code
...
Fixes #1336
2015-04-28 09:16:26 -04:00
John Firebaugh
8e5fa341eb
Remove RequestBase::start
...
Requests are always started immediately upon construction.
While here, use typed pointers, not void*.
2015-04-28 09:16:26 -04:00
John Firebaugh
cdd8f3ac32
Separate RequestBase from DefaultFileSource internals
...
SharedRequestBase was trying to do two different jobs: be a base class
for Asset/HttpRequest and track internal state for DefaultFileSource.
Now we have RequestBase for the former, and DefaultFileRequest for the
latter.
2015-04-28 09:16:26 -04:00
John Firebaugh
359aca6624
Privatize SharedRequestBase::source
2015-04-28 09:16:26 -04:00
John Firebaugh
b61cc6433b
Make subscribe and unsubscribe parallel
2015-04-28 09:16:25 -04:00
John Firebaugh
ea73c99faa
Assert that notify gets a response
2015-04-28 09:16:25 -04:00
John Firebaugh
2a8ddc9f27
Keep observers encapsulated
2015-04-28 09:16:25 -04:00
John Firebaugh
f4adef1889
pointer ⇢ reference
2015-04-28 09:16:25 -04:00
John Firebaugh
9a0005fdea
Remove unnecessary moves / casts
2015-04-28 09:16:25 -04:00
Konstantin Käfer
2b633cc51c
build on Travis' sudo: false infrastructure
2015-04-28 10:43:13 +02:00
Konstantin Käfer
feade7b4e4
const + code style
2015-04-27 11:44:50 +02:00
Ansis Brammanis
f1edce8e21
remove linejoin shader
...
The previous commit switched to using triangles for drawing round joins.
2015-04-27 11:44:49 +02:00
Ansis Brammanis
af1537ca79
port LineBucket::addLine from -js
2015-04-27 11:44:49 +02:00
Ansis Brammanis
8aa2e2fef7
Don't wrap line labels.
...
fixes #1332
98af024921/js/data/symbol_bucket.js (L74)
2015-04-24 15:41:13 -07:00
Ansis Brammanis
65306490dd
icon-rotate is not a paint property
...
issue #1173
2015-04-24 15:34:53 -07:00
Ansis Brammanis
17010bfd73
make text-max-size not affect rendering size
...
This way it matches -js. The real fix will eventually be
https://github.com/mapbox/mapbox-gl-style-spec/issues/255
2015-04-24 15:33:58 -07:00
Justin R. Miller
b43ba4089c
fixes #1308 : normalize tile memory cache keys & allow dupe inserts
2015-04-22 15:35:34 -07:00
Konstantin Käfer
2831073f85
Merge pull request #1295 from mapbox/1199-whee
...
Ensure correct spin direction
2015-04-20 12:01:46 +02:00
Minh Nguyễn
8b44cfeb76
Ensure correct spin direction
...
Ported mapbox/mapbox-gl-js#821 as well as `util.wrap()` from mapbox-gl-js.
Fixes #1199 .
2015-04-18 22:14:39 -07:00
Konstantin Käfer
71d127220b
rename Mode::Static => Mode::Still
2015-04-17 17:55:24 +02:00
Konstantin Käfer
9072df709d
make the request header public as the node module requires it
2015-04-17 15:23:36 +02:00
Konstantin Käfer
60a0e8a4be
don't record Debug events to log observers
2015-04-17 13:40:43 +02:00
Konstantin Käfer
5d769f9b62
explicitly call .discard() to resize the view on static renders
...
- this is only a stopgap; we need to properly pass state between threads
- doesn't fix changing the pixel ratio
2015-04-17 13:40:42 +02:00
Konstantin Käfer
1c920c4332
don't throw an exception in the map thread for bad styles
2015-04-17 13:40:42 +02:00
Konstantin Käfer
46bf226910
align static render mode and still image render mode
...
- static rendering now also runs in a separate thread; you have to start it with map.start(Map::Mode::Static) and join the thread with map.stop() before destructing the Map object
- map.renderStill() takes a callback with will be invoked on the *map* thread, so you'll have to figure out your own method of dispatching back to the main thread.
2015-04-17 13:40:42 +02:00
Justin R. Miller
14e972ad97
don't auto-resize & fill cache with zeros
2015-04-16 12:14:35 -07:00
Konstantin Käfer
645f7c0cd4
use std::unique_ptr<> as a movable-only container directly instead of wrapping in another class
2015-04-16 17:52:58 +02:00
John Firebaugh
7000a4faf0
Merge pull request #1250 from mapbox/1250-separate-thread-object
...
Separate objects from Thread management
2015-04-16 08:50:24 -07:00
Justin R. Miller
190709c6b1
fixes #1157 , #1255 : cache parsed tiles in memory
2015-04-16 01:15:41 -07:00
Justin R. Miller
c49e6157f1
add comment
2015-04-15 22:21:04 -07:00
Justin R. Miller
d29534e437
fixes #1267 : properly break reference cycle with live tile data & style
2015-04-15 22:16:18 -07:00
John Firebaugh
5fa0512be2
Shorten method names
2015-04-15 20:38:25 -07:00
John Firebaugh
1eaf6b8c18
Stricter Thread<> interface
...
Implements a Thread<>::invoke interface that only permits calling
member functions with bound arguments.
Also introduce invokeWithResult, which accepts a callback and invokes
it, passing the result, on the invoking thread's RunLoop. This closes
the loop of two evented threads doing message passing.
2015-04-15 20:38:25 -07:00
Mike Morris
5972a7d16e
make environment.hpp header public
2015-04-15 17:14:36 +02: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
John Firebaugh
3efbb69e0c
Ensure that ~TileData happens on map thread
...
Fixes #1251
2015-04-10 17:28:39 -07:00
Konstantin Käfer
0f79a89502
don't shadow variable names
2015-04-10 23:19:35 +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
John Firebaugh
566c6718d7
Merge pull request #1244 from mapbox/uv
...
Replace uv_messenger with AsyncQueue; rewrite remaining uv_* in C++
2015-04-09 15:59:38 -07:00
John Firebaugh
0c087603e6
Replace uv_messenger with AsyncQueue; rewrite remaining uv_* in C++
2015-04-09 15:30:58 -07:00
Konstantin Käfer
ec94e03a8e
set the correct v7 default font
...
- also skip layers with empty font names
2015-04-09 22:29:05 +02:00
Ansis Brammanis
9b0376e58e
fix angle of icons along lines
...
fixes https://github.com/mapbox/mapbox-gl-native/issues/1242
2015-04-09 12:05:16 -07:00