summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/source/source.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/source/source.cpp b/src/mbgl/source/source.cpp
index 51596b8c01..1ef818a0aa 100644
--- a/src/mbgl/source/source.cpp
+++ b/src/mbgl/source/source.cpp
@@ -350,10 +350,10 @@ std::unordered_map<std::string, std::vector<Feature>> Source::queryRenderedFeatu
std::unordered_map<std::string, std::vector<Feature>> result;
for (const auto& tilePtr : tiles) {
- const auto& tile = tilePtr.second;
+ const Tile& tile = tilePtr.second;
- auto tileSpaceBoundsMin = coordinateToTilePoint(tile.id, box.min);
- auto tileSpaceBoundsMax = coordinateToTilePoint(tile.id, box.max);
+ Point<int16_t> tileSpaceBoundsMin = coordinateToTilePoint(tile.id, box.min);
+ Point<int16_t> tileSpaceBoundsMax = coordinateToTilePoint(tile.id, box.max);
if (tileSpaceBoundsMin.x >= util::EXTENT || tileSpaceBoundsMin.y >= util::EXTENT ||
tileSpaceBoundsMax.x < 0 || tileSpaceBoundsMax.y < 0) continue;