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

__init__

A specific statebar dedicated to the the counting of loading tiles in the map.

update_loading

Update the nb_loading_layer value according to the number of tile loading on the map.

update_nb_layer

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

LayerStateControl.update_loading(change)[source]#

Update the nb_loading_layer value according to the number of tile loading on the map.

Parameters:

change (dict)

Return type:

None

LayerStateControl.update_nb_layer(change)[source]#

Update the number of layer monitored by the statebar.

Parameters:

change (dict)

Return type:

None