24 lines
498 B
C++
24 lines
498 B
C++
#pragma once
|
|
|
|
#include <mbgl/style/layer.hpp>
|
|
#include <mbgl/style/conversion.hpp>
|
|
|
|
#include <memory>
|
|
#include <optional>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
namespace conversion {
|
|
|
|
template <>
|
|
struct Converter<std::unique_ptr<Layer>> {
|
|
public:
|
|
std::optional<std::unique_ptr<Layer>> operator()(const Convertible& value, Error& error) const;
|
|
};
|
|
|
|
std::optional<Error> setPaintProperties(Layer& layer, const Convertible& value);
|
|
|
|
} // namespace conversion
|
|
} // namespace style
|
|
} // namespace mbgl
|