diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-29 18:28:34 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-03 17:25:49 -0700 |
commit | c8391729c7af8edc142f0319ccffe2720cfb6c18 (patch) | |
tree | 7159629cb4f8c9b86ba39dd8c79b87e8f5cb432d /src/mbgl/geometry/feature_index.hpp | |
parent | 01b3eac52f810b61dc2d5f0ea7a2bfa229daa01f (diff) | |
download | qtlocation-mapboxgl-c8391729c7af8edc142f0319ccffe2720cfb6c18.tar.gz |
[core] Use geometry.hpp feature type
Diffstat (limited to 'src/mbgl/geometry/feature_index.hpp')
-rw-r--r-- | src/mbgl/geometry/feature_index.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/geometry/feature_index.hpp b/src/mbgl/geometry/feature_index.hpp index 0b520a841a..5d78df2138 100644 --- a/src/mbgl/geometry/feature_index.hpp +++ b/src/mbgl/geometry/feature_index.hpp @@ -3,6 +3,7 @@ #include <mbgl/tile/geometry_tile.hpp> #include <mbgl/util/grid_index.hpp> +#include <mbgl/util/feature.hpp> #include <vector> #include <string> @@ -29,7 +30,7 @@ class FeatureIndex { void insert(const GeometryCollection&, std::size_t index, const std::string& sourceLayerName, const std::string& bucketName); void query( - std::unordered_map<std::string, std::vector<std::string>>& result, + std::unordered_map<std::string, std::vector<Feature>>& result, const GeometryCollection& queryGeometry, const float bearing, const double tileSize, @@ -52,7 +53,7 @@ class FeatureIndex { private: void addFeature( - std::unordered_map<std::string, std::vector<std::string>>& result, + std::unordered_map<std::string, std::vector<Feature>>& result, const IndexedSubfeature &indexedFeature, const GeometryCollection& queryGeometry, const optional<std::vector<std::string>>& filterLayerIDs, |