Indroduce clusterProperty option for aggregation (#15287)

* indroduce clusterProperty option for aggregation

* remove unnecessary codes

* update geojson_option conversion

* fix reviewing findings
This commit is contained in:
zmiao
2019-08-16 15:03:48 +03:00
committed by GitHub
parent 9f8696c00c
commit 0f34eb7b25
16 changed files with 205 additions and 51 deletions

View File

@@ -25,13 +25,17 @@ public:
return optional<mbgl::Value>();
}
};
EvaluationResult Expression::evaluate(optional<float> zoom, const Feature& feature, optional<double> colorRampParameter) const {
GeoJSONFeature f(feature);
return this->evaluate(EvaluationContext(zoom, &f, colorRampParameter));
}
EvaluationResult Expression::evaluate(optional<mbgl::Value> accumulated, const Feature& feature) const {
GeoJSONFeature f(feature);
return this->evaluate(EvaluationContext(accumulated, &f));
}
} // namespace expression
} // namespace style
} // namespace mbgl