diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-07 21:12:54 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-07-08 16:27:16 +0300 |
commit | 01f5b6e58d01207328f58ed8c659378945761bd1 (patch) | |
tree | 67476c41e615c22cecf55962dac696bfc5d147d0 /platform/node | |
parent | 030928c0b8d9ebaa8752a21afd1593d458a2254b (diff) | |
download | qtlocation-mapboxgl-01f5b6e58d01207328f58ed8c659378945761bd1.tar.gz |
[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.
Diffstat (limited to 'platform/node')
-rw-r--r-- | platform/node/src/node_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp index 512f541ee9..24a1215ea8 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(); } |