Rename EvaluationContext::heatmapDensity to colorRampParameter
More generic name as the same class member is to be used by the linear gradient properties.
This commit is contained in:
committed by
Bruno de Oliveira Abinader
parent
1dabfe783d
commit
0ec4a84c31
@@ -30,13 +30,13 @@ public:
|
||||
EvaluationContext(float zoom_, GeometryTileFeature const * feature_) :
|
||||
zoom(zoom_), feature(feature_)
|
||||
{}
|
||||
EvaluationContext(optional<float> zoom_, GeometryTileFeature const * feature_, optional<double> heatmapDensity_) :
|
||||
zoom(std::move(zoom_)), feature(feature_), heatmapDensity(std::move(heatmapDensity_))
|
||||
EvaluationContext(optional<float> zoom_, GeometryTileFeature const * feature_, optional<double> colorRampParameter_) :
|
||||
zoom(std::move(zoom_)), feature(feature_), colorRampParameter(std::move(colorRampParameter_))
|
||||
{}
|
||||
|
||||
optional<float> zoom;
|
||||
GeometryTileFeature const * feature;
|
||||
optional<double> heatmapDensity;
|
||||
optional<double> colorRampParameter;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
@@ -151,7 +151,7 @@ public:
|
||||
Kind getKind() const { return kind; };
|
||||
type::Type getType() const { return type; };
|
||||
|
||||
EvaluationResult evaluate(optional<float> zoom, const Feature& feature, optional<double> heatmapDensity) const;
|
||||
EvaluationResult evaluate(optional<float> zoom, const Feature& feature, optional<double> colorRampParameter) const;
|
||||
|
||||
/**
|
||||
* Statically analyze the expression, attempting to enumerate possible outputs. Returns
|
||||
|
||||
Reference in New Issue
Block a user