diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-05-10 16:09:02 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-06-05 19:38:08 -0700 |
commit | 1cf46d93b944095726396acf84649519e2fd96ad (patch) | |
tree | 40d9e15b9862e1c234dff14151a51c3573f85e80 /src/mbgl/style/layers/background_layer.cpp | |
parent | 591af0021bfb8b9fdfd803b55fb6c18a24c46943 (diff) | |
download | qtlocation-mapboxgl-1cf46d93b944095726396acf84649519e2fd96ad.tar.gz |
[core] Simplify LayerObserver API
Diffstat (limited to 'src/mbgl/style/layers/background_layer.cpp')
-rw-r--r-- | src/mbgl/style/layers/background_layer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/style/layers/background_layer.cpp b/src/mbgl/style/layers/background_layer.cpp index c4b22aa0e3..d4ead18816 100644 --- a/src/mbgl/style/layers/background_layer.cpp +++ b/src/mbgl/style/layers/background_layer.cpp @@ -44,7 +44,7 @@ void BackgroundLayer::setVisibility(VisibilityType value) { auto impl_ = mutableImpl(); impl_->visibility = value; baseImpl = std::move(impl_); - observer->onLayerVisibilityChanged(*this); + observer->onLayerChanged(*this); } // Zoom range @@ -80,7 +80,7 @@ void BackgroundLayer::setBackgroundColor(PropertyValue<Color> value) { auto impl_ = mutableImpl(); impl_->paint.template get<BackgroundColor>().value = value; baseImpl = std::move(impl_); - observer->onLayerPaintPropertyChanged(*this); + observer->onLayerChanged(*this); } void BackgroundLayer::setBackgroundColorTransition(const TransitionOptions& options) { @@ -107,7 +107,7 @@ void BackgroundLayer::setBackgroundPattern(PropertyValue<std::string> value) { auto impl_ = mutableImpl(); impl_->paint.template get<BackgroundPattern>().value = value; baseImpl = std::move(impl_); - observer->onLayerPaintPropertyChanged(*this); + observer->onLayerChanged(*this); } void BackgroundLayer::setBackgroundPatternTransition(const TransitionOptions& options) { @@ -134,7 +134,7 @@ void BackgroundLayer::setBackgroundOpacity(PropertyValue<float> value) { auto impl_ = mutableImpl(); impl_->paint.template get<BackgroundOpacity>().value = value; baseImpl = std::move(impl_); - observer->onLayerPaintPropertyChanged(*this); + observer->onLayerChanged(*this); } void BackgroundLayer::setBackgroundOpacityTransition(const TransitionOptions& options) { |