summaryrefslogtreecommitdiff
path: root/src/mbgl/style/parser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/parser.hpp')
-rw-r--r--src/mbgl/style/parser.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/style/parser.hpp b/src/mbgl/style/parser.hpp
index a05a0b316a..32b8a7a8bc 100644
--- a/src/mbgl/style/parser.hpp
+++ b/src/mbgl/style/parser.hpp
@@ -2,6 +2,7 @@
#include <mbgl/style/layer.hpp>
#include <mbgl/style/source.hpp>
+#include <mbgl/style/light.hpp>
#include <mbgl/util/rapidjson.hpp>
#include <mbgl/util/font_stack.hpp>
@@ -31,6 +32,8 @@ public:
std::vector<std::unique_ptr<Source>> sources;
std::vector<std::unique_ptr<Layer>> layers;
+ Light light;
+
std::string name;
LatLng latLng;
double zoom = 0;
@@ -41,6 +44,7 @@ public:
std::vector<FontStack> fontStacks() const;
private:
+ void parseLight(const JSValue&);
void parseSources(const JSValue&);
void parseLayers(const JSValue&);
void parseLayer(const std::string& id, const JSValue&, std::unique_ptr<Layer>&);