MCPcopy
hub / github.com/python-visualization/folium / __init__

Method __init__

folium/features.py:1932–1952  ·  view source on GitHub ↗
(
        self,
        icon_image: Any,
        icon_size: Optional[Tuple[int, int]] = None,
        icon_anchor: Optional[Tuple[int, int]] = None,
        shadow_image: Any = None,
        shadow_size: Optional[Tuple[int, int]] = None,
        shadow_anchor: Optional[Tuple[int, int]] = None,
        popup_anchor: Optional[Tuple[int, int]] = None,
    )

Source from the content-addressed store, hash-verified

1930 ) # noqa
1931
1932 def __init__(
1933 self,
1934 icon_image: Any,
1935 icon_size: Optional[Tuple[int, int]] = None,
1936 icon_anchor: Optional[Tuple[int, int]] = None,
1937 shadow_image: Any = None,
1938 shadow_size: Optional[Tuple[int, int]] = None,
1939 shadow_anchor: Optional[Tuple[int, int]] = None,
1940 popup_anchor: Optional[Tuple[int, int]] = None,
1941 ):
1942 super(Icon, self).__init__()
1943 self._name = "icon"
1944 self.options = remove_empty(
1945 icon_url=image_to_url(icon_image),
1946 icon_size=icon_size,
1947 icon_anchor=icon_anchor,
1948 shadow_url=shadow_image and image_to_url(shadow_image),
1949 shadow_size=shadow_size,
1950 shadow_anchor=shadow_anchor,
1951 popup_anchor=popup_anchor,
1952 )
1953
1954
1955class ColorLine(FeatureGroup):

Callers

nothing calls this directly

Calls 3

remove_emptyFunction · 0.90
image_to_urlFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected