(self, popup: Union[IFrame, Html, str, None] = None)
| 1837 | ) # noqa |
| 1838 | |
| 1839 | def __init__(self, popup: Union[IFrame, Html, str, None] = None): |
| 1840 | super().__init__() |
| 1841 | self._name = "ClickForMarker" |
| 1842 | |
| 1843 | if isinstance(popup, Element): |
| 1844 | popup = popup.render() |
| 1845 | if popup: |
| 1846 | self.popup = "`" + escape_backticks(popup) + "`" # type: ignore |
| 1847 | else: |
| 1848 | self.popup = '"Latitude: " + lat + "<br>Longitude: " + lng ' |
| 1849 | |
| 1850 | |
| 1851 | class ClickForLatLng(MacroElement): |
nothing calls this directly
no test coverage detected