Merge pull request #15437 from mapbox/lp-revert-14989
Revert "[android] invalidate camera when setting a padding"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user