sepal_ui.mapping.layer_state_control.LayerStateControl#
- class sepal_ui.mapping.layer_state_control.LayerStateControl(**kwargs)[source]#
A specific statebar dedicated to the the counting of loading tiles in the map.
every time a map is added to the map the counter will be raised by one. same behaviour with removed.
- Parameters:
m (Map | None) – The map the component is listening to
Attributes
m
the map connected to the control
nb_layer
the number of layers in the map
nb_loading_layer
the number of loading layer in the map
w_state
the stateBar displaying the number of layer loading on the map
Methods
A specific statebar dedicated to the the counting of loading tiles in the map.
Update the nb_loading_layer value according to the number of tile loading on the map.
Update the number of layer monitored by the statebar.
- LayerStateControl.__init__(m, **kwargs)[source]#
A specific statebar dedicated to the the counting of loading tiles in the map.
every time a map is added to the map the counter will be raised by one. same behaviour with removed.
- Parameters:
m (Map) – The map the component is listening to
- Return type:
None