diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-10-27 20:08:47 +0300 |
---|---|---|
committer | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2017-11-01 09:23:53 -0400 |
commit | 0c5e15e21eb5815f064211226d267e4c6f7fdcf3 (patch) | |
tree | 551d78173a5ab65417011866e8b4436a294d7b61 /platform/android/MapboxGLAndroidSDK | |
parent | 74662831f6dd07851628f5da5f63c4aad3275d08 (diff) | |
download | qtlocation-mapboxgl-0c5e15e21eb5815f064211226d267e4c6f7fdcf3.tar.gz |
[android] map snapshotter - expose attributions
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/snapshotter/MapSnapshot.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/snapshotter/MapSnapshot.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/snapshotter/MapSnapshot.java index 2d1412aeda..aefa962402 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/snapshotter/MapSnapshot.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/snapshotter/MapSnapshot.java @@ -14,13 +14,15 @@ public class MapSnapshot { private long nativePtr = 0; private Bitmap bitmap; + private String[] attributions; /** * Created from native side */ - private MapSnapshot(long nativePtr, Bitmap bitmap) { + private MapSnapshot(long nativePtr, Bitmap bitmap, String[] attributions) { this.nativePtr = nativePtr; this.bitmap = bitmap; + this.attributions = attributions; } /** @@ -38,6 +40,13 @@ public class MapSnapshot { */ public native PointF pixelForLatLng(LatLng latLng); + /** + * @return The attributions for the sources of this snapshot. + */ + protected String[] getAttributions() { + return attributions; + } + // Unused, needed for peer binding private native void initialize(); |