diff options
author | Lucas Wojciechowski <lucas@mapbox.com> | 2018-02-27 10:42:15 -0800 |
---|---|---|
committer | Lucas Wojciechowski <lucas@mapbox.com> | 2018-02-27 10:42:15 -0800 |
commit | ac3fc7873f2bd2b63ca79d822dabd50849cb5e19 (patch) | |
tree | b0051bc8171878a96649dd73f7c39d93f8510d70 /src/mbgl/tile/custom_geometry_tile.cpp | |
parent | f1764dda6431d92748746d2757e19af891f79e7f (diff) | |
download | qtlocation-mapboxgl-ac3fc7873f2bd2b63ca79d822dabd50849cb5e19.tar.gz |
Ensure the map zoom is passed into filtering operations wherever applicable
Diffstat (limited to 'src/mbgl/tile/custom_geometry_tile.cpp')
-rw-r--r-- | src/mbgl/tile/custom_geometry_tile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/tile/custom_geometry_tile.cpp b/src/mbgl/tile/custom_geometry_tile.cpp index e431b3c355..a2fefcfa9f 100644 --- a/src/mbgl/tile/custom_geometry_tile.cpp +++ b/src/mbgl/tile/custom_geometry_tile.cpp @@ -79,7 +79,7 @@ void CustomGeometryTile::querySourceFeatures( auto feature = layer->getFeature(i); // Apply filter, if any - if (queryOptions.filter && !(*queryOptions.filter)(style::expression::EvaluationContext { feature.get() })) { + if (queryOptions.filter && !(*queryOptions.filter)(style::expression::EvaluationContext { static_cast<float>(id.overscaledZ), feature.get() })) { continue; } |