Tobrun
fa21051683
[android] #3830 added mocked parcel implementation
2016-02-05 14:32:58 +01:00
jaumeolba
026e6a7560
Fix Memory leak caused by duplicated add in LocationListener list
...
The addLocationListener method didn't check if the LocationListener was
already in the list.
From MapView, if we call setMyLocationEnabled(true), it adds a
LocationListener and onResume adds the same LocationListener again, but
is just removed by onPause.
So LocationListener is added twice but removed just once, so
LocationServices singleton keeps an instance of the the LocationListener
that is never released.
2016-02-05 10:59:50 +01:00
John Firebaugh
4d29c7d5ce
[core] Remove Response::Error::Reason::Canceled
...
There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response.
2016-02-04 13:18:14 -08:00
John Firebaugh
d7db9c775a
[all] Make #include <mapbox/variant.hpp> universally accessible
2016-02-04 11:08:02 -08:00
Tobrun
7f27c74251
[android] #3811 - handle null target value by using previous camera position.
2016-02-04 12:35:39 +01:00
Tobrun
aa05cba0df
[android] #3758 - Projection / Visible Region implementation.
...
[android] #3758 - add VisibleRegion + unit tests, removed boundingbox, cleanup jni, cleanup test app, renamed CoordinateSpan to LatLng.
2016-02-04 12:08:39 +01:00
Brad Leege
932012e931
[android][core] #509 - Setting Min and Max Zooms warning annotations in Android. Clamping Min and Max zooms at Core GL for all platforms to use at runtime.
2016-02-03 17:59:44 -06:00
Tobrun
9beb6629b6
[android] #3752 - added scroll by x,y feature, introduced new CameraUpdateType, introduced caching system for invalidating CameraPosition, general cleanup, readded getLatLng in MapView, ..
...
[android] #3752 - correctly invalidating cameraposition
2016-02-03 18:38:38 +01:00
John Firebaugh
37c27f3a8f
[core] Improve LatLngBounds API
...
* Use "named constructors": empty, world, hull
* Make the two-argument constructor lenient (i.e., it is a hull operation)
* Add various accessors
* Enforce a single empty representation
2016-02-02 23:04:18 -08:00
Tobrun
ce8c6e26d5
[android] #3736 - clicks should ignore marker validation when an InfoWindowAdapter is supplied by end developer.
2016-02-02 18:08:14 +01:00
Tobrun
6dff169f2b
[android] #3754 - newLatLngBounds: unit tests for LatLng and LatLngBounds, builder pattern + refactoring.
...
[android] #3754 - Working version using the underlying VisibleCoorindateBounds
[android] #3754 - refactor Camera api inside maps package, correctly use factory pattern, LatLngBounds hooks into camera API
[android] #3754 - cleanup old API
2016-02-02 17:25:46 +01:00
Tobrun
a699690c16
[android] #3759 - Add SupportMapFragment, test app integration, cleanup old fragment implementation
2016-02-02 08:18:41 +01:00
Tobrun
0e66d4dcc5
[android] #3776 - UiSettings uses MapView instead of MapboxMap as dependency. Cleanup obsolete methods MapboxMap/MapView, Renaming convention Google Maps SDK, Update tests, Some minor fixes in state management
2016-02-01 16:22:54 +01:00
Tobrun
6ebb3e88d8
[android] #3753 - Optimising zoom
...
[android] #3753 - removed old zoom methods from MapView
2016-02-01 16:08:09 +01:00
Tobrun
7c58c7803e
[android] #3760 - parity with Google Maps SDK
...
[android] #3760 - added missing methods for UiSettings, updated tests and test app to reflect this change
[android] #3760 - typo fix
2016-02-01 12:47:14 +01:00
Tobrun
8ed1dc9f74
[android] #3145 - MapboxMap
2016-01-29 13:15:58 +01:00
Ansis Brammanis
ca0099b6a4
[android] getters, setters for minZoom, maxZoom
...
adds:
map.getMminZoom();
map.setMminZoom(double);
map.getMaxZoom();
map.setMaxZoom(double);
2016-01-28 15:10:26 -08:00
Brad Leege
94731a9ef0
[android] #3716 - Setting Android Version to 4.0.0-SNAPSHOT
2016-01-28 14:02:51 -06:00
Brad Leege
d3a027075f
Merge branch 'master' into release-android-v3.2.0
2016-01-28 14:00:23 -06:00
Brad Leege
9fd7dd4597
[android] #3716 - Updating version to 3.2.0 for release
2016-01-28 11:54:21 -06:00
Brad Leege
41472054fc
[android] #3728 - Adding Back Pressed support for App Bar Home Button
2016-01-28 11:44:08 -06:00
Brad Leege
87e28d09b2
[android] #3723 - Commenting out content padding in MapView API
2016-01-28 10:50:44 -06:00
Tobrun
1295ba7017
[android] #3692 - fix crash with bad internet connection
2016-01-28 09:01:59 +01:00
Tobrun
b492e2408d
[android] #3708 - added code coverage test documentation and debug option
2016-01-28 08:09:54 +01:00
Larry Geromegnace
3d32c63f7d
[android] Add getters for content paddings.
2016-01-27 10:57:38 -06:00
Larry Geromegnace
72ca584638
[android] Use padding to get center coordinates.
2016-01-27 10:57:38 -06:00
Larry Geromegnace
c114ed6562
[android] Add API to be able to set insets on MapView.
2016-01-27 10:57:38 -06:00
Minh Nguyễn
8a23bdcd01
[core, ios, osx] Tilt around visual center point
...
The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view.
2016-01-26 18:49:01 -08:00
Bruno de Oliveira Abinader
2f86467586
Cleanup std::chrono usage
...
Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
2016-01-25 15:11:18 +02:00
John Firebaugh
a877b9b192
[core] Include prior values of caching headers in Resource
...
This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations.
2016-01-22 18:42:53 -08:00
John Firebaugh
cef5c331fe
[core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their API
2016-01-22 18:41:54 -08:00
Minh Nguyễn
f9360c3f4f
[ios] Strip Simulator content when archiving
...
Copied strip-frameworks.sh from realm/realm-cocoa@7cc31db631 for realm/realm-cocoa#2759 . This script, which is embedded in the dynamic framework, strips out content for invalid architectures from any embedded framework and specifically strips out Simulator content when archiving to work around an App Store bug.
Rewrote the iOS setup documentation. In particular, the MAPBOX_ACCESS_TOKEN environment variable is only for use with the iosapp demo application and doesn’t work in third-party applications.
2016-01-22 14:45:57 -08:00
Konstantin Käfer
9cfe64a122
[build] replace jpeg library with libjpeg-turbo
2016-01-22 16:00:51 +01:00
Tobrun
6b633d5ff3
[android] #3664 - reverse direction fix + formatting commit
2016-01-22 11:52:17 +01:00
Tobrun
488fa3a4c5
[android] #3661 - GPS heading with extra rotation fix
2016-01-22 08:57:33 +01:00
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
1766d7dcbf
[core] Eliminate RequestBase
...
HTTPRequestBase can now itself be the base class.
2016-01-21 11:22:11 -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
Brad Leege
3797bbf75c
[android] #3537 - Updating version to 3.1.0 for release and fabric
2016-01-20 11:26:34 -05: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
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
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
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