-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add raster layer gallery #16
Add raster layer gallery #16
Conversation
A raster layer gallery sounds nice, but should it be implemented as a registry and populated by plugins? |
Yeah definitely 👍🏽 Added it to the TODO list of the PR |
51c8b8f
to
4cde266
Compare
ad69338
to
d13e447
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.
Thanks @gjmooney and @martinRenou
As a general comment, I think that we should start to add doc string when we add functions, it's always a bit easier to review with context.
Otherwise I mostly have some questions about implementation details.
173b464
to
a92a688
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.
I guess this should be removed and not be commited?
I just have a tiny suggestion, then I believe this is looking good and we can merge! |
a92a688
to
f3dab84
Compare
833627b
to
4e8fb69
Compare
// The split is to get rid of the 'Layer' part of the name to match the names in the gallery | ||
setActiveLayers( | ||
Object.values(model.sharedModel.layers).map( | ||
layer => layer.name.split(' ')[0] |
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.
I believe we should not rely on the layer names for this, we may provide the ability to rename layers then the logic here is not reliable anymore.
We may keep the "Added!" transient while the dialog is open, but as soon at it's closed it does not remember which layers were already added?
Let's merge and iterate! Thanks Greg :) |
cc. @gjmooney
Add a raster layer gallery using xyzservices.
Common sense would want to create a server endpoint for accessing the gallery items, I'm not taking this approach otherwise it would not work in the case of jupyterlite.
Remaining for this PR: