MCPcopy Index your code
hub / github.com/python-visualization/folium / GlobalSwitches

Class GlobalSwitches

folium/folium.py:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65class GlobalSwitches(Element):
66 _template = Template(
67 """
68 <script>
69 L_NO_TOUCH = {{ this.no_touch |tojson}};
70 L_DISABLE_3D = {{ this.disable_3d|tojson }};
71 </script>
72 """
73 )
74
75 def __init__(self, no_touch=False, disable_3d=False):
76 super().__init__()
77 self._name = "GlobalSwitches"
78 self.no_touch = no_touch
79 self.disable_3d = disable_3d
80
81
82class Map(JSCSSMixin, Evented):

Callers 1

__init__Method · 0.85

Calls 1

TemplateClass · 0.90

Tested by

no test coverage detected