diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-12 21:03:14 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-17 13:20:25 -0700 |
commit | 3e21e3887aa08ea32e4370b8c6e990d9f8c4333f (patch) | |
tree | adb36f1fb9f8642025ce7538d05a38cf6d10e465 /src/mbgl/style/style.cpp | |
parent | 0c9c52491233c05bd793426f1ebb05fdfbbbb4a5 (diff) | |
download | qtlocation-mapboxgl-3e21e3887aa08ea32e4370b8c6e990d9f8c4333f.tar.gz |
[core] Introduce StyleQueryParameters; push coordinate calculations into Source
Diffstat (limited to 'src/mbgl/style/style.cpp')
-rw-r--r-- | src/mbgl/style/style.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp index 07147e4a4a..726b1f192b 100644 --- a/src/mbgl/style/style.cpp +++ b/src/mbgl/style/style.cpp @@ -317,14 +317,10 @@ RenderData Style::getRenderData() const { return result; } -std::vector<Feature> Style::queryRenderedFeatures( - const std::vector<TileCoordinate>& queryGeometry, - const double zoom, - const double bearing, - const optional<std::vector<std::string>>& layerIDs) const { +std::vector<Feature> Style::queryRenderedFeatures(const StyleQueryParameters& parameters) const { std::vector<std::unordered_map<std::string, std::vector<Feature>>> sourceResults; for (const auto& source : sources) { - sourceResults.emplace_back(source->queryRenderedFeatures(queryGeometry, zoom, bearing, layerIDs)); + sourceResults.emplace_back(source->queryRenderedFeatures(parameters)); } std::vector<Feature> features; |