Thiago Marcos P. Santos
c65f809651
[core] Move parseCacheControl() up in the class hierarchy
...
Avoid duplicating it on all the ports.
2015-10-26 18:37:51 +02:00
Konstantin Käfer
75dec6ffac
[core] always reparse with the freshest possible placement config
...
Fixes an issue where updates to stale tiles would remove labels altogether until the map was rotated.
2015-10-26 16:44:55 +01:00
Konstantin Käfer
5173bf1bb8
[core] Make response data shared to avoid excessive copying
2015-10-26 15:54:27 +01:00
Bruno de Oliveira Abinader
b8c94e76c2
Fixed typo in default styles
2015-10-23 15:09:08 -07:00
Leith Bade
28113d92e7
[android] Use new GPS markers.
...
Add missing dpi for mapbox logo and compass.
Fixes #2732
Fixes #2690
2015-10-24 03:28:16 +11:00
Leith Bade
54762825b0
[android] Fix JNI local ref overflow
...
Change test to 1000 markers
For #2726
2015-10-23 16:40:44 +11:00
Leith Bade
f71d61fa91
[android] Add missing satellite streets style to Android and iOS.
...
As well as default_styles.cpp
Fixes #2739
Fixes #2740
2015-10-23 14:09:24 +11:00
John Firebaugh
3afc8b4a29
[core] Introduce StyleLayer subclasses
2015-10-22 09:34:40 -07:00
John Firebaugh
df89de5cc5
[core] Rationalize style property classes: <type>{Paint,Layout}Properties
2015-10-22 09:21:30 -07:00
Mike Morris
62595a9b39
[core] bump libuv to 1.7.5 across all platforms
...
UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility
use st_mtim.tv_sec in libuv > 0.10.x
2015-10-14 11:36:28 -04:00
Nicki Dlugash
21b42eea44
[ios] [android] Add default marker sprites
2015-10-02 16:53:11 +10:00
John Firebaugh
686c967c8e
[ios] [android] Use Response::NotFound in other HTTP implementations too
2015-09-29 18:20:23 -07:00
Adam Hunter
c958ee45ab
Removed couts from headless view.
2015-09-29 15:07:39 -07:00
Adam Hunter
3f9f259619
Added GL logging utility
2015-09-29 15:07:39 -07:00
Konstantin Käfer
a84cf62424
[core] include api.mapbox.com in canonicalization
...
and move the canonicalization to mapbox.cpp since it's not specific to the SQLiteCache
2015-09-28 15:06:41 +02:00
Leith Bade
4e885d600a
Restore libcurl HTTP on Android
2015-09-22 16:40:54 +10:00
Adam Hunter
e69a110c23
Renderbuffer create should be paired with renderbuffer delete.
2015-09-17 14:52:04 -07:00
Leith Bade
529a7cc93c
Create SharedSQLiteCache
2015-09-16 12:45:46 +10:00
Bruno de Oliveira Abinader
0ff7cf20e9
Get rid of MapData::{get,set}NeedsRepaint
2015-09-02 23:20:47 +03:00
Bruno de Oliveira Abinader
0b501e0566
Substitute nudgeTransitions with async view invalidation
2015-09-02 23:20:46 +03:00
Mike Morris
4540c3c0e8
View::swap -> View::beforeRender View::afterRender
...
To be able to resize the framebuffer on the map thread
in HeadlessView.
2015-08-25 14:39:49 -04:00
Lucas Wojciechowski
e97662972f
Support v8 sprite, glyph, and style mapbox:// urls
2015-08-21 14:39:26 -07:00
John Firebaugh
8d7d770bbc
Update styles
2015-08-20 11:59:07 -07:00
Leith Bade
d4159d5141
Merge branch 'android-okhttp'
2015-08-12 14:58:33 +10:00
Konstantin Käfer
aa06a9d587
query the monitor's resolution instead of forcing 1024x768
2015-08-11 16:40:40 +03:00
Konstantin Käfer
21ec505648
add benchmark mode that shows the real frame time rather than the vsync time
2015-08-11 16:40:40 +03:00
Leith Bade
0cbe7e07f5
Use OkHTTP to implement HTTPContext on Android.
...
Closes #823
2015-08-11 11:59:08 +10:00
Konstantin Käfer
76c937f119
set thread priority on Linux
2015-08-10 12:01:26 +03:00
Bruno de Oliveira Abinader
fa4636ffe4
Map::nudgeTransitions no longer depends on client information
...
Clients no longer need to provide data (eg. if gesturing or in a custom
animation) to Map::nudgeTransitions().
Upon MapContext::renderSync(), a new atomic bool 'needsRepaint' in MapData
allows thread-safe communication between Map and MapContext.
2015-08-05 15:19:00 +03:00
Bruno de Oliveira Abinader
492bcf0bd7
Added Update::Repaint
2015-08-05 15:19:00 +03:00
Thiago Marcos P. Santos
92d78eae38
Removed debug leftover
2015-08-05 14:56:48 +03:00
Konstantin Käfer
56a4268cca
manually premultiply the image if libpng can't do it
2015-08-04 18:49:51 +02:00
Konstantin Käfer
19e5d9af22
don't require PNG_ALPHA_PREMULTIPLIED to support older versions of libpng
2015-08-04 14:08:20 +02:00
Konstantin Käfer
daaa643bbf
support cURL versions older than 7.21.6
...
prior to cURL 7.21.6, CURLOPT_ACCEPT_ENCODING was called CURLOPT_ENCODING
2015-08-04 14:08:20 +02:00
Konstantin Käfer
78ec33320f
don't use certain STL functions
...
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
2015-08-04 14:08:19 +02:00
Bruno de Oliveira Abinader
3c43171bc0
s/AssetContext/AssetContextBase/
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
0cc69b368d
s/HTTPContext/HTTPContextBase/
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
e42a903bba
Replaced 'override' with 'final' for non-public interfaces
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
590d9ab95c
Created HTTPRequestBase as base for HTTP requests
...
- Added HTTPRequestBase (inherits from RequestBase)
- retry() is now a pure virtual in HTTPRequestBase
- Moved cancelled bool to HTTPRequestBase
- HTTPContext now handles only HTTPRequestBase*
- Renamed HTTPNSURLRequest, HTTPCURLRequest
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
785b34df2e
Moved ResponseStatus to its own header
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
5e2f3b1323
Avoid nudging transitions if a gesture is in progress #2
...
Following the same steps from #1548 and #1912 for GLFW and iOS ports.
Also removed a redundant check if transform state is changing since
we're already dealing with that.
2015-07-27 21:57:51 +03:00
Bruno de Oliveira Abinader
0b8cd02c19
GLFW port now uses nudgeTransitions()
2015-07-20 21:59:13 +03:00
Thiago Marcos P. Santos
938165de17
Re-enable the Satellite style on the Linux/OSX app
2015-07-14 14:26:40 +03:00
Thiago Marcos P. Santos
00308be140
Make one arg ctors explicit
2015-07-11 12:42:45 +03:00
Thiago Marcos P. Santos
bd8210d5a1
Remove unused function: elapsed()
2015-07-11 12:42:45 +03:00
Thiago Marcos P. Santos
67554cae41
Remove unused function: uv_zip_open()
2015-07-11 12:42:45 +03:00
Konstantin Käfer
62ac43a85b
add ability to add random custom markers to test app
2015-07-08 19:46:02 +02:00
Konstantin Käfer
55ef14f3a8
compress_png: void* => const void*
2015-07-08 19:45:59 +02:00
Konstantin Käfer
675ddddee7
Make pixelRatio constant across a Map object lifetime
...
also moves framebuffer size out of TransformState into its own object
2015-07-08 10:40:05 +02:00
Thiago Marcos P. Santos
ec1b4c43fd
Do not force uv_loop_t as the first parameter for a threaded object ctor
2015-07-06 16:01:59 +03:00