File: fullscreen.md

package info (click to toggle)
folium 0.20.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,168 kB
  • sloc: python: 4,489; makefile: 134; sh: 26
file content (24 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
```{code-cell} ipython3
---
nbsphinx: hidden
---
import folium
import folium.plugins
```

## Fullscreen

Add a button to toggle a fullscreen view of the map.

```{code-cell} ipython3
m = folium.Map(location=[41.9, -97.3], zoom_start=4)

folium.plugins.Fullscreen(
    position="topright",
    title="Expand me",
    title_cancel="Exit me",
    force_separate_button=True,
).add_to(m)

m
```