summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/api/annotations.test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/api/annotations.test.cpp b/test/api/annotations.test.cpp
index dbe538024f..dc4b00170a 100644
--- a/test/api/annotations.test.cpp
+++ b/test/api/annotations.test.cpp
@@ -43,9 +43,19 @@ TEST(Annotations, SymbolAnnotation) {
test.map.addAnnotation(SymbolAnnotation { Point<double>(0, 0), "default_marker" });
test.checkRendering("point_annotation");
+ auto size = test.view.getSize();
+ auto screenBox = ScreenBox { {}, { double(size[0]), double(size[1]) } };
+ auto features = test.map.queryPointAnnotations(screenBox);
+ EXPECT_EQ(features.size(), 1u);
+
+ test.map.setZoom(test.map.getMaxZoom());
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/5419
//test.map.setZoom(test.map.getMaxZoom());
//test.checkRendering("point_annotation");
+ test::render(test.map);
+
+ features = test.map.queryPointAnnotations(screenBox);
+ EXPECT_EQ(features.size(), 1u);
}
TEST(Annotations, LineAnnotation) {