summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style_parser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/style_parser.hpp')
-rw-r--r--src/mbgl/style/style_parser.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mbgl/style/style_parser.hpp b/src/mbgl/style/style_parser.hpp
index 69bd8a3bf9..280cda530b 100644
--- a/src/mbgl/style/style_parser.hpp
+++ b/src/mbgl/style/style_parser.hpp
@@ -2,7 +2,7 @@
#define MBGL_STYLE_STYLE_PARSER
#include <mbgl/style/style_layer.hpp>
-#include <mbgl/map/source.hpp>
+#include <mbgl/source/source.hpp>
#include <mbgl/util/rapidjson.hpp>
#include <vector>
@@ -28,7 +28,10 @@ public:
std::vector<std::unique_ptr<Source>> sources;
std::vector<std::unique_ptr<StyleLayer>> layers;
- static std::unique_ptr<SourceInfo> parseTileJSON(const std::string& json, const std::string& sourceURL, SourceType);
+ // Statically evaluate layer properties to determine what font stacks are used.
+ std::vector<std::string> fontStacks() const;
+
+ static std::unique_ptr<SourceInfo> parseTileJSON(const std::string& json, const std::string& sourceURL, SourceType, uint16_t tileSize);
static std::unique_ptr<SourceInfo> parseTileJSON(const JSValue&);
static std::unique_ptr<mapbox::geojsonvt::GeoJSONVT> parseGeoJSON(const JSValue&);