WmsTileLayer does not recognise transparent parameter
Author: EmanuelCastanhoCreated Sep 22, 2023Updated Jul 25, 2026
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.
Source: python-visualization/folium