Commit Graph

1553 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
9cd9065031 Revert "Revert WebP support due to broken builds"
This reverts commit 6709bdcacd.

There was an issue with the script that removes '-lwebp' from WebP
linker flags, since we're statically linking. This is now fixed.
2016-01-20 10:35:44 +02:00
Ansis Brammanis
d34f8eb674 [core][ios][osx][android] make SpriteImage accept PremultipliedImage
the SpriteImage constructor signature changes from

SpriteImage(
        uint16_t width, uint16_t height, float pixelRatio,
        std::string&& data, bool sdf = false);

to

SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
2016-01-19 18:23:21 -08:00
Ansis Brammanis
26faa6a5ad [core][ios][osx][android] fix icons with non-integer width/height
ref #3031
ref #2198

For example, an icon that has:
- a pixel width of 10
- a pixel ratio of 3
- a scaled with of 3.333
is now supported.
2016-01-19 18:20:54 -08:00
John Firebaugh
9b62661b07 [core] Use experimental optional instead of mapbox::util::optional 2016-01-19 17:56:48 -08:00
Mike Morris
48cced9e31 node-v2.2.2 2016-01-19 17:42:43 -05:00
John Firebaugh
dbfa932ed1 [core] Eliminate macros in sqlite3.cpp 2016-01-19 13:39:18 -08:00
John Firebaugh
6709bdcacd Revert WebP support due to broken builds
This reverts commits 2010fbb0e6, a361ce47a1, and d004bb275a.
2016-01-19 13:34:56 -08:00
Antonio Zugaldia
9672f2ba50 sample geocoder activity 2016-01-19 13:53:55 -05:00
Tobrun
fa84283a9d [android] #3608 - upgrade okhttp3 to version 2 2016-01-19 15:26:04 +01:00
Bruno de Oliveira Abinader
a361ce47a1 [linux] Added WebP tile support
- Android support is currently disabled due to a libwebp build issue.
- iOS and OS X support will appear after the next Mapbox iOS SDK release.

Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
2016-01-19 16:06:36 +02:00
Tobrun
8ffe776141 [android] #3503 - remove serialisable interface from classes in geometry package, implemented parcable on CoordinateBounds, CoordinateRegion and CoordinateSpan. Enforced Android code conventions on those classes. 2016-01-19 14:59:36 +01:00
Bruno de Oliveira Abinader
d004bb275a [linux] Added WebP build deps 2016-01-19 15:41:47 +02:00
Bruno de Oliveira Abinader
0aa89f6eb1 [osx] No need to link with libpng & libjpeg
OSX platform includes platform/darwin/image.mm which uses CoreFoundation
to decode PNG and JPEG images.
2016-01-19 15:40:23 +02:00
Tobrun
06e420939f [android] #3604 - polyline activity memory leak fix 2016-01-19 13:27:08 +01:00
Tobrun
6b3745c68d [android] #3156 - improving marker selection touch handling 2016-01-19 12:59:57 +01:00
Tobrun
5ff95d4524 [android] #3525 - fix ConnectivityManager context leak 2016-01-19 12:03:52 +01:00
Tobrun
fabc457adf [android] #3338 - add javadoc annotations package 2016-01-19 11:07:53 +01:00
Thiago Marcos P. Santos
7ad9e47bbe [glfw] Fix panning direction
Follow-up of the transform refactoring
2016-01-19 11:36:26 +02:00
Minh Nguyễn
1a5bc3d803 [ios] Removed redundant zoom constraints
The zoom level is already clamped by Transform. -currentMinimumZoom appears to be useful only as an unrotation threshold; it doesn’t correspond to the minimum allowed zoom level.
2016-01-18 16:54:58 -08:00
Minh Nguyễn
6a0b7f8eb3 [ios] Account for top/bottom bars 2016-01-18 16:54:58 -08:00
Minh Nguyễn
47b69100f9 [core, ios, osx, android, glfw] Flipped origin of Map::latLngForPixel(), Map::pixelForLatLng()
Map and Transform methods assume an origin at the top-left corner of the view, like iOS, Android, and GLFW but unlike OS X. Transform is responsible for flipping coordinates between the top-left origin of Map and the bottom-left origin of TransformState.

