summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/android/src/native_map_view.cpp13
-rw-r--r--[-rwxr-xr-x]platform/android/src/native_map_view.hpp3
2 files changed, 8 insertions, 8 deletions
diff --git a/platform/android/src/native_map_view.cpp b/platform/android/src/native_map_view.cpp
index db3fbddeeb..a73dd0ec0c 100644
--- a/platform/android/src/native_map_view.cpp
+++ b/platform/android/src/native_map_view.cpp
@@ -529,16 +529,15 @@ void NativeMapView::setVisibleCoordinateBounds(JNIEnv& env, const jni::Array<jni
map->easeTo(cameraOptions, animationOptions);
}
-void NativeMapView::getVisibleCoordinateBounds(JNIEnv& env,
- jint screenWidth,
- jint screenHeight,
- jni::Array<jdouble>& output,
- jfloat pixelRatio_) {
- mbgl::LatLng southEast = map->latLngForPixel(mbgl::ScreenCoordinate(screenWidth / pixelRatio_, screenHeight / pixelRatio_));
+void NativeMapView::getVisibleCoordinateBounds(
+ JNIEnv& env, jint screenWidth, jint screenHeight, jni::Array<jdouble>& output, jfloat pixelRatio_) {
+ mbgl::LatLng southEast =
+ map->latLngForPixel(mbgl::ScreenCoordinate(screenWidth / pixelRatio_, screenHeight / pixelRatio_));
mbgl::LatLng northEast = map->latLngForPixel(mbgl::ScreenCoordinate(screenWidth / pixelRatio_, 0.0));
mbgl::LatLng southWest = map->latLngForPixel(mbgl::ScreenCoordinate(0.0, screenHeight / pixelRatio_));
mbgl::LatLng northWest = map->latLngForPixel(mbgl::ScreenCoordinate(0.0, 0.0));
- mbgl::LatLng center = map->latLngForPixel(mbgl::ScreenCoordinate(screenWidth / (2 * pixelRatio_), screenHeight / (2 * pixelRatio_)));
+ mbgl::LatLng center =
+ map->latLngForPixel(mbgl::ScreenCoordinate(screenWidth / (2 * pixelRatio_), screenHeight / (2 * pixelRatio_)));
double latitudes[] = {southEast.latitude(), northEast.latitude(), southWest.latitude(), northWest.latitude()};
double longitudes[] = {southEast.longitude(), northEast.longitude(), southWest.longitude(), northWest.longitude()};
diff --git a/platform/android/src/native_map_view.hpp b/platform/android/src/native_map_view.hpp
index 0823e53509..8248fb534e 100755..100644
--- a/platform/android/src/native_map_view.hpp
+++ b/platform/android/src/native_map_view.hpp
@@ -139,7 +139,8 @@ public:
void setVisibleCoordinateBounds(JNIEnv&, const jni::Array<jni::Object<LatLng>>&, const jni::Object<RectF>&, jni::jdouble, jni::jlong);
- void getVisibleCoordinateBounds(JNIEnv& env, jint screenWidth, jint screenHeight, jni::Array<jdouble>& output, jfloat pixelRatio_);
+ void getVisibleCoordinateBounds(
+ JNIEnv& env, jint screenWidth, jint screenHeight, jni::Array<jdouble>& output, jfloat pixelRatio_);
void scheduleSnapshot(jni::JNIEnv&);