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

Modify opacity of background map #60

Open
juanmed opened this issue Dec 26, 2018 · 0 comments
Open

Modify opacity of background map #60

juanmed opened this issue Dec 26, 2018 · 0 comments

Comments

@juanmed
Copy link

juanmed commented Dec 26, 2018

I am using mplleaflet to display an scatter of points in a map. Is there any method to decrease the opacity level of the background map? So far I have achieved it manually by modifying the leaflet.css file line 137 "opacity: 1;" to the value I want, 0.5 for example. However I need to create a huge number of maps so setting it manually is not practical.

I also tried passing the alpha argument when creating the axes on the mpl figure, but does not work. The alpha value for each point I draw does work. But I want to modify the opacity for the base map, not the points I am drawing.
I also tried modifying the CSSLink directing to the leaflet.css file. I made my own copy of the file with the (fixed) value of opacity desired, however it does not work since the map construction with the new CSSLink is not correctly rendered.

Any help will be appreciated.

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

No branches or pull requests

1 participant