blob: 56f66d17892f70f1709b86b0906d92152cfdc85b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <mbgl/style/layer_impl.hpp>
namespace mbgl {
namespace style {
const std::string& Layer::Impl::bucketName() const {
return ref.empty() ? id : ref;
}
bool Layer::Impl::hasRenderPass(RenderPass pass) const {
return bool(passes & pass);
}
bool Layer::Impl::needsRendering(float zoom) const {
return passes != RenderPass::None
&& visibility != VisibilityType::None
&& minZoom <= zoom
&& maxZoom >= zoom;
}
} // namespace style
} // namespace mbgl
|