Skip to content

Commit f61ec5e

Browse files
committed
Add global switch documentation
1 parent 6000781 commit f61ec5e

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

folium/folium.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ class Map(LegacyMap):
7777
(going from bottom to top).
7878
control_scale : bool, default False
7979
Whether to add a control scale on the map.
80+
prefer_canvas : bool, default False
81+
Forces Leaflet to use the Canvas back-end (if available) for
82+
vector layers instead of SVG. This can increase performance
83+
considerably in some cases (e.g. many thousands of circle
84+
markers on the map).
85+
no_touch : bool, default False
86+
Forces Leaflet to not use touch events even if it detects them.
87+
disable_3d : bool, default False
88+
Forces Leaflet to not use hardware-accelerated CSS 3D
89+
transforms for positioning (which may cause glitches in some
90+
rare environments) even if they're supported.
8091
8192
Returns
8293
-------

folium/map.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,17 @@ class LegacyMap(MacroElement):
118118
(going from bottom to top).
119119
control_scale : bool, default False
120120
Whether to add a control scale on the map.
121+
prefer_canvas : bool, default False
122+
Forces Leaflet to use the Canvas back-end (if available) for
123+
vector layers instead of SVG. This can increase performance
124+
considerably in some cases (e.g. many thousands of circle
125+
markers on the map).
126+
no_touch : bool, default False
127+
Forces Leaflet to not use touch events even if it detects them.
128+
disable_3d : bool, default False
129+
Forces Leaflet to not use hardware-accelerated CSS 3D
130+
transforms for positioning (which may cause glitches in some
131+
rare environments) even if they're supported.
121132
122133
Returns
123134
-------

0 commit comments

Comments
 (0)