Skip to content

Commit 453c685

Browse files
committed
improve timeline and treelayercontrol docs
1 parent 996d494 commit 453c685

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/user_guide/plugins/timeline.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Depending on your input geojson, one plugin may be more convenient than the othe
2828
The `Timeline` plugin can only show data from the past. If you want live updates,
2929
you need the `Realtime` plugin.
3030

31+
### Example of Timeline and TimelineSlider
32+
3133
```{code-cell} ipython3
3234
import folium
3335
from folium.utilities import JsCode

docs/user_guide/plugins/treelayercontrol.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ from folium.plugins.treelayercontrol import TreeLayerControl
2020
from folium.features import Marker
2121
2222
m = folium.Map(location=[46.603354, 1.8883335], zoom_start=5)
23-
osm = folium.TileLayer("openstreetmap").add_to(m)
2423
2524
overlay_tree = {
2625
"label": "Points of Interest",
@@ -71,5 +70,7 @@ overlay_tree = {
7170
]
7271
}
7372
74-
control = TreeLayerControl(overlay_tree=overlay_tree).add_to(m)
73+
TreeLayerControl(overlay_tree=overlay_tree).add_to(m)
74+
75+
m
7576
```

0 commit comments

Comments
 (0)