diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/map/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index e9d4d9e247..5cf9df7f56 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -800,7 +800,7 @@ void Map::removeAnnotation(AnnotationID annotation) { std::vector<Feature> Map::queryRenderedFeatures(const ScreenCoordinate& point, const optional<std::vector<std::string>>& layerIDs) { if (!impl->style) return {}; - return impl->style->queryRenderedFeatures({ + return impl->style->queryRenderedFeatures(QueryParameters{ { point }, impl->transform.getState(), layerIDs @@ -810,7 +810,7 @@ std::vector<Feature> Map::queryRenderedFeatures(const ScreenCoordinate& point, c std::vector<Feature> Map::queryRenderedFeatures(const ScreenBox& box, const optional<std::vector<std::string>>& layerIDs) { if (!impl->style) return {}; - return impl->style->queryRenderedFeatures({ + return impl->style->queryRenderedFeatures(QueryParameters{ { box.min, { box.max.x, box.min.y }, |