diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 2a0246b65..a1dd9b6a7 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -523,7 +523,7 @@ CameraOptions Map::cameraForLatLngs(const std::vector& latLngs, optional padding->left / minScale, padding->bottom / minScale, }; - centerPixel = centerPixel - paddedNEPixel - paddedSWPixel; + centerPixel = centerPixel + paddedNEPixel - paddedSWPixel; } centerPixel /= 2;