Fix WMS only layer bug#274
Conversation
|
The code is ok for me : it can only be better. |
Reading the code closely I think that I am either doing something wrong or the bug is somewhere else. When I do, m = folium.Map([40,-100], zoom_start=4)
url = 'http://hfrnet.ucsd.edu/thredds/wms/HFRNet/USEGC/6km/hourly/RTV'
w = folium.WmsTileLayer(url,
name='HF Radar',
format='image/png',
layers='surface_sea_water_velocity',
attribution='HFRNet',
transparent=True)
w.add_to(m)
m.add_children(folium.LayerControl())
mthe WMS layer should be added as an @BibMartin any ideas? |
|
I think I am starting to get your latest changes. (I am slow 😁) The latest commit adds a missing PS: The |
|
@BibMartin Let me know if this is OK now. I want to take another look at the layers control (making the initial tiles the Update: rebased and good to go. |
288644b to
37c72ef
Compare
|
@ocefpaf |
|
Done! |
Fix WMS only layer bug ; thanks @ocefpaf

I guess that the
overlayproperty is not always present.@BibMartin tiny one to relax after the #266 rebase 😜
PS: The
LayerControlseems to be swampingbase_layersandoverlays. I will take a look into that.