Brad Leege
fef58d624f
Merge pull request #1411 from mapbox/1410-one-kilometer
...
One Kilometer Desired Accuracy
2015-05-04 13:54:07 -05:00
Brad Leege
f4e2cccf0b
#1410 - Switching Metrics Location Manager's desiredAccuracy to 1 Kilometer from 3 Kilometers
2015-05-04 13:33:42 -05:00
Minh Nguyễn
0a03f8bf5e
Merge pull request #1400 from mapbox/1ec5-disable-events-163
...
Avoid creating MGLMapboxEvents when Metrics is disabled
2015-05-04 14:01:10 -04:00
Konstantin Käfer
27d8e82e1c
lower thread priority of worker threads
2015-05-04 17:33:05 +02:00
Konstantin Käfer
72964f5bef
only update GL state when it actually changed
2015-05-04 17:33:05 +02:00
Konstantin Käfer
914b6f01f8
add gl::groups back for easier debugging in Xcode
2015-05-04 17:33:05 +02:00
Minh Nguyễn
98dc0b6f81
Avoid creating MGLMapboxEvents when Metrics is disabled
...
Mapbox Metrics already has a bottleneck; might as well use it to avoid fetching data in the first place.
2015-05-01 19:24:14 -04:00
John Firebaugh
5013be138e
Fix CURL handle leak ( fixes #1394 )
2015-05-01 18:48:07 -04:00
John Firebaugh
24695f6c02
More bandaids to avoid #1309
...
Even though we only bind the shared_ptr in the after callback, the
worker thread was still copying the callback and therefore gaining
a shared reference. Here we try to eliminate the copies.
2015-05-01 17:14:06 -04:00
Minh Nguyễn
5e6bf19144
Fixed build errors from merge
...
Follow-up to cf33edf16d .
2015-05-01 00:37:51 -04:00
Justin R. Miller
cf33edf16d
Merge branch 'master' into 1266-slippy
2015-05-01 00:06:47 -04:00
Justin R. Miller
c69e985fa5
fixes #1102 : implement reference-counted shared file cache vendor
2015-04-30 17:52:42 -04:00
Justin R. Miller
8192d2ed10
Merge pull request #1386 from mapbox/1103-no-clobber-pointers
...
fixes #1103 : allow multiple maps by not using global pointers
2015-04-30 17:27:38 -04:00
Minh Nguyễn
5780b676b0
Fixed iOS 7 test breakage and crash from #1382
...
These APIs were introduced in iOS 8+, hence the `-respondsToSelector:` check. But I saw that, thinking it was just redundant, and removed it in #1382 , leading to a crash on launch on iOS 7.
2015-04-30 16:02:20 -04:00
Jason Wray
812448f830
Merge pull request #1370 from mapbox/compass-1x
...
Antialias compass.png N text
2015-04-30 14:28:29 -04:00
Minh Nguyễn
34e43f73bc
Merge pull request #1382 from mapbox/1ec5-events-nits
...
Formalize NSURLSession lifetime; streamline MGLMetricsLocationManager methods
2015-04-30 14:19:50 -04:00
John Firebaugh
6197763780
Merge branch '1368-http-request-crash'
2015-04-30 14:18:14 -04:00
Justin R. Miller
858bb5dbe4
fixes #1103 : allow multiple maps by not using global pointers
2015-04-30 14:08:46 -04:00
John Firebaugh
64251eec75
Introduce and use uv::timer
2015-04-30 12:40:10 -04:00
Minh Nguyễn
6342712591
Pause collection when tearing down MGLMapboxEvents for whatever reason
2015-04-30 12:28:35 -04:00
Minh Nguyễn
97fb9f6fcf
Tied NSURLSession lifetime to metrics collection
...
Call `-resumeMetricsCollection` on `init` to consolidate the various steps to initialize `MGLMetricsLocationManager`.
2015-04-30 12:22:51 -04:00
John Firebaugh
95214472d4
Use uv::async
2015-04-30 12:02:41 -04:00
Brad Leege
6811e7c39d
#1381 - Setting desiredAccuracy to 3KM
2015-04-30 11:58:31 -04:00
Minh Nguyễn
6790a09a08
Turned class methods into instance methods
...
Avoids unnecessary steps to access singletons. Now `MGLMapboxEvents` and `MGLMetricsLocationManager` instances can message themselves directly.
2015-04-30 11:48:56 -04:00
Minh Nguyễn
87c61657a1
Objective-C niceties
...
Added macro for main thread assertions based on `NSAssert()`. Reworded Boolean property per Objective-C conventions.
2015-04-30 11:35:52 -04:00
John Firebaugh
bbcc7c26d9
Merge pull request #1065 from mapbox/1065-separate-ui-from-map-thread
...
Better separation between UI thread and Map thread
2015-04-30 10:22:06 -04:00
Justin R. Miller
c48962ebf2
Merge pull request #1296 from mapbox/1258-deadpan
...
Cancel animations on touch down
2015-04-29 16:24:43 -04:00
Jason Wray
bffe53dd70
Antialias compass N text, shifted down 1px
2015-04-29 15:33:22 -04:00
Jason Wray
c7556987ca
Antialias compass N text
2015-04-29 15:25:52 -04:00
John Firebaugh
481fa0e69f
Restructure *Request and Context
...
The previous implementation, based on thread-local storage, did not
ensure that the context was destructed before the FileSource run loop.
This resulted in implementations attempting to uv_close handles for a
loop that had already been destroyed.
This change also fixes #1262 .
2015-04-28 19:26:35 -04:00
Justin R. Miller
42b59eb655
fixes #1363 : centrally & better address GL demo/third-party resource bundle issues
2015-04-28 15:03:35 -04:00
John Firebaugh
3bf0bf9538
Remove unused includes
2015-04-28 14:32:25 -04:00
John Firebaugh
230027e514
Resize view from map thread
2015-04-28 14:32:24 -04: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
John Firebaugh
6c7a01a503
Following kkaefer's view changes
2015-04-28 14:32:22 -04:00
John Firebaugh
32c818feea
Provide Thread objects with access to loop
2015-04-28 14:32:22 -04:00
John Firebaugh
7bd735220d
Fix build
2015-04-28 14:32:21 -04:00
Konstantin Käfer
dae18cc7bc
remove some unused includes
2015-04-28 14:32:21 -04:00
Konstantin Käfer
b0a30943b4
move most private Map code to MapContext
2015-04-28 14:32:20 -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
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
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
Minh Nguyễn
67fdfbadb3
Merge pull request #1357 from mapbox/1ec5-view-controller
...
Automatically find view controller for layout guides
2015-04-27 22:28:06 -07:00
Brad Leege
0662c7416a
Merge pull request #1356 from mapbox/1352-visits
...
Visit API
2015-04-27 21:32:15 -04:00
Brad Leege
3040b6462e
#1345 - Changing -buildNumber to /buildNumber
2015-04-27 21:19:45 -04:00
Minh Nguyễn
5ffa52cab5
Automatically find view controller for layout guides
...
Find the managing view controller by traversing the responder chain.
2015-04-27 15:52:30 -07:00