John Firebaugh
fd847bca9e
[android] Fix semantics in absence of response headers
...
Absence of response headers should result in null etag/modified/expires optionals, not present-but-0-or-"" optionals.
2016-01-21 11:22:11 -08:00
John Firebaugh
1c21d0fd4c
[core] Use better types for modified / expires / etag
2016-01-21 11:22:11 -08:00
John Firebaugh
c33ed50c98
[core] Eliminate Response::stale and inline Response::isExpired()
...
Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why.
2016-01-21 11:22:11 -08:00
John Firebaugh
1766d7dcbf
[core] Eliminate RequestBase
...
HTTPRequestBase can now itself be the base class.
2016-01-21 11:22:11 -08:00
Mike Morris
0a2e4af4c5
node-v3.0.0
2016-01-21 12:03:41 -05:00
Jason Wray
4a3adddf3f
[ios] add telemetry debug logging
...
You SHOULD NOT be using telemetry logging on any persons' devices who do
not explicitly understand the privacy implications of handling location
data.
2016-01-20 18:57:43 -05:00
John Firebaugh
27271768bd
[node] Drop 0.10 from build; require v4+
2016-01-20 15:20:24 -08:00
Brad Leege
59f70811a9
[android] #3537 - Setting to 4.0.0-SNAPSHOT
2016-01-20 16:55:40 -05:00
Brad Leege
baae67cafd
Merge pull request #3639 from mapbox/release-android-v3.1.0
...
Android 3.1.0 --> master
2016-01-20 16:53:58 -05:00
Minh Nguyễn
460b21e324
[ios] z14 initially in user tracking mode
...
When entering user tracking mode from a low zoom level, zoom in to z14 regardless of the location’s horizontal accuracy.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
bd4611107d
[ios] Reset user tracking, respect content inset in resetPosition
2016-01-20 11:02:31 -08:00
Minh Nguyễn
5a00427386
[ios] Maintain user tracking, anchor on user dot during zoom, rotate
...
Per MapKit behavior, zooming or rotating with a gesture can no longer kick the user out of user tracking mode. In user tracking mode, the zoom animation is always anchored on the user dot, wherever it may be.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
65f6eb25b5
[ios, osx] Optionally animate content insets change
2016-01-20 11:02:31 -08:00
Minh Nguyễn
07c4c54111
[ios] Made user dot position configurable
...
The user dot or user puck’s position is now configurable via a new alignment property in any user tracking mode. Also, -setUserTrackingMode:animated: is now exposed publicly, and setting its animated parameter to NO skips the initial animation.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
a93e7d7baa
[ios] Non-animated user tracking mode changes
...
Calling -setUserTrackingMode:animated: with animated set to NO should jump instantaneously to the first reported location.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
35895af5d4
[ios] Keep user dot callout open after user location change
...
Outside of user tracking mode, the user dot moves in spurts, so view synchronization performance isn’t an issue.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
59f2c53c26
[ios] Keep callout attached to moving user dot
2016-01-20 11:02:31 -08:00
Minh Nguyễn
867e01581c
[ios] Maintain user tracking mode after orientation change
2016-01-20 11:02:31 -08:00
Minh Nguyễn
251925568c
[ios] Eliminated jump after flight to first location
...
Don’t update the user location annotation’s coordinates until after the transition to the first reported location is complete.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
51be461168
[ios] Leave user location callout open when tracking
...
Don’t close the user location annotation’s callout when the user location changes in user tracking mode.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
41ce7b2526
[ios] Fly to user location
...
Fly to the user location when entering user tracking mode. Keep user location updates from interfering with the initial flight.
2016-01-20 11:02:31 -08:00
Minh Nguyễn
453000af3b
[ios] Affix user dot on screen in user tracking mode
...
In user tracking mode, keep the user dot in a fixed location on screen, instead easing the map view so that the fixed location corresponds to the new user location. There is one exception: MGLMapView reacts to the first location update the same way as before, so that it appears to move to where the user dot has been all along.
In course tracking mode, weight the user dot down towards the bottom of the view, since it’s more important to see the road ahead than the road behind.
Fixes #2600 , and #1041 to some extent.
2016-01-20 11:02:31 -08:00
Thiago Marcos P. Santos
adcd0eaaac
[osx] Fix loop closing with pending requests
...
The main loop will now wait for all the requests to
complete before closing.
This will make the FileSource on OSX block longer than
it should at shutdown.
2016-01-20 19:54:20 +02:00
Thiago Marcos P. Santos
55c31493af
[core] Add ref counting to the main loop
...
Should not be used at all, added for a corner case
on OSX network backend where the request is processed on
a worker thread managed by OSX and we need to wait for
that reply before destroying the thread that pushed the
request.
2016-01-20 19:54:20 +02:00
Brad Leege
3797bbf75c
[android] #3537 - Updating version to 3.1.0 for release and fabric
2016-01-20 11:26:34 -05:00
Cameron Mulhern
07f6dee616
[ios] Fixes crash when vendorId is nil
2016-01-20 10:59:31 -05:00
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