From 01f5b6e58d01207328f58ed8c659378945761bd1 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Thu, 7 Jul 2016 21:12:54 +0300 Subject: [PATCH] [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. --- platform/node/src/node_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp index 512f541ee..24a1215ea 100644 --- a/platform/node/src/node_map.cpp +++ b/platform/node/src/node_map.cpp @@ -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(); }