[node] Also Update::Classes when setting a paint property

Otherwise it has no effect. Tests might be working because a
Update::Classes is also scheduled when adding a new layer.
This commit is contained in:
Thiago Marcos P. Santos
2016-07-07 21:12:54 +03:00
parent 030928c0b8
commit 01f5b6e58d

View File

@@ -598,7 +598,7 @@ NAN_METHOD(NodeMap::SetPaintProperty) {
return Nan::ThrowTypeError(error->message);
}
nodeMap->map->update(mbgl::Update::RecalculateStyle);
nodeMap->map->update(mbgl::Update::RecalculateStyle | mbgl::Update::Classes);
info.GetReturnValue().SetUndefined();
}