-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix WMS only layer bug #274
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
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())
m the 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
overlay
property is not always present.@BibMartin tiny one to relax after the #266 rebase 😜
PS: The
LayerControl
seems to be swampingbase_layers
andoverlays
. I will take a look into that.