void LineLayer::setLineOpacity(DataDrivenPropertyValue<float> value) { if (value == getLineOpacity()) return; auto impl_ = mutableImpl(); impl_->paint.template get<LineOpacity>().value = value; baseImpl = std::move(impl_); observer->onLayerChanged(*this); }
void LineLayer::setLineOpacity(PropertyValue<float> value, const optional<std::string>& klass) { if (value == getLineOpacity(klass)) return; impl->paint.lineOpacity.set(value, klass); impl->observer->onLayerPaintPropertyChanged(*this); }