[android] map snapshotter - expose attributions

This commit is contained in:
Ivo van Dongen
2017-10-27 20:08:47 +03:00
committed by Fabian Guerra Soto
parent 74662831f6
commit 0c5e15e21e
5 changed files with 48 additions and 5 deletions

View File

@@ -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();