[core, ios, macos, android, node] Heatmap layer (#11046)
Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1fdec7a5c1
commit
82de856c94
15
src/mbgl/style/layers/heatmap_layer_impl.cpp
Normal file
15
src/mbgl/style/layers/heatmap_layer_impl.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <mbgl/style/layers/heatmap_layer_impl.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace style {
|
||||
|
||||
bool HeatmapLayer::Impl::hasLayoutDifference(const Layer::Impl& other) const {
|
||||
assert(dynamic_cast<const HeatmapLayer::Impl*>(&other));
|
||||
const auto& impl = static_cast<const style::HeatmapLayer::Impl&>(other);
|
||||
return filter != impl.filter ||
|
||||
visibility != impl.visibility ||
|
||||
paint.hasDataDrivenPropertyDifference(impl.paint);
|
||||
}
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user