[core] Remove map pitch setters/getters

This commit is contained in:
Bruno de Oliveira Abinader
2019-02-27 19:58:35 +02:00
parent f5f10ec119
commit 21a39306da
7 changed files with 20 additions and 34 deletions

View File

@@ -993,7 +993,7 @@ void NodeMap::SetPitch(const Nan::FunctionCallbackInfo<v8::Value>& info) {
}
try {
nodeMap->map->setPitch(info[0]->NumberValue());
nodeMap->map->jumpTo(mbgl::CameraOptions().withPitch(info[0]->NumberValue()));
} catch (const std::exception &ex) {
return Nan::ThrowError(ex.what());
}