sepal_ui.mapping.inspector_control.InspectorControl#

class sepal_ui.mapping.inspector_control.InspectorControl(**kwargs)[source]#

Widget control displaying a btn on the map.

When clicked the menu expand to show the values of each layer available on the map. The menu values will be change when the user click on a location on the map. It can digest any Layer added on a SepalMap.

Parameters:
  • m (Map | None) – the map on which he vinspector is displayed to interact with it’s layers

  • open_tree (Bool)

Attributes

m

the map on which he vinspector is displayed to interact with it's layers

marker

The marker of the last visited point

menu

The menu displayed when the map btn is clicked

open_tree

Either or not the tree should be opened automatically

text

The text element from the card that is edited when the user click on the map

w_loading

The progress bar on top of the Card

fullscreen

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

Methods

__init__

Widget control displaying a btn on the map.

read_data

Read the data when the map is clicked with the vinspector activated.

toggle_cursor

Toggle the cursor and marker display.

InspectorControl.__init__(m, open_tree=True, **kwargs)[source]#

Widget control displaying a btn on the map.

When clicked the menu expand to show the values of each layer available on the map. The menu values will be change when the user click on a location on the map. It can digest any Layer added on a SepalMap.

Parameters:
  • m (Map) – the map on which he vinspector is displayed to interact with it’s layers

  • open_tree (bool)

Return type:

None

InspectorControl.read_data(**kwargs)[source]#

Read the data when the map is clicked with the vinspector activated.

Parameters:

kwargs – any arguments from the map interaction

Return type:

None

InspectorControl.toggle_cursor(*args)[source]#

Toggle the cursor and marker display.

Toggle the cursor on the map to notify to the user that the inspector mode is activated. also activate previous marker if the inspector already include data.

Return type:

None