diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-09-26 15:42:10 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-09-26 15:42:57 -0700 |
commit | 7ff036cd01e0d3594dd3006cb8d313786d81799e (patch) | |
tree | 180ef92b3d3fdba9bc7136307310d1600227b09c /include | |
parent | a9842dbd6bbd370f185505212ed3441b29e25240 (diff) | |
download | qtlocation-mapboxgl-7ff036cd01e0d3594dd3006cb8d313786d81799e.tar.gz |
[core] Removed map attribution API
Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map.hpp | 1 | ||||
-rw-r--r-- | include/mbgl/style/source.hpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 2a0d2888bd..914c2cd0b3 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -155,7 +155,6 @@ 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); diff --git a/include/mbgl/style/source.hpp b/include/mbgl/style/source.hpp index 92341066b1..870c81fda6 100644 --- a/include/mbgl/style/source.hpp +++ b/include/mbgl/style/source.hpp @@ -1,6 +1,7 @@ #pragma once #include <mbgl/util/noncopyable.hpp> +#include <mbgl/util/optional.hpp> #include <mbgl/style/types.hpp> #include <memory> @@ -50,6 +51,8 @@ public: // are copied from this source. std::unique_ptr<Source> copy(const std::string& id) const; + optional<std::string> getAttribution() const; + // Private implementation class Impl; const std::unique_ptr<Impl> baseImpl; |