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));