Skip to content
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

Vector tile layer opacity and visible #1210

Merged

Conversation

lopezvoliver
Copy link
Contributor

This PR adds the missing visible and opacity traits/attributes in vector tile layers, so now it's possible to control the opacity and visibility of these layers using custom widgets.

Here's how it looks like using a custom widget with a checkbox (linked to visible) and a slider (linked to opacity):

ipyleaflet_opacity_visible

This solves the downstream leafmap issue associated with its custom layer control toolbar:

leafmap_opacity_visible

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@martinRenou
Copy link
Member

I believe the failures are unrelated..

@martinRenou martinRenou merged commit 8eabac3 into jupyter-widgets:master Jun 26, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants