diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-07-19 15:22:17 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-07-19 15:22:17 -0700 |
commit | 1cf6b5de0c720d2550b4515daed7460f4b51506e (patch) | |
tree | 8e3ede72b5d5f8cb06e0bb98728db8fd417c94ab /test | |
parent | 1972d932d5a69f3a9cdf1e76d87d482bdc256373 (diff) | |
parent | 59f1b2b210318e204ebb2b7423ae5c0e8790dd3a (diff) | |
download | qtlocation-mapboxgl-1cf6b5de0c720d2550b4515daed7460f4b51506e.tar.gz |
Merge branch 'release-ios-v3.3.0'
Diffstat (limited to 'test')
-rw-r--r-- | test/api/annotations.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/api/annotations.cpp b/test/api/annotations.cpp index a1e67b29c4..e3f189c166 100644 --- a/test/api/annotations.cpp +++ b/test/api/annotations.cpp @@ -94,6 +94,21 @@ TEST(Annotations, OverlappingFillAnnotation) { test.checkRendering("overlapping_fill_annotation"); } +TEST(Annotations, OverlappingFillAnnotation) { + AnnotationTest test; + + Polygon<double> polygon = {{ {{ { 0, 0 }, { 0, 45 }, { 45, 45 }, { 45, 0 } }} }}; + FillAnnotation underlaidAnnotation { polygon }; + underlaidAnnotation.color = { { 0, 255, 0, 1 } }; + FillAnnotation overlaidAnnotation { polygon }; + overlaidAnnotation.color = { { 255, 0, 0, 1 } }; + + test.map.setStyleJSON(util::read_file("test/fixtures/api/empty.json")); + test.map.addAnnotation(underlaidAnnotation); + test.map.addAnnotation(overlaidAnnotation); + test.checkRendering("overlapping_fill_annotation"); +} + TEST(Annotations, StyleSourcedShapeAnnotation) { AnnotationTest test; |