[core] Merge pull request #4914 from bwhtmn/camera-padding
Fix a bug in applying padding to the camera. Fixes #4862.
This commit is contained in:
@@ -523,7 +523,7 @@ CameraOptions Map::cameraForLatLngs(const std::vector<LatLng>& latLngs, optional
|
||||
padding->left / minScale,
|
||||
padding->bottom / minScale,
|
||||
};
|
||||
centerPixel = centerPixel - paddedNEPixel - paddedSWPixel;
|
||||
centerPixel = centerPixel + paddedNEPixel - paddedSWPixel;
|
||||
}
|
||||
centerPixel /= 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user