[android] invalidate camera when setting a padding
This commit is contained in:
committed by
Łukasz Paczos
parent
658d68e38c
commit
8fbe63b51b
@@ -516,6 +516,8 @@ void NativeMapView::setVisibleCoordinateBounds(JNIEnv& env, const jni::Array<jni
|
||||
|
||||
void NativeMapView::setContentPadding(JNIEnv&, float top, float left, float bottom, float right) {
|
||||
insets = {top, left, bottom, right};
|
||||
// invalidate the camera position to consider the new padding
|
||||
map->jumpTo(map->getCameraOptions(insets));
|
||||
}
|
||||
|
||||
jni::Local<jni::Array<jni::jfloat>> NativeMapView::getContentPadding(JNIEnv& env) {
|
||||
|
||||
Reference in New Issue
Block a user