summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/line_layer_impl.cpp
blob: bee88d6a474dde94594c369d68df2127603502f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <mbgl/style/layers/line_layer_impl.hpp>

namespace mbgl {
namespace style {

bool LineLayer::Impl::hasLayoutDifference(const Layer::Impl& other) const {
    assert(dynamic_cast<const LineLayer::Impl*>(&other));
    const auto& impl = static_cast<const style::LineLayer::Impl&>(other);
    return filter     != impl.filter ||
           visibility != impl.visibility ||
           layout     != impl.layout ||
           paint.hasDataDrivenPropertyDifference(impl.paint);
}

} // namespace style
} // namespace mbgl