-
Notifications
You must be signed in to change notification settings - Fork 245
Fix selection color applied to point labels #1184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This actually breaks the unique selection color that each label would be given. After some debugging I think I found where the issue lives. Several things that makes this bug appear:
std::vector<Tangram::SceneUpdate> updates = {
{"layers.mz_current_location_gem.draw.ux-location-gem-overlay.interactive", "true"},
};
map->loadSceneAsync("https://raw.githubusercontent.com/tangrams/bubble-wrap/gh-pages/bubble-wrap.yaml",
true, nullptr, nullptr, updates);cc @ecgreb on that to confirm the value of the
I guess we would need to have a separate vector in |
|
@blair1618 pushed a hot fix on this branch https://github.com/tangrams/tangram-es/tree/hot-fix-1167. |
|
@karimnaaji ah right! missing these interactive labels. We could add only the labels with selection color to m_selectionLabels instead of collecting all. |
|
@hjanetzek , right maintaining that set from |
|
Ah good catch, I forgot that each label needs it's own selection identifier and it can't just use the same one as the feature. I'll test that fix you pushed. |
|
@karimnaaji I see what you are mentioning.
|
|
In the version of the stylesheet I was using at the time current location gem was marked interactive. However after this commit was merged that is now no longer the case. But yes I did verify the layer was interactive when reproducing the issue. And I agree the current location gem should NOT be interactive moving forward I was just using it for the test case. |
|
Yes, bubble-wrap was very recently revised to reduce the interactive layers. Closing in favor of #1185 |
|
Some apps allow interactivity, we can modify our behavior to indicate say "current location" or "my location" on tap of the gem.
… On Dec 16, 2016, at 08:10, Matt Blair ***@***.***> wrote:
Yes, bubble-wrap was very recently revised to reduce the interactive layers.
Closing in favor of #1185
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Resolves #1167
This solves the observed problem, but I'm not sure that this is the intended data flow :\