[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.
This commit is contained in:
committed by
Minh Nguyễn
parent
78af55f30a
commit
f307652548
@@ -155,6 +155,7 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user