Fixes #3574.
2016-01-18 16:54:58 -08:00
Minh Nguyễn
bf87eaa7b8 [core, osx] Added optional padding to convenience methods
Methods that offer a convenient way to jump or ease now accept an optional padding parameter. MGLMapView specifies the padding to ensure that keyboard-based zooming and rotation respects the toolbar.
2016-01-18 16:54:58 -08:00
Minh Nguyễn
c86646519a [osx] Content insets
Added a contentInsets property to MGLMapView that behaves similarly to NSScrollView.contentInsets. Adjust it according to the window’s content layout rectangle using KVO. Automatically apply the content insets whenever creating a CameraOptions or getting the center coordinates.
2016-01-18 16:54:57 -08:00
Tobrun
78bedff8f9 [android] #3556 - Added test to trigger NaN value on same point, updated LatLng model to handle calls for distance calls of same point 2016-01-18 13:31:37 +01:00
Tobrun
0ebf5fcaae [android] #3507 - fix location listener leak in UserLocationView 2016-01-18 12:17:59 +01:00
Tobrun
89b051f386 [android] #3593 - added double map view example 2016-01-18 10:58:37 +01:00
Tobrun
74a9c505f9 [android] #3573 - Marker clicks stop working after orientation change 2016-01-18 09:10:17 +01:00
Minh Nguyễn
cb126eafe0 [ios] Refactored unrotation
Avoid unrotating due to programmatic rotation, even programmatic rotation that might expose empty portions of the map. Only snap to north due to a gesture.
2016-01-16 22:00:47 -08:00
Minh Nguyễn
ed32fa06ed [ios] Avoid unrotating in heading or course tracking mode
Fixes #3587.
2016-01-16 15:56:25 -08:00
Brad Leege
2dae355cbd [android] #3052 - Generating actual SHA for 2.10 zip file 2016-01-15 12:46:16 -06:00
Brad Leege
300d908bfc [android] #3052 Adding distributionSha256Sum 2016-01-15 12:23:09 -06:00
Tobrun
a79ef8bcc3 [android] #3052 - upgrade gradle to 2.10 2016-01-15 17:35:44 +01:00
Tobrun
2631f5bf93 [android] #3517 - recreating InfoWindow with correct MapView instance 2016-01-15 13:14:13 +01:00
Konstantin Käfer
21e4029acf [core] use stale styles
This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
2016-01-15 11:59:26 +01:00
Tobrun
e22b0270f4 [android] #3559 - don't show InfoWindow when marker is invalid 2016-01-15 11:19:47 +01:00
Tobrun
3fa63fa5e8 [android] #3052 - update gradle to 2.10 2016-01-15 11:15:11 +01:00
Konstantin Käfer
957415823a [core] Support multiple paths in SQLiteCache::getShared()
If you use many different caches, expired weak_ptrs will pile up in the unordered_map, but that is an edge case, and you probably shouldn't do that anyway.
2016-01-15 10:44:16 +01:00
Konstantin Käfer
8939a7b706 [core] move SharedSQLiteCache::get to SQLiteCache::getShared 2016-01-15 10:38:09 +01:00
John Firebaugh
f62d41ae05 [core] Restore existing response body
Until #2721 lands we still need this.
2016-01-14 18:38:56 -08:00
Minh Nguyễn
15f4ca51f9 [ios] Fixed static analyzer warnings 2016-01-14 16:48:16 -08:00
Minh Nguyễn
714dfab8ae [osx] Fixed static analyzer warnings 2016-01-14 16:48:16 -08:00
Jason Wray
b57e237b14 [ios] send turnstile event when telemetry is paused 2016-01-14 18:30:51 -05:00
John Firebaugh
0066637e58 [core] Let SQLiteCache decide when store or refresh responses 2016-01-14 13:46:03 -08:00
John Firebaugh
2aafdbc1b8 [core] Add an explicit "not modified" indicator to Response 2016-01-14 13:46:03 -08:00
John Firebaugh
2ee1fe4178 [core] std::shared_ptr<const Response> ⇢ const Response& 2016-01-14 13:46:03 -08:00
John Firebaugh
7fb5e973ed [core] Eliminate FileCache interface
There is only one implementation and we're unlikely to add more.
2016-01-14 13:46:03 -08:00
Tobrun
d764e9829e [android] #3450 - fix rotation when enabling user location 2016-01-14 16:27:29 +01:00
Konstantin Käfer
4515bb00c0 [node] extract the error message from the Error object
this avoids double "Error: Error: reason" messages
2016-01-14 14:35:02 +01:00
Konstantin Käfer
e195d86100 [test] don't pass raw strings as error messages 2016-01-14 14:35:02 +01:00
Tobrun
35855889df [android] #3461 - upgrade to okhttp3 for faster tile loading! 🚀 2016-01-14 14:21:46 +01:00