pysepal.mapping.layers_control.LayersControl#

class pysepal.mapping.layers_control.LayersControl(*args, **kwargs)[source]#

Richer layerControl to add some controls over the lyers displayed on the map.

Each layer is associated to a line where the user can adapt the alpha channel or even hide it completely

Parameters:
  • m (Map | None) – the map to display the layers

  • kwargs – optional extra parameters for the ipyleaflet.WidgetControl

Attributes

group

As radio button cannot behave individually we add an extra GroupRadio to wrap the table

hidden

the layers this control removed from the map to hide them, and their row position

m

the map controlled by the layercontrol

fullscreen

Either or not the Menu container should be displayed in fullscreen on top of the map

Methods

__init__

Richer layerControl to add some controls over the lyers displayed on the map.

update_table

Update the table content.

LayersControl.__init__(m, **kwargs)[source]#

Richer layerControl to add some controls over the lyers displayed on the map.

Each layer is associated to a line where the user can adapt the alpha channel or even hide it completely

Parameters:
  • m (Map) – the map to display the layers

  • kwargs – optional extra parameters for the ipyleaflet.WidgetControl

Return type:

None

LayersControl.update_table(change)[source]#

Update the table content.

Parameters:

change (dict)

Return type:

None