[core] Add interface to add sprites to the style

Unlike annotations, they will go away when we change the style.
This commit is contained in:
Thiago Marcos P. Santos
2016-09-13 18:32:45 -07:00
parent e8d47269f8
commit 486bdddb23
2 changed files with 28 additions and 0 deletions

View File

@@ -161,6 +161,10 @@ public:
void addLayer(std::unique_ptr<style::Layer>, const optional<std::string>& beforeLayerID = {});
void removeLayer(const std::string& layerID);
// Add image, bound to the style
void addImage(const std::string&, std::unique_ptr<const SpriteImage>);
void removeImage(const std::string&);
// Defaults
std::string getStyleName() const;
LatLng getDefaultLatLng() const;