MCPcopy Create free account
hub / github.com/python-visualization/folium / Terminator

Class Terminator

folium/plugins/terminator.py:7–26  ·  view source on GitHub ↗

Leaflet.Terminator is a simple plug-in to the Leaflet library to overlay day and night regions on maps.

Source from the content-addressed store, hash-verified

5
6
7class Terminator(JSCSSMixin, MacroElement):
8 """
9 Leaflet.Terminator is a simple plug-in to the Leaflet library to
10 overlay day and night regions on maps.
11
12 """
13
14 _template = Template(
15 """
16 {% macro script(this, kwargs) %}
17 L.terminator().addTo({{this._parent.get_name()}});
18 {% endmacro %}
19 """
20 )
21
22 default_js = [("terminator", "https://unpkg.com/@joergdietrich/leaflet.terminator")]
23
24 def __init__(self):
25 super().__init__()
26 self._name = "Terminator"

Callers

nothing calls this directly

Calls 1

TemplateClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…