[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.
This commit is contained in:
committed by
Minh Nguyễn
parent
a9842dbd6b
commit
7ff036cd01
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user