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

Method __init__

folium/plugins/realtime.py:94–118  ·  view source on GitHub ↗
(
        self,
        source: Union[str, dict, JsCode],
        start: bool = True,
        interval: int = 60000,
        get_feature_id: Union[JsCode, str, None] = None,
        update_feature: Union[JsCode, str, None] = None,
        remove_missing: bool = False,
        container: Optional[Union[FeatureGroup, GeoJson]] = None,
        **kwargs
    )

Source from the content-addressed store, hash-verified

92 ]
93
94 def __init__(
95 self,
96 source: Union[str, dict, JsCode],
97 start: bool = True,
98 interval: int = 60000,
99 get_feature_id: Union[JsCode, str, None] = None,
100 update_feature: Union[JsCode, str, None] = None,
101 remove_missing: bool = False,
102 container: Optional[Union[FeatureGroup, GeoJson]] = None,
103 **kwargs
104 ):
105 super().__init__()
106 self._name = "Realtime"
107 self.src = source
108
109 kwargs["start"] = start
110 kwargs["interval"] = interval
111 if get_feature_id is not None:
112 kwargs["get_feature_id"] = JsCode(get_feature_id)
113 if update_feature is not None:
114 kwargs["update_feature"] = JsCode(update_feature)
115 kwargs["remove_missing"] = remove_missing
116 kwargs["container"] = container
117
118 self.options = remove_empty(**kwargs)

Callers

nothing calls this directly

Calls 2

JsCodeClass · 0.90
remove_emptyFunction · 0.90

Tested by

no test coverage detected