summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-01-18 16:33:39 +1100
committerLeith Bade <leith@mapbox.com>2015-01-18 16:33:39 +1100
commit016c2948c5e5d0f49c6169bd5802b54747c60312 (patch)
tree0bc1c8968ddf78e26ed21f8dd1217873bad3c2da /include
parent4540a8ae83fb219e1166d31ebd3cbbe1f2937993 (diff)
parent9b2c8d0391a0f06d65e34a87279973d191035015 (diff)
downloadqtlocation-mapboxgl-016c2948c5e5d0f49c6169bd5802b54747c60312.tar.gz
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Conflicts: src/mbgl/map/map.cpp
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 854d8c6a95..fa46f4a702 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -76,9 +76,12 @@ public:
void resize(uint16_t width, uint16_t height, float ratio, uint16_t fbWidth, uint16_t fbHeight);
// 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);
uint64_t getDefaultTransitionDuration();
void setStyleURL(const std::string &url);
@@ -208,6 +211,7 @@ private:
std::string styleURL;
std::string styleJSON = "";
+ std::vector<std::string> classes;
std::atomic_uint_fast64_t defaultTransitionDuration;