summaryrefslogtreecommitdiff
path: root/platform/node
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-02-28 12:27:12 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-03-04 14:45:32 +0200
commit73ac3c784fe755650dc631e2e722a47890981248 (patch)
treea31ef2c1473964af7641a5fc341b65fd840bf6a8 /platform/node
parent21a39306da56c5d2c88447ba5ea053a7f989480a (diff)
downloadqtlocation-mapboxgl-73ac3c784fe755650dc631e2e722a47890981248.tar.gz
[core] Remove map bearing 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 f1a29145cf..74201554dd 100644
--- a/platform/node/src/node_map.cpp
+++ b/platform/node/src/node_map.cpp
@@ -976,7 +976,7 @@ void NodeMap::SetBearing(const Nan::FunctionCallbackInfo<v8::Value>& info) {
}
try {
- nodeMap->map->setBearing(info[0]->NumberValue());
+ nodeMap->map->jumpTo(mbgl::CameraOptions().withAngle(info[0]->NumberValue()));
} catch (const std::exception &ex) {
return Nan::ThrowError(ex.what());
}