diff options
Diffstat (limited to 'src/mbgl/style/style.hpp')
-rw-r--r-- | src/mbgl/style/style.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/style/style.hpp b/src/mbgl/style/style.hpp index 82c048b195..62ade95df2 100644 --- a/src/mbgl/style/style.hpp +++ b/src/mbgl/style/style.hpp @@ -100,6 +100,12 @@ public: optional<std::string> beforeLayerID = {}); void removeLayer(const std::string& layerID); + bool addClass(const std::string&); + bool removeClass(const std::string&); + bool hasClass(const std::string&) const; + void setClasses(const std::vector<std::string>&); + std::vector<std::string> getClasses() const; + RenderData getRenderData() const; void setSourceTileCacheSize(size_t); @@ -118,6 +124,7 @@ public: private: std::vector<std::unique_ptr<Source>> sources; std::vector<std::unique_ptr<StyleLayer>> layers; + std::vector<std::string> classes; std::vector<std::unique_ptr<StyleLayer>>::const_iterator findLayer(const std::string& layerID) const; |