Commit Graph

125 Commits

Author SHA1 Message Date
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
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
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
35855889df [android] #3461 - upgrade to okhttp3 for faster tile loading! 🚀 2016-01-14 14:21:46 +01:00
Tobrun
1f31de288f [android] #3535 - improve disabling tracking modes 2016-01-14 13:25:58 +01: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
ac4b1b7479 [core] Standardize transform origin
All Transform methods that take a PrecisionPoint now assume a “flipped” origin at the upper-left corner of the view. Previously, some methods assumed an origin at the lower-left corner.
2016-01-14 00:39:56 -08:00
Minh Nguyễn
d26b956a48 [core] Cleaned up Transform
Eliminated many redundant methods on Transform. Minimized usage of TransformState::x and TransformState::y. Added convenient constructors for AnimationOptions. When scaling, passing in view’s origin as the anchor no longer anchors the scaling operation at the view’s center. To specify no anchor, use NaN.

Increased precision of worldSize(), now that it’s used much more heavily in transform methods.
2016-01-14 00:39:18 -08: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
Tobrun
9df48d4e2c [android] #3514 - update pro guard config 2016-01-13 13:03:28 +01:00
Tobrun
61ea751503 [android] #3514 - disable proguard in test app 2016-01-13 09:10:47 +01:00
Brad Leege
11062a01b4 [android] #3484 - Switching to Directions 1.0.0 release. Removing mavenCentral() as it's a subset of jcenter(). 2016-01-12 11:21:51 -06:00
Antonio Zugaldia
9c43343187 directions activity sample 2016-01-12 11:21:50 -06:00
Tobrun
9379aeac1c [android] #3518 - fix context leak InfoWIndow by using a WeakReference 2016-01-12 15:56:42 +01:00
Tobrun
703ccbd727 [android] #3309 - replace coordinate naming with LatLng 2016-01-12 14:08:24 +01:00
Tobrun
3e4c1bd534 [android] #3447 - initial commit to verify current progress 2016-01-12 12:40:58 +01:00
Tobrun
71edb38cf1 [android] #3327 - replaced ZoomLevel with Zoom, introduced new methods, deprecated old ones 2016-01-12 12:34:45 +01:00
Tobrun
2b5d7bfb8e [android] #3498 - disable missing permission lint check inline 2016-01-12 10:39:03 +01:00
Tobrun
c10f6489e6 [android] #2187 - added LeakCanary to Android test app 2016-01-11 16:42:21 +01:00
John Firebaugh
e7b0b31d58 [core] Privatize SQLiteCache 2016-01-08 12:31:13 -08:00
Tobrun
656eb8766c [android] #3481 - add check to enable location in tracking mode 2016-01-08 17:44:54 +01:00
Tobrun
1caad0db7c [android] #3435 - updated MapView for swallowing SecurityExceptions if permissions are revoked by end-user 2016-01-07 11:35:46 +01:00
Dane Springmeyer
12345e56d4 [android, linux, osx] Upgrade to libpng 1.6.20
- refs https://github.com/mapbox/mason/tree/libpng-1.6.20
 - refs https://travis-ci.org/mapbox/mason/builds/100661025
2016-01-06 16:35:16 -08:00
Tobrun
9d6cb1361c [android] #3444 #3435 - added change listeners to location tracking and bearing tracking, added requires permissions checks and handled them in the test app, update javadoc to reflect changes, formatting commit of MapView, Reposition UserLocationView when location tracking becomes active 2016-01-06 10:05:58 +01:00
Antonio Zugaldia
1738a9e200 [android] Fixes crash related to location listener
Fixes #3442
2016-01-05 17:36:09 -08:00
Minh Nguyễn
1a501d4ec4 Happy new year! 2016-01-05 14:01:58 -08:00
John Firebaugh
e26b218883 [android, ios, osx] Emoji ⇢ ASCII in Bitrise notifications 2016-01-05 10:59:41 -08:00
Minh Nguyễn
f8f735b574 Rewrote documentation
Rewrote some copy to provide more context and link to more GL-related repos, including GL JS. Put the various SDKs in a table so we can show the various CI bot status images.

Integrated target list into the relevant documents. Rewrote large portions of iOS and OS X setup documentation to guide normal developers to more friendly places. Combined some Android documentation.

Moved SDK-specific documentation into platform/. Added a temporary readme in ios/ that points to the one in platform/ios/.
2016-01-05 08:04:16 -08:00
Tobrun
f80673b15c [android] #3397 - animating change of direction when tracking mode is follow user 2016-01-05 16:10:17 +01:00
Tobrun
522a88560b [android] #3308 - remove default constructor 2016-01-05 16:06:34 +01:00
Antonio Zugaldia
6e4eb094bf [android] Fix zoom gestures when scrolling is disabled
Fixes #3421
2015-12-30 15:27:58 -08:00
Minh Nguyễn
490907ac29 [android, ios, osx] Moved platform identifier into Slack user name
Also customized links for brevity.
2015-12-24 15:07:07 -08:00
Minh Nguyễn
633a3a5a3d [osx] Bitrise configuration
Fixes #2776.
2015-12-24 15:07:03 -08:00
Antonio Zugaldia
d2b2336a9e [android] better http log messages
Fixes #3411
2015-12-24 11:25:17 -05:00
Brad Leege
aca584e124 [android] #3412 - Remove REGION_DID_CHANGE checks and set animateCamera methods to 1 millisecond default animation durations 2015-12-24 10:03:28 -06: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
Tobrun
11a8978eed [android] #3283 - fix setCenterCoordinate animation 2015-12-23 16:32:09 +01:00
Brad Leege
06f58b288a [android] #3384 - package-info.java for the .camera and .location packages JavaDocs 2015-12-22 17:27:04 -06:00
John Firebaugh
b60b6c47c0 [core] Merge SQLiteCache into the platform library
OfflineFileSource will depend on SQLite too.
2015-12-22 12:09:14 -08:00
Brad Leege
4c90f63c6d [android] #2915 - Removing Crashlytics From TestApp 2015-12-22 08:46:58 -06:00
Brad Leege
4a18e1cf77 [android] #3354 - Setting Android Version to 3.1.0-SNAPSHOT 2015-12-21 18:29:57 -06:00
Brad Leege
19f2f62609 [android] #3354 - Incrementing Version to 3.0.0 for release 2015-12-21 12:22:43 -06:00
Brad Leege
9c4cbb4fcd [android] #3348 - Updating customLayerClass package name in JNI code 2015-12-21 11:51:54 -06:00
Brad Leege
e8e485f83e [android] #3348 - Moved ExampleCustomLayer into it's own package. Moved Custom Layer to Main Activity Controls in Nav Drawer with new icon. 2015-12-21 10:09:33 -06:00
Brad Leege
3bffd6456f [android] #3358 - easeTo() uses nanoseconds instead of milliseconds 2015-12-20 10:00:08 -06:00