[android] - style image accessor
This commit is contained in:
committed by
Tobrun
parent
e204f6cd79
commit
385e4e6ade
@@ -473,6 +473,10 @@ public final class MapboxMap {
|
||||
nativeMapView.removeImage(name);
|
||||
}
|
||||
|
||||
public Bitmap getImage(@NonNull String name) {
|
||||
return nativeMapView.getImage(name);
|
||||
}
|
||||
|
||||
//
|
||||
// MinZoom
|
||||
//
|
||||
|
||||
@@ -808,6 +808,13 @@ final class NativeMapView {
|
||||
nativeRemoveImage(name);
|
||||
}
|
||||
|
||||
public Bitmap getImage(String name) {
|
||||
if (isDestroyedOn("getImage")) {
|
||||
return null;
|
||||
}
|
||||
return nativeGetImage(name);
|
||||
}
|
||||
|
||||
// Feature querying
|
||||
|
||||
@NonNull
|
||||
@@ -1078,6 +1085,8 @@ final class NativeMapView {
|
||||
|
||||
private native void nativeRemoveImage(String name);
|
||||
|
||||
private native Bitmap nativeGetImage(String name);
|
||||
|
||||
private native void nativeUpdatePolygon(long polygonId, Polygon polygon);
|
||||
|
||||
private native void nativeUpdatePolyline(long polylineId, Polyline polyline);
|
||||
|
||||
Reference in New Issue
Block a user