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

Read alpha as the fillOpacity property #32

Merged
merged 1 commit into from Dec 14, 2015
Merged

Conversation

ocefpaf
Copy link
Collaborator

@ocefpaf ocefpaf commented Nov 24, 2015

I am not sure if this is the best way to implement it because matplotlib's alpha is defined only once, while in leaflet we have opacity for the stroke opacity and fillOpacity for the patch opacity.

However, I believe we need to override leaflet's default fillOpacity, which is only 0.2, to fix visualizations like this one:

http://nbviewer.ipython.org/github/rsignell-usgs/mwra-wq/blob/master/notebooks/wq_test.ipynb

@ocefpaf ocefpaf mentioned this pull request Nov 24, 2015
@rsignell-usgs
Copy link

👍

jwass added a commit that referenced this pull request Dec 14, 2015
Read alpha as the `fillOpacity` property
@jwass jwass merged commit 2bb98ae into jwass:master Dec 14, 2015
@jwass
Copy link
Owner

jwass commented Dec 14, 2015

@ocefpaf Nice. Thanks. Makes sense - setting only the edge opacity was definitely a bug.

@ocefpaf ocefpaf deleted the fillOpacity branch December 14, 2015 16:27
@ocefpaf
Copy link
Collaborator Author

ocefpaf commented Dec 14, 2015

Thanks!

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.

None yet

3 participants