-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use more complex logic for layer/group ordering #88
Conversation
Create a simplified, one-level deep, representation of the QGIS project structure and then use this to determine the desired ordering of the Felt project. Always specify ordering keys for layers and groups.
c365fbf
to
674066d
Compare
@ChrisLoer ready for testing 😄 |
Thanks! Uh, we found another bug on our side which I'm still investigating. But as a small thing, I notice that XYZ tiles aren't getting an ordering attached to them, maybe because they don't have styling? |
Ugh OK so it's a timing issue on our side we need to fix, but there's a workaround I just tested in a slightly hacked version of the plugin. The problem is that the ordering key on the layer group is getting overwritten by one of its child layers. The workaround is just to do a second call to Up to you whether you'd rather do the workaround and be done with it or wait for us to get a fix in (which hopefully shouldn't take too long). |
Ok, that's fixed now! (Also fixed xyz in a group not correctly being attached to that group) |
The XYZ ordering is working now, but the group ordering still isn't working -- I looked at your commit and it looks like you're calling the layer order update after all the initial creation is done, but it's the layer group order update that needs to happen a second time. Here's the code I used when I hacked it in (I also had to make changes to
Of course the name "create_layer_groups" isn't really the best name the second time -- when you pass in an ID, you're updating instead of creating. |
@ChrisLoer Ok, ready for another round of testing! |
That's the stuff! Working correctly now, thanks for your patience working through these last bits. |
Create a simplified, one-level deep, representation of the QGIS project structure and then use this to determine the desired ordering of the Felt project. Always specify ordering keys for layers and groups.