-
Notifications
You must be signed in to change notification settings - Fork 13
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
Visualisation of local changes #397
Conversation
Requires MerginMaps/python-api-client#134 |
@wonder-sk I'm not happy with the current workaround for removing memory layers and updating project. But unfortunately, I can't find other way of doing it. |
a6544b6
to
be050c1
Compare
Would it be possible to have also processing alg too take 2 geopackage files and show the differences (think of resolving conflict files)? |
be050c1
to
3b114d8
Compare
Yes, we can implement something like this. Should this tool create diffs for all layers in the GeoPackage or user should select specific layer to process? |
@wonder-sk all comments should be addressed now. May I ask you to take a look when you have time? |
fix reference to the base file
Clicking on this button will create diff layers for all vector of the Mergin project and close status dialog so user can explore diff layers
not included in the project
canvas and atribute table
button with the dropdown menu - increase symbology size/width to make changes more visible - show project layers by default - drop toolbar button and restore context menu action
628b5a8
to
efd77b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff 🎉 ... I am happy with it
Add an action "Show local changes" to the layer context menu toolbar button to open a "Diff viewer" dialog where one can examine local changes made in the project
If there are no changes in the project, a message bar will be shown, telling that there are no changes which can be visualised.
The "Changes Viewerer" dialog provides a tab-based UI, where each tab represents a local layer with changes. Changes in the layer will be shown on canvas and in the table form (splitted with a splitter).
Toolbar buttons allow user:
All changes layers have styling applied and conditional formatting of the attribute table, to make it easier to see which values/features were updated/deleted/inserted.
A new button "View Changes" were added to the Sync Project dialog. Clicking on that button will close Sync Project dialog and open Changes Viewer.
Also add two new Processing tools: one for generating layer containing local changes and another one for generating layer containing changes between two versions of the layer.