GeoLeaflet Module
- class epyk.core.html.geo.GeoLeaflet.GeoLeaflet(page, width, height, html_code, options, profile)
- build(data: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, options: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, profile: Optional[Union[bool, dict]] = None, component_id: Optional[str] = None, stop_state: bool = True, dataflows: Optional[List[dict]] = None)
Update the chart with context and / or data changes.
- Parameters:
data – Optional. The full datasets object expected by ChartJs
options – Optional. Specific Python options available for this component
profile – Optional. A flag to set the component performance storage
component_id – Optional. Not used
stop_state – Remove the top panel for the component state (error, loading…)
dataflows – Chain of data transformations
- click(js_funcs: Union[List[Union[str, JsDataModel]], str], profile: Optional[Union[bool, dict]] = None, source_event: Optional[str] = None, on_ready: bool = False)
The onclick event occurs when the user clicks on an element. This function will receive the region, code and element. The common data variable is mapped to the region.
Related Pages:
- Parameters:
js_funcs – A Javascript Python function
profile – Optional. Set to true to get the profile for the function on the Javascript console
source_event – Optional. The source target for the event
on_ready – Optional. Specify if the event needs to be trigger when the page is loaded
- property js: LeafLet
The Javascript functions defined for this component. Those can be specific ones for the module or generic ones from the language.
- Returns:
A Javascript Dom object functions.
- loader(js_funcs: Union[List[Union[str, JsDataModel]], str], profile: Optional[Union[bool, dict]] = None)
- Parameters:
js_funcs –
profile –