diff options
-rw-r--r-- | src/text/glyph_store.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/text/glyph_store.cpp b/src/text/glyph_store.cpp index bafd6ce82b..e2ebb97bdd 100644 --- a/src/text/glyph_store.cpp +++ b/src/text/glyph_store.cpp @@ -5,6 +5,7 @@ #include <llmr/util/pbf.hpp> #include <llmr/platform/platform.hpp> #include <uv.h> +#include <regex> namespace llmr { @@ -27,7 +28,7 @@ GlyphPBF::GlyphPBF(const std::string &fontStack, GlyphRange glyphRange) std::string url = util::sprintf<255>("http://mapbox.s3.amazonaws.com/gl-glyphs/%s/%d-%d.pbf", fontStack.c_str(), glyphRange.first, glyphRange.second); // TODO: Find more reliable URL normalization function - // std::replace(url.begin(), url.end(), ' ', '+'); + std::replace(url.begin(), url.end(), ' ', '+'); platform::request_http(url, [&](platform::Response *res) { if (res->code != 200) { |