Skip to content
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

Fix timestamped wms: don't add to control #1319

Merged
merged 2 commits into from
May 7, 2020

Conversation

Conengmo
Copy link
Member

@Conengmo Conengmo commented May 3, 2020

Currently the example notebook for the TimestampedWmsTileLayers plugin causes a JS error. The layer control can't be initialized because the TimestampedWmsTileLayers object itself does not exist in JS. Only the WmsTileLayer objects, changed to L.timeDimension.layer.wms objects, do.

Fix this by not adding the TimestampedWmsTileLayers to layer control. This shouldn't be an option to users, since it doesn't work.

This doesn't degrade the user experience, since the layers can still be switched on and off using the controls for the WmsTileLayer objects.

Link to example notebook with fix applied: https://nbviewer.jupyter.org/github/conengmo/folium/blob/fix-timestamped-wms/examples/WmsTimeDimension.ipynb

@Conengmo Conengmo merged commit a37341e into python-visualization:master May 7, 2020
@Conengmo Conengmo deleted the fix-timestamped-wms branch May 7, 2020 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant