summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2020-02-20 16:29:58 +0200
committerzmiao <miao.zhao@mapbox.com>2020-02-21 21:39:48 +0200
commit7cdb526dcc8b1fd2d3cb203fb5c382cbd3611a31 (patch)
treea2569caf30ef3e0447995c1d8eae6b21983f7f71 /include/mbgl
parent385fcd52a0285dcd6008b823d4be303a4c864046 (diff)
downloadqtlocation-mapboxgl-7cdb526dcc8b1fd2d3cb203fb5c382cbd3611a31.tar.gz
[core] Add bounding box overlapping check before line within polygon test
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/style/expression/within.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mbgl/style/expression/within.hpp b/include/mbgl/style/expression/within.hpp
index 37e27f4940..2bc59a0596 100644
--- a/include/mbgl/style/expression/within.hpp
+++ b/include/mbgl/style/expression/within.hpp
@@ -2,6 +2,7 @@
#include <mbgl/style/expression/expression.hpp>
#include <mbgl/util/geojson.hpp>
+#include <mbgl/util/geometry_within.hpp>
#include <mbgl/util/optional.hpp>
namespace mbgl {
@@ -10,7 +11,7 @@ namespace expression {
class Within final : public Expression {
public:
- explicit Within(GeoJSON geojson, Feature::geometry_type geometries_);
+ explicit Within(GeoJSON geojson, Feature::geometry_type geometries_, WithinBBox polygonBBox_);
~Within() override;
@@ -30,6 +31,7 @@ public:
private:
GeoJSON geoJSONSource;
Feature::geometry_type geometries;
+ WithinBBox polygonBBox;
};
} // namespace expression