[core] Replaced raw values with util::tileSize

This commit is contained in:
Bruno de Oliveira Abinader
2016-03-02 14:20:02 +02:00
parent 877adedb0f
commit 8944e2c588
5 changed files with 14 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
#include <mbgl/util/mapbox.hpp>
#include <mbgl/util/constants.hpp>
#include <mbgl/platform/log.hpp>
#include <stdexcept>
@@ -162,7 +163,7 @@ std::string canonicalizeTileURL(const std::string& url, SourceType type, uint16_
std::string result = "mapbox://tiles/" + tileset + "/{z}/{x}/{y}";
if (type == SourceType::Raster) {
result += tileSize == 512 ? "@2x" : "{ratio}";
result += tileSize == util::tileSize ? "@2x" : "{ratio}";
}
result += "." + extension;