[android] expose ImageSource coordinates setter (#11262)

This commit is contained in:
Łukasz Paczos
2018-02-22 10:01:48 +01:00
committed by GitHub
parent ebb72b9002
commit fcf5fa6bbb
3 changed files with 20 additions and 1 deletions

View File

@@ -124,6 +124,15 @@ public class ImageSource extends Source {
return nativeGetUrl();
}
/**
* Updates the latitude and longitude of the four corners of the image
*
* @param latLngQuad latitude and longitude of the four corners of the image
*/
public void setCoordinates(LatLngQuad latLngQuad) {
nativeSetCoordinates(latLngQuad);
}
protected native void initialize(String layerId, LatLngQuad payload);
protected native void nativeSetUrl(String url);
@@ -132,6 +141,8 @@ public class ImageSource extends Source {
protected native void nativeSetImage(Bitmap bitmap);
protected native void nativeSetCoordinates(LatLngQuad latLngQuad);
@Override
protected native void finalize() throws Throwable;
}