Only add {ratio} to raster tile URLs
Thanks to @mb12 for the suggestion.
This commit is contained in:
committed by
John Firebaugh
parent
a3d76dad10
commit
8804c47d27
@@ -38,7 +38,8 @@ void TileData::request(uv::worker &worker, float pixelRatio, std::function<void(
|
||||
return;
|
||||
|
||||
std::string url = source.tiles[(id.x + id.y) % source.tiles.size()];
|
||||
url = util::replaceTokens(util::mapbox::normalizeTileURL(url, source.url), [&](const std::string &token) -> std::string {
|
||||
url = util::mapbox::normalizeTileURL(url, source.url, source.type);
|
||||
url = util::replaceTokens(url, [&](const std::string &token) -> std::string {
|
||||
if (token == "z") return util::toString(id.z);
|
||||
if (token == "x") return util::toString(id.x);
|
||||
if (token == "y") return util::toString(id.y);
|
||||
|
||||
Reference in New Issue
Block a user