[android] #4894 - correctly calculate LatLngBounds

This commit is contained in:
Tobrun
2016-05-04 20:37:44 +02:00
committed by Tobrun
parent 59a7fbf8e4
commit ff080a0f4b

View File

@@ -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()) {