Fix annotations=true handling in NodeJS bindings
This commit is contained in:
parent
67b80e6536
commit
567be2e6a5
@ -439,7 +439,7 @@ class RouteAPI : public BaseAPI
|
|||||||
{
|
{
|
||||||
// AnnotationsType uses bit flags, & operator checks if a property is set
|
// AnnotationsType uses bit flags, & operator checks if a property is set
|
||||||
flatbuffers::Offset<flatbuffers::Vector<float>> speed;
|
flatbuffers::Offset<flatbuffers::Vector<float>> speed;
|
||||||
if (parameters.annotations_type & RouteParameters::AnnotationsType::Speed)
|
if (requested_annotations & RouteParameters::AnnotationsType::Speed)
|
||||||
{
|
{
|
||||||
double prev_speed = 0;
|
double prev_speed = 0;
|
||||||
speed =
|
speed =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user