[core] Remove map bearing setters/getters

This commit is contained in:
Bruno de Oliveira Abinader
2019-02-28 12:27:12 +02:00
parent 21a39306da
commit 73ac3c784f
9 changed files with 50 additions and 59 deletions

View File

@@ -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());
}