diff options
Diffstat (limited to 'include/mbgl/style/expression/expression.hpp')
-rw-r--r-- | include/mbgl/style/expression/expression.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/mbgl/style/expression/expression.hpp b/include/mbgl/style/expression/expression.hpp index d868b17e00..6276b8dc93 100644 --- a/include/mbgl/style/expression/expression.hpp +++ b/include/mbgl/style/expression/expression.hpp @@ -35,15 +35,16 @@ public: zoom(std::move(zoom_)), feature(feature_), colorRampParameter(std::move(colorRampParameter_)) {} - EvaluationContext& withFormattedSection(const Value* formattedSection_) noexcept { - formattedSection = formattedSection_; + EvaluationContext& withFormattedSectionID(const Value* formattedSectionID_) noexcept { + formattedSectionID = formattedSectionID_; return *this; }; optional<float> zoom; GeometryTileFeature const * feature = nullptr; optional<double> colorRampParameter; - const Value* formattedSection = nullptr; + // Contains formatted section ID (double | std::string) + const Value* formattedSectionID = nullptr; }; template <typename T> |