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

Method __init__

folium/features.py:1839–1848  ·  view source on GitHub ↗
(self, popup: Union[IFrame, Html, str, None] = None)

Source from the content-addressed store, hash-verified

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
1851class ClickForLatLng(MacroElement):

Callers

nothing calls this directly

Calls 3

escape_backticksFunction · 0.90
__init__Method · 0.45
renderMethod · 0.45

Tested by

no test coverage detected