diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-01 13:39:15 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-01 15:10:28 -0800 |
commit | 8afa14fa78e628007a983d00efa336674e499735 (patch) | |
tree | 8a003ea8f9e9739af53858af39feb68b367621ae /test | |
parent | 8a66b7047f899b781922986b63ecbe9039fcfafc (diff) | |
download | qtlocation-mapboxgl-8afa14fa78e628007a983d00efa336674e499735.tar.gz |
[core] Map::setSprite ⇢ Map::addAnnotationIcon
Fixes #3084
Diffstat (limited to 'test')
-rw-r--r-- | test/api/annotations.cpp | 8 |
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); |