diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-03-18 16:46:24 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-03-24 20:53:55 +0200 |
commit | 280b80677797ceda07ddf75f567dd3613f285319 (patch) | |
tree | ef1eef74a7c17677fdff50dbf4bbbb8452b5ce0f /src/mbgl/style/layers/fill_extrusion_layer.cpp | |
parent | 99dbb3eed50f1b89d23604916cee6de965e1f4cb (diff) | |
download | qtlocation-mapboxgl-280b80677797ceda07ddf75f567dd3613f285319.tar.gz |
[core] Move generic setProperty() parts to the base Layer class
Diffstat (limited to 'src/mbgl/style/layers/fill_extrusion_layer.cpp')
-rw-r--r-- | src/mbgl/style/layers/fill_extrusion_layer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mbgl/style/layers/fill_extrusion_layer.cpp b/src/mbgl/style/layers/fill_extrusion_layer.cpp index c9819f66f1..b9f4e4fa6d 100644 --- a/src/mbgl/style/layers/fill_extrusion_layer.cpp +++ b/src/mbgl/style/layers/fill_extrusion_layer.cpp @@ -386,12 +386,9 @@ Value FillExtrusionLayer::serialize() const { return result; } -optional<Error> FillExtrusionLayer::setProperty(const std::string& name, const Convertible& value) { +optional<Error> FillExtrusionLayer::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); |