summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobrun <tobrun@mapbox.com>2016-05-04 20:37:44 +0200
committerTobrun <tobrun.van.nuland@gmail.com>2016-05-06 10:18:33 +0200
commitff080a0f4b18c9ab18fbac049ade84b8b2c6b00f (patch)
tree5a2d05d8c3e6ab9be0ccffbb84df8c3446259454
parent59a7fbf8e423790237287f1ea3c1a54d7eec64af (diff)
downloadqtlocation-mapboxgl-ff080a0f4b18c9ab18fbac049ade84b8b2c6b00f.tar.gz
[android] #4894 - correctly calculate LatLngBounds
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraUpdateFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraUpdateFactory.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraUpdateFactory.java
index 58272098cf..8ba0b4e5c8 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraUpdateFactory.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraUpdateFactory.java
@@ -229,7 +229,7 @@ public final class CameraUpdateFactory {
RectF padding = getPadding();
// Calculate the bounds of the possibly rotated shape with respect to the viewport
- PointF nePixel = new PointF(Float.MIN_VALUE, Float.MIN_VALUE);
+ PointF nePixel = new PointF(-Float.MAX_VALUE, -Float.MAX_VALUE);
PointF swPixel = new PointF(Float.MAX_VALUE, Float.MAX_VALUE);
float viewportHeight = uiSettings.getHeight();
for (LatLng latLng : getBounds().toLatLngs()) {