summaryrefslogtreecommitdiff
path: root/platform/node
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 /platform/node
parentba7427b4acf116aca7451ad3a6067dc234d3fa70 (diff)
downloadqtlocation-mapboxgl-586b22c0df99dec7e2089ba938cfbd8f96b3ce18.tar.gz
[core] Remove map coordinate setters/getters
Diffstat (limited to 'platform/node')
-rw-r--r--platform/node/src/node_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp
index a685c2a12e..068fc57a5c 100644
--- a/platform/node/src/node_map.cpp
+++ b/platform/node/src/node_map.cpp
@@ -942,7 +942,7 @@ void NodeMap::SetCenter(const Nan::FunctionCallbackInfo<v8::Value>& info) {
if (center->Length() > 1) { latitude = Nan::Get(center, 1).ToLocalChecked()->NumberValue(); }
try {
- nodeMap->map->setLatLng(mbgl::LatLng { latitude, longitude });
+ nodeMap->map->jumpTo(mbgl::CameraOptions().withCenter(mbgl::LatLng { latitude, longitude }));
} catch (const std::exception &ex) {
return Nan::ThrowError(ex.what());
}