[android] - fix reset behavior for setLatLngBoundsForCameraTarget

This commit is contained in:
tobrun
2019-06-10 12:54:38 +02:00
committed by Tobrun
parent 6262b83cc6
commit df062afe6d
5 changed files with 23 additions and 12 deletions

View File

@@ -314,7 +314,7 @@ void NativeMapView::setLatLngBounds(jni::JNIEnv& env, const jni::Object<mbgl::an
if (jBounds) {
bounds.withLatLngBounds(mbgl::android::LatLngBounds::getLatLngBounds(env, jBounds));
} else {
bounds.withLatLngBounds(mbgl::LatLngBounds::world());
bounds.withLatLngBounds(mbgl::LatLngBounds::unbounded());
}
map->setBounds(bounds);
}