Merge pull request #15437 from mapbox/lp-revert-14989

Revert "[android] invalidate camera when setting a padding"
This commit is contained in:
Łukasz Paczos
2019-08-21 17:24:11 +02:00
committed by GitHub
parent d0529e7b19
commit baa7086570
3 changed files with 22 additions and 85 deletions

View File

@@ -516,8 +516,6 @@ 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) {