From f30765254807bedab0873a289a118906ef74b754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Sat, 13 Aug 2016 11:30:15 -0700 Subject: [core] Source-driven attribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- include/mbgl/map/map.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include/mbgl/map') 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); void removeSource(const std::string& sourceID); + std::vector getAttributions() const; // Layers style::Layer* getLayer(const std::string& layerID); -- cgit v1.2.1