summaryrefslogtreecommitdiff
path: root/src/mbgl/style
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-01-29 17:49:22 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-10 15:40:20 -0800
commit025375ad0b365a06e0742b92fecc9bc538b5a6e0 (patch)
treed94054813001e7b64c57d09651a47084064f9372 /src/mbgl/style
parentdbb8e58aea00a84716aafa6887b50c0186169f9e (diff)
downloadqtlocation-mapboxgl-025375ad0b365a06e0742b92fecc9bc538b5a6e0.tar.gz
[core] Cache with mapbox:// tile URLs
Diffstat (limited to 'src/mbgl/style')
-rw-r--r--src/mbgl/style/style_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/style_parser.cpp b/src/mbgl/style/style_parser.cpp
index e3470e45d3..50276c8f5b 100644
--- a/src/mbgl/style/style_parser.cpp
+++ b/src/mbgl/style/style_parser.cpp
@@ -269,11 +269,11 @@ std::unique_ptr<SourceInfo> StyleParser::parseTileJSON(const std::string& json,
std::unique_ptr<SourceInfo> result = StyleParser::parseTileJSON(document);
// TODO: Remove this hack by delivering proper URLs in the TileJSON to begin with.
- if (type == SourceType::Raster && util::mapbox::isMapboxURL(sourceURL)) {
+ if (util::mapbox::isMapboxURL(sourceURL)) {
std::transform(result->tiles.begin(),
result->tiles.end(),
result->tiles.begin(),
- util::mapbox::normalizeRasterTileURL);
+ std::bind(util::mapbox::canonicalizeTileURL, std::placeholders::_1, type));
}
return result;