Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 01f5b6e

Browse files
committed
[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.
1 parent 030928c commit 01f5b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/node/src/node_map.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ NAN_METHOD(NodeMap::SetPaintProperty) {
598598
return Nan::ThrowTypeError(error->message);
599599
}
600600

601-
nodeMap->map->update(mbgl::Update::RecalculateStyle);
601+
nodeMap->map->update(mbgl::Update::RecalculateStyle | mbgl::Update::Classes);
602602
info.GetReturnValue().SetUndefined();
603603
}
604604

0 commit comments

Comments
 (0)