summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-08-13 11:30:15 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-09-26 11:37:06 -0700
commitf30765254807bedab0873a289a118906ef74b754 (patch)
tree0988f52d73931b05718642c218c8241421882eb8 /include
parent78af55f30a37165c960c90db9a96801effc850f6 (diff)
downloadqtlocation-mapboxgl-f30765254807bedab0873a289a118906ef74b754.tar.gz
[core] Source-driven attribution
Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution. Fixes #2723.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 914c2cd0b3..2a0d2888bd 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -155,6 +155,7 @@ public:
style::Source* getSource(const std::string& sourceID);
void addSource(std::unique_ptr<style::Source>);
void removeSource(const std::string& sourceID);
+ std::vector<std::string> getAttributions() const;
// Layers
style::Layer* getLayer(const std::string& layerID);