File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
docs/user_guide/ui_elements Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,22 @@ from folium.features import Control
3636m = folium.Map(location = [45 , 0 ], zoom_start = 4 )
3737
3838control = Control(
39- " MyPlugin " ,
39+ " Fullscreen " ,
4040 position = " topright" ,
4141 # Any plugin options become JS options.
42- foo = " bar" ,
42+ title = " View Fullscreen" ,
43+ titleCancel = " Exit Fullscreen" ,
4344)
4445
4546# Add the plugin's JS/CSS assets.
46- control.add_js_link(" my-plugin" , " https://example.com/leaflet.my-plugin.min.js" )
47- control.add_css_link(" my-plugin" , " https://example.com/leaflet.my-plugin.css" )
47+ control.add_js_link(
48+ " leaflet-fullscreen" ,
49+ " https://unpkg.com/leaflet.fullscreen@1.6.0/Control.FullScreen.js" ,
50+ )
51+ control.add_css_link(
52+ " leaflet-fullscreen" ,
53+ " https://unpkg.com/leaflet.fullscreen@1.6.0/Control.FullScreen.css" ,
54+ )
4855
4956control.add_to(m)
5057m
You can’t perform that action at this time.
0 commit comments