Fix annotations=true handling in NodeJS bindings
This commit is contained in:
parent
94f0d53752
commit
c7bf2a5dd5
@ -800,8 +800,8 @@ inline bool parseCommonParameters(const v8::Local<v8::Object> &obj, ParamType &p
|
||||
{
|
||||
params->annotations = Nan::To<bool>(annotations).FromJust();
|
||||
params->annotations_type = params->annotations
|
||||
? osrm::RouteParameters::AnnotationsType::All
|
||||
: osrm::RouteParameters::AnnotationsType::None;
|
||||
? osrm::RouteParameters::AnnotationsType::All
|
||||
: osrm::RouteParameters::AnnotationsType::None;
|
||||
}
|
||||
else if (annotations->IsArray())
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user