summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-01-14 17:11:59 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-01-14 17:43:44 -0800
commitd24b73b1a67a2ab4f65f413d19374050f17782bb (patch)
tree31c8deaf26052743b01e1857b1e2b9963f6b4a1f /include
parentc6ca57045fb373d4fd76d1ec228bd35a518d06e8 (diff)
downloadqtlocation-mapboxgl-d24b73b1a67a2ab4f65f413d19374050f17782bb.tar.gz
Move class state to map
https://github.com/mapbox/mapbox-gl-js/pull/936
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 45846170c2..62c4abc232 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -68,9 +68,12 @@ public:
void resize(uint16_t width, uint16_t height, float ratio, uint16_t fb_width, uint16_t fb_height);
// Styling
- void setAppliedClasses(const std::vector<std::string> &classes);
- void toggleClass(const std::string &name);
- const std::vector<std::string> &getAppliedClasses() const;
+ void addClass(const std::string&);
+ void removeClass(const std::string&);
+ bool hasClass(const std::string&) const;
+ void setClasses(const std::vector<std::string>&);
+ std::vector<std::string> getClasses() const;
+
void setDefaultTransitionDuration(uint64_t milliseconds = 0);
void setStyleURL(const std::string &url);
void setStyleJSON(std::string newStyleJSON, const std::string &base = "");
@@ -188,6 +191,7 @@ private:
std::string styleURL;
std::string styleJSON = "";
+ std::vector<std::string> classes;
bool debug = false;
timestamp animationTime = 0;