diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-01 10:00:36 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-04 14:45:32 +0200 |
commit | 586b22c0df99dec7e2089ba938cfbd8f96b3ce18 (patch) | |
tree | 27b614da853bb7f1db0e0ea5f7eaa10534ca4f4e /platform/node | |
parent | ba7427b4acf116aca7451ad3a6067dc234d3fa70 (diff) | |
download | qtlocation-mapboxgl-586b22c0df99dec7e2089ba938cfbd8f96b3ce18.tar.gz |
[core] Remove map coordinate setters/getters
Diffstat (limited to 'platform/node')
-rw-r--r-- | platform/node/src/node_map.cpp | 2 |
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()); } |