Skip to content

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