From e147887e357f537a5c625fd3edda7b13d64142b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Fri, 12 Aug 2016 15:45:18 -0700 Subject: [core, android, ios, macos] Replaced getPointAnnotationsInBounds() w/ queryPointAnnotations() (#5165) queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view. Fixes #5151. --- include/mbgl/map/map.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/mbgl/map') diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 0e0c04ff0f..fac110e2a8 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -148,8 +148,6 @@ public: void updateAnnotation(AnnotationID, const Annotation&); void removeAnnotation(AnnotationID); - AnnotationIDs getPointAnnotationsInBounds(const LatLngBounds&); - // Sources style::Source* getSource(const std::string& sourceID); void addSource(std::unique_ptr); @@ -163,6 +161,7 @@ public: // Feature queries std::vector queryRenderedFeatures(const ScreenCoordinate&, const optional>& layerIDs = {}); std::vector queryRenderedFeatures(const ScreenBox&, const optional>& layerIDs = {}); + AnnotationIDs queryPointAnnotations(const ScreenBox&); // Memory void setSourceTileCacheSize(size_t); -- cgit v1.2.1