load the normalized_id rather than the logical id

This commit is contained in:
Konstantin Käfer
2014-04-15 12:46:28 -04:00
parent 78c10c0701
commit 746224a2ae

View File

@@ -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<TileData>(normalized_id, map.getStyle(), map.getGlyphAtlas(), formed_url, (type == Source::Type::raster));