summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Liu <peng.liu@mapbox.com>2019-12-17 18:41:46 +0200
committerPeng Liu <peng.liu@mapbox.com>2020-01-02 22:56:21 +0200
commit3458e6f6ca01f6893d43e0e0596f4899aae95fb6 (patch)
tree75529d89e68f00970b2a8e712cc2ede8536a4752
parent1fc860117b8a5230668dae187e6c2ab3aac0d269 (diff)
downloadqtlocation-mapboxgl-3458e6f6ca01f6893d43e0e0596f4899aae95fb6.tar.gz
Fix format.
-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&);