Repository navigation
Move class handling to Style - #6207
Conversation
|
@brunoabinader, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh, @1ec5 and @incanus to be potential reviewers. |
|
Tagging @tmpsantos for reviewing the Qt changes 👍 |
de2055e to
84d9abf
Compare
|
@brunoabinader Sorry for the flip-flop, but after reviewing how style batch updates happen in GL JS and will need to happen in native for #5701, I think you had the right idea moving classes to 👍 on |
|
Reviewed offline. |
84d9abf to
06a615e
Compare
|
@jfirebaugh rewrote the PR, keeping class handling in Style and applying the transition options changes. @tmpsantos we can forward the QML style property behavior changes to the upcoming QML style layer PR. |
There was a problem hiding this comment.
Can you just do EXPECT_EQ(map.getTransitionOptions().duration, duration) here? Ditto line 260.
There was a problem hiding this comment.
Yes and no - with the current implementation I get invalid operands to binary expression ('const std::experimental::fundamentals_v1::optional<std::__1::chrono::duration<long long, std::__1::ratio<1, 1000000000> > >' and 'const std::__1::chrono::duration<long long, std::__1::ratio<1, 1000> >') - but if I encapsulate duration inside mbgl::Duration then it works fine 👍 Thanks!
|
LGTM, modulo the nit in the test code and the CI failures. |
Now the style class transition options have its own getter/setter, which persists for each style until a new style is set.
06a615e to
2619db1
Compare
2619db1 to
fdaf26b
Compare
Fixes #6118.
mbgl::Stylestate changes.mbgl::setClassTransitionto cleanup class API.classesproperty now belongs toQQuickMapboxGL(map) instead ofQQuickMapboxGLStyle(style)