python-visualization / python-visualization/folium
WmsTileLayer does not recognise transparent parameter
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 7.4k
- Fork
- 2.3k
- Merge trung bình
- 17 giờ 22 phút
- Pull request đã merge (30 ngày)
- 11
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu từ folium.raster_layers.WmsTileLayer và tái hiện ví dụ NASA WMS trong một Jupyter Notebook. Kiểm tra cách tham số transparent được truyền vào yêu cầu WMS, sau đó xác minh rằng các phần màu đen được hiển thị trong suốt với cấu hình layer được cung cấp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- data-visualization
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 58/100