diff options
Diffstat (limited to 'include/mbgl/style/layers/layer.hpp.ejs')
-rw-r--r-- | include/mbgl/style/layers/layer.hpp.ejs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/mbgl/style/layers/layer.hpp.ejs b/include/mbgl/style/layers/layer.hpp.ejs index fdf7620892..60365be906 100644 --- a/include/mbgl/style/layers/layer.hpp.ejs +++ b/include/mbgl/style/layers/layer.hpp.ejs @@ -22,24 +22,23 @@ namespace style { class <%- camelize(type) %>Layer : public Layer { public: +<% if (type === 'background') { -%> <%- camelize(type) %>Layer(const std::string& layerID); +<% } else { -%> + <%- camelize(type) %>Layer(const std::string& layerID, const std::string& sourceID); +<% } -%> ~<%- camelize(type) %>Layer() final; -<% if (type === 'raster') { -%> +<% if (type !== 'background') { -%> // Source - - void setSource(const std::string& sourceID); - const std::string& getSourceID() const; - -<% } else if (type !== 'background') { -%> - // Source - - void setSource(const std::string& sourceID, const std::string& sourceLayer); const std::string& getSourceID() const; +<% if (type !== 'raster') { -%> const std::string& getSourceLayer() const; + void setSourceLayer(const std::string& sourceLayer); void setFilter(const Filter&); const Filter& getFilter() const; +<% } -%> <% } -%> <% if (layoutProperties.length) { -%> |