summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-01 13:39:15 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-01 15:10:28 -0800
commit8afa14fa78e628007a983d00efa336674e499735 (patch)
tree8a003ea8f9e9739af53858af39feb68b367621ae /test
parent8a66b7047f899b781922986b63ecbe9039fcfafc (diff)
downloadqtlocation-mapboxgl-8afa14fa78e628007a983d00efa336674e499735.tar.gz
[core] Map::setSprite ⇢ Map::addAnnotationIcon
Fixes #3084
Diffstat (limited to 'test')
-rw-r--r--test/api/annotations.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/api/annotations.cpp b/test/api/annotations.cpp
index 7514fc2dcc..5c4e201fd7 100644
--- a/test/api/annotations.cpp
+++ b/test/api/annotations.cpp
@@ -52,7 +52,7 @@ TEST(Annotations, PointAnnotation) {
Map map(view, fileSource, MapMode::Still);
map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"), "");
- map.setSprite("default_marker", defaultMarker());
+ map.addAnnotationIcon("default_marker", defaultMarker());
map.addPointAnnotation(PointAnnotation({ 0, 0 }, "default_marker"));
checkRendering(map, "point_annotation");
@@ -117,7 +117,7 @@ TEST(Annotations, AddMultiple) {
Map map(view, fileSource, MapMode::Still);
map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"), "");
- map.setSprite("default_marker", defaultMarker());
+ map.addAnnotationIcon("default_marker", defaultMarker());
map.addPointAnnotation(PointAnnotation({ 0, -10 }, "default_marker"));
render(map);
@@ -154,7 +154,7 @@ TEST(Annotations, RemovePoint) {
Map map(view, fileSource, MapMode::Still);
map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"), "");
- map.setSprite("default_marker", defaultMarker());
+ map.addAnnotationIcon("default_marker", defaultMarker());
uint32_t point = map.addPointAnnotation(PointAnnotation({ 0, 0 }, "default_marker"));
render(map);
@@ -205,7 +205,7 @@ TEST(Annotations, SwitchStyle) {
Map map(view, fileSource, MapMode::Still);
map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"), "");
- map.setSprite("default_marker", defaultMarker());
+ map.addAnnotationIcon("default_marker", defaultMarker());
map.addPointAnnotation(PointAnnotation({ 0, 0 }, "default_marker"));
render(map);