Gabriel Miklós
b395302990
[android] Update marker position and icon #3885
2016-02-15 11:05:29 +01:00
John Firebaugh
ff15bd51b9
[core] Throttle the number of concurrent requests to 20
2016-02-10 15:40:20 -08:00
John Firebaugh
e9302c797f
[all] Don't interpret 404s on non-tile resources as "no content"
2016-02-10 15:40:20 -08:00
John Firebaugh
7eb1a91c4e
[all] Do not set Response data for 404s
...
For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
2016-02-10 15:40:20 -08:00
Jonas Bergvall
040fc09ea7
[android] Fixed error with asset URLs with URL encoded spaces.
2016-02-08 10:05:57 -08:00
Konstantin Käfer
2f06ca74e2
[core] move platform/gl.hpp to gl/gl.hpp
2016-02-08 12:50:00 +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
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
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
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
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
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
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
John Firebaugh
9b62661b07
[core] Use experimental optional instead of mapbox::util::optional
2016-01-19 17:56:48 -08:00
John Firebaugh
f62d41ae05
[core] Restore existing response body
...
Until #2721 lands we still need this.
2016-01-14 18:38:56 -08:00
John Firebaugh
2aafdbc1b8
[core] Add an explicit "not modified" indicator to Response
2016-01-14 13:46:03 -08:00
Tobrun
5d9485e02e
[android] #3539 - silence warning about unused param message that was breaking our build on CI
2016-01-14 11:10:45 +01:00
Minh Nguyễn
27b308a234
[core] Separated AnimationOptions from CameraOptions
2016-01-14 00:39:12 -08:00
John Firebaugh
5a7d2fd60e
[core] Eliminate platform::assetRoot()
...
I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
2016-01-13 13:40:31 -08:00
John Firebaugh
86c8446d3a
[core] Simplify asset:// implementation
...
* Move asset:// URL handling to DefaultFileSource.
* AssetFileSource implements FileSource interface and follows familiar implementation patterns.
* Move default implementation to platform/default, zip implementation to platform/android.
* Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter.
* Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit.
2016-01-13 13:40:31 -08:00
John Firebaugh
e7b0b31d58
[core] Privatize SQLiteCache
2016-01-08 12:31:13 -08:00
John Firebaugh
c972a251da
[core] Remove Resource dependency from low-level classes
...
These classes should not be coupled to domain-specific resource types.
2015-12-23 14:30:20 -08:00
Brad Leege
9c4cbb4fcd
[android] #3348 - Updating customLayerClass package name in JNI code
2015-12-21 11:51:54 -06:00
Tobrun
f3de446bd9
[android] #3304 - refactor SpriteFactory to IconFactory, changed all the sprite names to icon for convention
2015-12-20 11:57:36 +01:00
Brad Leege
f7d1a40350
[android] Camera API
2015-12-18 11:33:40 -08:00
John Firebaugh
110f1ec796
[ios, android] Add methods to remove a custom layer
2015-12-17 15:15:55 -08:00
John Firebaugh
9f18ed9a3c
[android] Add CustomLayerRenderParameters to example code
2015-12-16 16:30:30 -08:00
John Firebaugh
2b782308e5
[android] Simplify structure for native files
2015-12-16 16:06:45 -08:00