1 #pragma once
2 
3 #include <mbgl/style/layer.hpp>
4 #include <mbgl/style/conversion.hpp>
5 
6 #include <memory>
7 
8 namespace mbgl {
9 namespace style {
10 namespace conversion {
11 
12 template <>
13 struct Converter<std::unique_ptr<Layer>> {
14 public:
15     optional<std::unique_ptr<Layer>> operator()(const Convertible& value, Error& error) const;
16 };
17 
18 optional<Error> setLayoutProperty(Layer& layer, const std::string& name, const Convertible& value);
19 optional<Error> setPaintProperty(Layer& layer, const std::string& name, const Convertible& value);
20 optional<Error> setPaintProperties(Layer& layer, const Convertible& value);
21 
22 } // namespace conversion
23 } // namespace style
24 } // namespace mbgl
25