diff options
Diffstat (limited to 'src/mbgl/style/layers/heatmap_layer.cpp')
-rw-r--r-- | src/mbgl/style/layers/heatmap_layer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mbgl/style/layers/heatmap_layer.cpp b/src/mbgl/style/layers/heatmap_layer.cpp index bfac173d63..54add7203f 100644 --- a/src/mbgl/style/layers/heatmap_layer.cpp +++ b/src/mbgl/style/layers/heatmap_layer.cpp @@ -283,12 +283,9 @@ Value HeatmapLayer::serialize() const { return result; } -optional<Error> HeatmapLayer::setProperty(const std::string& name, const Convertible& value) { +optional<Error> HeatmapLayer::setPropertyInternal(const std::string& name, const Convertible& value) { const auto it = layerProperties.find(name.c_str()); - if (it == layerProperties.end()) { - if (name == "visibility") return setVisibility(value); - return Error{"layer doesn't support this property"}; - } + if (it == layerProperties.end()) return Error{"layer doesn't support this property"}; auto property = static_cast<Property>(it->second); |