WmsTileLayer does not recognise transparent parameter
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- data-visualization
Research direction
Start at folium.raster_layers.WmsTileLayer and reproduce the NASA WMS example in a Jupyter Notebook. Check how the transparent parameter is passed to the WMS request, then verify that the black parts render transparently with the provided layer configuration.
Written by the indexing model from the issue text.
Description
Describe the bug
WmsTileLayer is not recognising transparent=True parameter when using NASA WMS service.
To Reproduce
m = folium.Map(tiles="cartodbpositron")
wms_url = "https://gibs.earthdata.nasa.gov/wms/epsg4326/best/wms.cgi"
wms = folium.raster_layers.WmsTileLayer(url=wms_url, layers="MODIS_Aqua_CorrectedReflectance_TrueColor", transparent=True,
fmt="image/png", name="Corrected Reflectance",
styles="default", time="2023-09-22", overlay=True, show=True)
wms.add_to(m)
m
Expected behavior
I expect the black parts to be transparent
Environment (please complete the following information):
- Jupyter Notebook
- Python 3.9
- folium latest version
Possible solutions
I already tried to include that parameter on kwargs, change True to "True", "true" and "True", but does not work.
- Dominant language
- Python
- Stars
- 7.4k
- Forks
- 2.3k
- Avg merge
- 17h 22m
- Merged PRs (30d)
- 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python-visualization/folium
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
python-visualization/folium#2092 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 67/100
python-visualization/folium#2278 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
python-visualization/folium#2259 ·
-
Map output from OSM returns blocked tiles, due to defective request or not following referer-policy Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
python-visualization/folium#2236 · 5 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
python-visualization/folium#2219 · 2 comments ·
All issues in python-visualization/folium
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·