From 142084831417c666bc9c14d88d2c7851727704bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Tue, 20 May 2014 12:21:32 +0200 Subject: accomodate function values for tile size difference --- src/style/style.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/style/style.cpp') diff --git a/src/style/style.cpp b/src/style/style.cpp index b95cb5f209..231bddfb61 100644 --- a/src/style/style.cpp +++ b/src/style/style.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -22,6 +23,10 @@ void Style::reset() { void Style::cascade(float z) { reset(); + // Accomodate for different tile size. + // TODO: Make this per-layer once individual layers have a specific tile size. + z += std::log(util::tileSize / 256.0f) / M_LN2; + // Recalculate style // Basic cascading for (const auto& class_pair : classes) { -- cgit v1.2.1