From 7cdb526dcc8b1fd2d3cb203fb5c382cbd3611a31 Mon Sep 17 00:00:00 2001 From: zmiao Date: Thu, 20 Feb 2020 16:29:58 +0200 Subject: [core] Add bounding box overlapping check before line within polygon test --- include/mbgl/style/expression/within.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/mbgl') 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 #include +#include #include 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 -- cgit v1.2.1