diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-08-13 11:30:15 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-09-26 11:37:06 -0700 |
commit | f30765254807bedab0873a289a118906ef74b754 (patch) | |
tree | 0988f52d73931b05718642c218c8241421882eb8 /src/mbgl/style/source_observer.hpp | |
parent | 78af55f30a37165c960c90db9a96801effc850f6 (diff) | |
download | qtlocation-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.hpp | 1 |
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&) {} |