summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-01 10:00:36 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-04 14:45:32 +0200
commit586b22c0df99dec7e2089ba938cfbd8f96b3ce18 (patch)
tree27b614da853bb7f1db0e0ea5f7eaa10534ca4f4e /test
parentba7427b4acf116aca7451ad3a6067dc234d3fa70 (diff)
downloadqtlocation-mapboxgl-586b22c0df99dec7e2089ba938cfbd8f96b3ce18.tar.gz
[core] Remove map coordinate setters/getters
Diffstat (limited to 'test')
-rw-r--r--test/map/map.test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp
index 1b64e48614..6d1650b82c 100644
--- a/test/map/map.test.cpp
+++ b/test/map/map.test.cpp
@@ -127,10 +127,10 @@ TEST(Map, LatLngBehavior) {
MapTest<> test;
test.map.jumpTo(CameraOptions().withCenter(LatLng { 1.0, 1.0 }).withZoom(0.0));
- auto latLng1 = test.map.getLatLng();
+ auto latLng1 = *test.map.getCameraOptions().center;
- test.map.setLatLng({ 1, 1 });
- auto latLng2 = test.map.getLatLng();
+ test.map.jumpTo(CameraOptions().withCenter(LatLng { 1.0, 1.0 }));
+ auto latLng2 = *test.map.getCameraOptions().center;
ASSERT_DOUBLE_EQ(latLng1.latitude(), latLng2.latitude());
ASSERT_DOUBLE_EQ(latLng1.longitude(), latLng2.longitude());