One-Definition-Rule violation in viewport

This commit is contained in:
Daniel J. Hofmann 2016-04-11 11:14:35 +02:00 committed by Patrick Niklaus
parent 02f75236cb
commit bf2ab3d8af

View File

@ -28,7 +28,7 @@ static constexpr double VIEWPORT_HEIGHT = 5 * web_mercator::TILE_SIZE;
static double INV_LOG_2 = 1. / std::log(2);
}
unsigned getFittedZoom(util::Coordinate south_west, util::Coordinate north_east)
inline unsigned getFittedZoom(util::Coordinate south_west, util::Coordinate north_east)
{
const auto min_x = web_mercator::degreeToPixel(toFloating(south_west.lon), detail::MAX_ZOOM);
const auto max_y = web_mercator::degreeToPixel(toFloating(south_west.lat), detail::MAX_ZOOM);