From 746224a2ae4ae0df345f6456c4abb9fb1482b5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Tue, 15 Apr 2014 12:46:28 -0400 Subject: [PATCH] load the normalized_id rather than the logical id --- src/map/source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/source.cpp b/src/map/source.cpp index 87e6a021b..4cb2b4f60 100644 --- a/src/map/source.cpp +++ b/src/map/source.cpp @@ -110,9 +110,9 @@ TileData::State Source::addTile(const Tile::ID& id) { std::string formed_url; if (type == Source::Type::vector) { - formed_url = util::sprintf(url, id.z, id.x, id.y); + formed_url = util::sprintf(url, normalized_id.z, normalized_id.x, normalized_id.y); } else { - formed_url = util::sprintf(url, id.z, id.x, id.y, (map.getPixelRatio() > 1.0 ? "@2x" : "")); + formed_url = util::sprintf(url, normalized_id.z, normalized_id.x, normalized_id.y, (map.getPixelRatio() > 1.0 ? "@2x" : "")); } new_tile.data = std::make_shared(normalized_id, map.getStyle(), map.getGlyphAtlas(), formed_url, (type == Source::Type::raster));