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

Method __init__

folium/map.py:350–373  ·  view source on GitHub ↗
(
        self,
        color: str = "blue",
        icon_color: str = "white",
        icon: str = "info-sign",
        angle: int = 0,
        prefix: str = "glyphicon",
        **kwargs: TypeJsonValue,
    )

Source from the content-addressed store, hash-verified

348 }
349
350 def __init__(
351 self,
352 color: str = "blue",
353 icon_color: str = "white",
354 icon: str = "info-sign",
355 angle: int = 0,
356 prefix: str = "glyphicon",
357 **kwargs: TypeJsonValue,
358 ):
359 super().__init__()
360 self._name = "Icon"
361 if color not in self.color_options:
362 warnings.warn(
363 f"color argument of Icon should be one of: {self.color_options}.",
364 stacklevel=2,
365 )
366 self.options = remove_empty(
367 marker_color=color,
368 icon_color=icon_color,
369 icon=icon,
370 prefix=prefix,
371 extra_classes=f"fa-rotate-{angle}",
372 **kwargs,
373 )
374
375
376class Marker(MacroElement):

Callers 10

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

remove_emptyFunction · 0.90

Tested by

no test coverage detected