[android] expose ImageSource coordinates setter (#11262)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user