[core] Use geometry.hpp's point

This commit is contained in:
John Firebaugh
2016-03-16 17:45:00 -07:00
parent f89cfacab2
commit 9330d674a9
41 changed files with 264 additions and 367 deletions

View File

@@ -525,7 +525,7 @@ CameraOptions Map::cameraForLatLngs(const std::vector<LatLng>& latLngs, optional
};
centerPixel = centerPixel + paddedNEPixel - paddedSWPixel;
}
centerPixel /= 2;
centerPixel /= 2.0;
// CameraOptions origin is at the top-left corner.
centerPixel.y = viewportHeight - centerPixel.y;