summaryrefslogtreecommitdiff
path: root/include/mbgl/style/source.hpp
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-09-26 15:42:10 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-09-26 15:42:57 -0700
commit7ff036cd01e0d3594dd3006cb8d313786d81799e (patch)
tree180ef92b3d3fdba9bc7136307310d1600227b09c /include/mbgl/style/source.hpp
parenta9842dbd6bbd370f185505212ed3441b29e25240 (diff)
downloadqtlocation-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/mbgl/style/source.hpp')
-rw-r--r--include/mbgl/style/source.hpp3
1 files changed, 3 insertions, 0 deletions
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;