Bruno de Oliveira Abinader
92856f394c
[core] Collision debug is now MapDebugOptions::Collision
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
1f0820c8e8
[core] Added MapDebugOptions
...
Map debug options are now cycled up to all debug options enabled, then
back to none.
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
31fd2822f5
[core] Replace time_t with std::chrono::seconds
...
Added aliases for std::chrono typedefs (eg. 'Seconds' for
std::chrono::seconds). These aliases are used together with templated
helper functions to replace time_t with std::chrono::seconds for most
cases, in particular for 'modified' and 'expires' values in Response.
2015-11-27 17:47:02 +02:00
John Firebaugh
1d33790dc0
[core] Fix image type of Map::renderStill
...
It's a premultiplied image. This implies that we were misusing encodePNG
in most cases, as we were passing premultiplied pixels which were then
interpreted as unmultiplied. I changed encodePNG to accept premultipled
pixels, and unpremultiply in the implementations.
2015-11-25 15:57:37 -08:00
John Firebaugh
f3d6f68106
[core] Always manually premultiply libpng output
...
It appears to be the only way to get the results we want in all cases.
2015-11-25 15:57:36 -08:00
John Firebaugh
0c1e378bc9
[core] Rewrite image handling
...
* Consolidate Image and StillImage
* Typecheck unassociated vs premultiplied images
* Rewrite default platform image decoding implementation
2015-11-25 15:57:36 -08:00
Thomas Voß
3f786c7171
Fix GCC5 complaining about -Wunused-variable.
2015-11-25 14:23:13 +01:00
John Firebaugh
6ff3ef55f8
[core] Remove unused
2015-11-23 17:28:44 -08:00
John Firebaugh
36081f6486
[core] For binary image data use uint8_t, not char
2015-11-23 17:28:44 -08:00
Justin R. Miller
ac10cc1ecd
fixes #3054 : move desktop test app keybindings output to startup log
2015-11-17 12:00:51 -08:00
Konstantin Käfer
85ab48636c
[core] allow changing pitch in GLFW based apps
2015-11-17 19:02:12 +01:00
John Firebaugh
7137239cbd
[core] Use std::unique_ptr for FileSource request
2015-11-16 12:25:47 -08:00
John Firebaugh
1e350b7ea4
[core] Reorganize sprite related files
2015-11-12 13:03:14 -08:00
Bruno de Oliveira Abinader
5a24ac605b
[core] Use PrecisionPoint in zoom and angle functions
2015-11-11 16:59:49 +02:00
Bruno de Oliveira Abinader
c78e769635
[core] Use PrecisionPoint in coordinate functions
2015-11-11 16:59:49 +02:00
John Firebaugh
54e08b1f83
[core] Eliminate use of ClassProperties for paint
2015-11-10 11:33:17 -08:00
Konstantin Käfer
69564cc886
[core] fix logging so we don't use strings as a formatter
2015-11-06 10:16:52 +01:00
Konstantin Käfer
24285926c2
[core] Include Linux-specific scheduling header
...
before, builds for Linux didn't include thread priority control
2015-11-05 10:32:45 +01:00
Konstantin Käfer
1468ff13e3
[core] catch compression/decompression errors and report them
2015-11-04 12:57:50 +01:00
Konstantin Käfer
4d5c6333be
[core] move retry logic to DefaultFileSource
2015-11-02 17:24:40 +01:00
Minh Nguyễn
557b8afb7c
[core][iOS] Source iOS styles from default_styles
...
Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles.
Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs.
Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles.
/ref #1462
2015-10-30 13:09:37 -07:00
Minh Nguyễn
3b6dc37e39
Fixed build issues and typos
...
Also renamed styles to more common names.
2015-10-30 13:09:04 -07:00
Leith Bade
abf93c008b
[core] Remove bundled styles.
...
Fixes #2239
2015-10-30 13:09:04 -07:00
Thiago Marcos P. Santos
978da4224e
[core] Set names to threads on Linux
...
Makes debugging/profiling easier.
2015-10-29 11:54:43 +02:00
Leith Bade
6bb709ef42
[android] Update test app icon
...
Fixes #2838
2015-10-28 22:36:35 +11:00
Ansis Brammanis
750c72f324
improve gestures in perspective view
...
The location under your finger stays under your finger as you pan.
The location you double tap to zoom stays at the same point.
The location at the center of a pinch zoom stays at the center.
The location at the center of a rotation stays at the center.
2015-10-26 12:48:03 -07:00
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