-
Notifications
You must be signed in to change notification settings - Fork 106
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
Show load status of layers in tree panel #358
Conversation
Does this PR replace #357? |
I thought Github would handle dependent PRs transparently. This builds on top of #357 removing the event handlers but actually adds a "feature". It's probably not that much of a deal so maybe reviewing only this branch is enough. |
Once #357 is in, this simply would need a rebase. |
Could you point out the direction at which point the parameter has to be set? Besides, this is a very nice addition in my opinion, and the current code looks ok so far. |
You mean when the
So among others
It's working but it's not visible (:trollface:) as tree-legend has the following CSS.
Sorry for the misleading description that wasn't my intention, it's really just visible in the plain tree example.
I wonder where to put the option. LayerNode is really just used indirectly by LayerLoader but it may also be nice to centralize such things as properties of the LayerTreeModel. |
Thanks for clarification! I still think that we need a property to enable this behaviour. |
Sure, I see the benefit in making it configurable. I tried the following:
It works quite well as it is kind of dynamic, but of course there is the edge case of a loading process taking 201ms. It would be possible to have something like |
I revisited this and made some changes:
Unfortunately, the pre selected base layer of the demo won't load anymore (doesn't load in the online examples as well). Don't know if you have any alternative services for that (maybe related: #372)? |
This is a follow up to PR #357.
The 'loading' attribute is implicitly inherited by the NodeInterface that will be mixed into LayerTreeModel when added to a tree panel. Setting it to true will cause the node to show it's actual status in the tree panel temporarily replacing the layer icon with the Ext provided load spinner. It can be observed in the tree examples.