make more members of StyleLayer const
This commit is contained in:
13
src/style/style_layer.cpp
Normal file
13
src/style/style_layer.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <llmr/style/style_layer.hpp>
|
||||
|
||||
namespace llmr {
|
||||
|
||||
StyleLayer::StyleLayer(const std::string &id, std::map<ClassID, ClassProperties> &&styles,
|
||||
std::unique_ptr<const RasterizeProperties> &&rasterize)
|
||||
: id(id), styles(std::move(styles)), rasterize(std::move(rasterize)) {}
|
||||
|
||||
bool StyleLayer::isBackground() const {
|
||||
return id == "background";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user