summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/paint_property_binder.hpp
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2020-02-03 16:53:15 +0200
committerzmiao <miao.zhao@mapbox.com>2020-02-12 12:24:05 +0200
commit1bd2ccf2398004b02b479e6ad3144f52e7631b2a (patch)
tree52d62b6ec5d7beb34c76122059ad00359bb23b3c /src/mbgl/renderer/paint_property_binder.hpp
parent3e99c08ea610d791b21f1631308451687c464d98 (diff)
downloadqtlocation-mapboxgl-1bd2ccf2398004b02b479e6ad3144f52e7631b2a.tar.gz
Enable within expression with Filter
add canonical as pointer fix review findings
Diffstat (limited to 'src/mbgl/renderer/paint_property_binder.hpp')
-rw-r--r--src/mbgl/renderer/paint_property_binder.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/renderer/paint_property_binder.hpp b/src/mbgl/renderer/paint_property_binder.hpp
index 3a9dceacc0..61544be82d 100644
--- a/src/mbgl/renderer/paint_property_binder.hpp
+++ b/src/mbgl/renderer/paint_property_binder.hpp
@@ -227,7 +227,7 @@ public:
const style::expression::Value& formattedSection) override {
using style::expression::EvaluationContext;
auto evaluated = expression.evaluate(
- EvaluationContext(&feature).withFormattedSection(&formattedSection).withCanonicalTileID(canonical),
+ EvaluationContext(&feature).withFormattedSection(&formattedSection).withCanonicalTileID(&canonical),
defaultValue);
this->statistics.add(evaluated);
auto value = attributeValue(evaluated);
@@ -330,11 +330,11 @@ public:
Range<T> range = {
expression.evaluate(EvaluationContext(zoomRange.min, &feature)
.withFormattedSection(&formattedSection)
- .withCanonicalTileID(canonical),
+ .withCanonicalTileID(&canonical),
defaultValue),
expression.evaluate(EvaluationContext(zoomRange.max, &feature)
.withFormattedSection(&formattedSection)
- .withCanonicalTileID(canonical),
+ .withCanonicalTileID(&canonical),
defaultValue),
};
this->statistics.add(range.min);