summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/style_layer.hpp')
-rw-r--r--src/mbgl/style/style_layer.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mbgl/style/style_layer.hpp b/src/mbgl/style/style_layer.hpp
index 43d595bb38..a27e8a89cf 100644
--- a/src/mbgl/style/style_layer.hpp
+++ b/src/mbgl/style/style_layer.hpp
@@ -1,8 +1,7 @@
#ifndef MBGL_STYLE_STYLE_LAYER
#define MBGL_STYLE_STYLE_LAYER
-#include <mbgl/style/class_dictionary.hpp>
-#include <mbgl/style/class_properties.hpp>
+#include <mbgl/style/types.hpp>
#include <mbgl/style/paint_properties_map.hpp>
#include <mbgl/renderer/render_pass.hpp>
@@ -11,9 +10,10 @@
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/ptr.hpp>
+#include <rapidjson/document.h>
+
#include <vector>
#include <string>
-#include <map>
namespace mbgl {
@@ -21,12 +21,17 @@ class StyleBucket;
class StyleCalculationParameters;
class PropertyTransition;
+using JSVal = rapidjson::Value;
+
class StyleLayer : public util::noncopyable {
public:
static std::unique_ptr<StyleLayer> create(StyleLayerType);
virtual ~StyleLayer() = default;
+ virtual void parseLayout(const JSVal& value) = 0;
+ virtual void parsePaints(const JSVal& value) = 0;
+
// Partially evaluate paint properties based on a set of classes.
void cascade(const std::vector<std::string>& classNames,
const TimePoint& now,