summaryrefslogtreecommitdiff
path: root/src/mbgl/style/source_observer.hpp
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 /src/mbgl/style/source_observer.hpp
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 'src/mbgl/style/source_observer.hpp')
-rw-r--r--src/mbgl/style/source_observer.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/style/source_observer.hpp b/src/mbgl/style/source_observer.hpp
index 26b25b78da..a6cdab6ba2 100644
--- a/src/mbgl/style/source_observer.hpp
+++ b/src/mbgl/style/source_observer.hpp
@@ -17,6 +17,7 @@ public:
virtual ~SourceObserver() = default;
virtual void onSourceLoaded(Source&) {}
+ virtual void onSourceAttributionChanged(Source&, const std::string&) {}
virtual void onSourceError(Source&, std::exception_ptr) {}
virtual void onTileChanged(Source&, const OverscaledTileID&) {}