diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-08-15 16:16:45 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-08-19 17:34:10 +0200 |
commit | cb33c861b4cfa82d7afcb5b9ec85d7797679a7d8 (patch) | |
tree | 8ad68018af87fd9e41e58a19f5d0286698f203e7 /src/mbgl/style/parser.hpp | |
parent | dfd40b27a54115cdf769abdda3ec4d3a1329758c (diff) | |
download | qtlocation-mapboxgl-cb33c861b4cfa82d7afcb5b9ec85d7797679a7d8.tar.gz |
[core] parse more Style JSON properties
We're now parsing "name", "center", "zoom", "bearing", and "pitch" from the stylesheet.
Diffstat (limited to 'src/mbgl/style/parser.hpp')
-rw-r--r-- | src/mbgl/style/parser.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/style/parser.hpp b/src/mbgl/style/parser.hpp index faf80cee93..a6a71ed817 100644 --- a/src/mbgl/style/parser.hpp +++ b/src/mbgl/style/parser.hpp @@ -5,6 +5,7 @@ #include <mbgl/util/rapidjson.hpp> #include <mbgl/util/font_stack.hpp> +#include <mbgl/util/geo.hpp> #include <vector> #include <memory> @@ -27,6 +28,12 @@ public: std::vector<std::unique_ptr<Source>> sources; std::vector<std::unique_ptr<Layer>> layers; + std::string name; + LatLng latLng; + double zoom = 0; + double bearing = 0; + double pitch = 0; + // Statically evaluate layer properties to determine what font stacks are used. std::vector<FontStack> fontStacks() const; |