Leaflet.Terminator is a simple plug-in to the Leaflet library to overlay day and night regions on maps.
| 5 | |
| 6 | |
| 7 | class 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" |
nothing calls this directly
no test coverage detected
searching dependent graphs…